Skip to content

Commit 857ad14

Browse files
authored
Merge branch 'preview' into tentant-id-details
2 parents ee3cba9 + eba8ea1 commit 857ad14

File tree

349 files changed

+478244
-4084
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

349 files changed

+478244
-4084
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,4 +242,3 @@ launchSettings.json
242242
/SolutionMappings.json
243243
/TestMappings.json
244244
/tools/Modules/tmp
245-
/tools/Az/Az.psm1

build.proj

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -411,10 +411,21 @@
411411
Condition="'$(SkipHelp)' == 'false'"
412412
ContinueOnError="false"/>
413413

414-
<!-- Cleanup extraneous files. -->
415-
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;. $(LibraryToolsFolder)\CleanupBuild.ps1 -BuildConfig $(Configuration) &quot;" />
414+
<!-- Copying modules to be signed -->
415+
<Copy SourceFiles="$(LibraryToolsFolder)\Az\Az.psd1"
416+
DestinationFolder="$(PackageDirectory)\$(Configuration)"
417+
ContinueOnError="false" />
418+
<Copy SourceFiles="$(LibraryToolsFolder)\Az\Az.psm1"
419+
DestinationFolder="$(PackageDirectory)\$(Configuration)"
420+
ContinueOnError="false" />
416421

417422
<CallTarget Targets="CodeSignBinaries" Condition=" '$(CodeSign)' == 'true' " />
423+
424+
<Copy SourceFiles="$(PackageDirectory)\$(Configuration)\Az.psd1" DestinationFolder="$(LibraryToolsFolder)\Az" />
425+
<Copy SourceFiles="$(PackageDirectory)\$(Configuration)\Az.psm1" DestinationFolder="$(LibraryToolsFolder)\Az" />
426+
427+
<!-- Cleanup extraneous files. -->
428+
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;. $(LibraryToolsFolder)\CleanupBuild.ps1 -BuildConfig $(Configuration) &quot;" />
418429
</Target>
419430

420431

@@ -438,9 +449,6 @@
438449
<Output TaskParameter="Path" PropertyName="WindowsSdkPath"/>
439450
</GetFrameworkSdkPath>
440451

441-
<Copy SourceFiles="$(LibraryRoot)tools\Az\Az.psd1"
442-
DestinationFolder="$(PackageDirectory)\$(Configuration)" Condition= " '$(Scope)' == 'Netcore' "/>
443-
444452
<!-- Azure -->
445453
<ItemGroup Condition="'$(Scope)' == 'All' or '$(Scope)' == 'Latest' or '$(Scope)' == 'Netcore'">
446454
<DelaySignedAssembliesToSign Include="$(PackageDirectory)\$(Configuration)\**\Microsoft*Azure*Commands*.dll" Exclude="$(PackageDirectory)\$(Configuration)\**\Microsoft*Azure*Commands*Common*.dll" />
@@ -490,6 +498,8 @@
490498
Condition="'$(Scope)' != 'Netcore'"/>
491499

492500
<!-- Copying shortcut to be signed -->
501+
<Copy SourceFiles="$(LibraryRoot)tools\Az\Az.psm1"
502+
DestinationFolder="$(PackageDirectory)\$(Configuration)" Condition="'$(Scope)' == 'All' or '$(Scope)' == 'Netcore'" />
493503
<Copy SourceFiles="$(LibraryRoot)tools\AzureRM\AzureRM.psm1"
494504
DestinationFolder="$(PackageDirectory)\$(Configuration)" Condition="'$(Scope)' == 'All' or '$(Scope)' == 'Latest'" />
495505
<Copy SourceFiles="$(LibrarySourceFolder)\StackAdmin\AzureRM\AzureRM.psm1"
@@ -532,10 +542,6 @@
532542
<Exec Command="$(PowerShellCommandPrefix) &quot;. $(LibraryToolsFolder)\CheckSignature.ps1 -CustomPath $(StackPackageFolder)\$(Configuration) &quot;"
533543
Condition="'$(Scope)' == 'All' or '$(Scope)' == 'Stack'"
534544
ContinueOnError="ErrorAndContinue" />
535-
536-
<!-- Copying signed shortcut back -->
537-
<Copy SourceFiles="$(PackageDirectory)\$(Configuration)\Az.psd1"
538-
DestinationFolder="$(LibraryRoot)tools\Az" Condition= " '$(Scope)' == 'Latest' "/>
539545
</Target>
540546

541547

documentation/breaking-changes/breaking-changes-attribute-help.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ All of the attributes have the following common traits:
3535

3636
The properties "deprecatedByVersion" and "changeInEfectByDate" are infotmation only (for the end user) as of now.
3737

38+
#### Supress the breaking change messages at runtime
3839
- If the user desires to not see the warning messages generated by the attirbutes at runtime, they can set the env variable "SuppressAzurePowerShellBreakingChangeWarnings" to "true".
3940

4041
NOTE :
@@ -485,4 +486,4 @@ Get-SomeObjectA -Param1=...
485486
...
486487
Breaking changes in the cmdlet : Get-SomeObjectA
487488
- The parameter 'Param1' is becoming mandatory
488-
```
489+
```

src/ResourceManager/Compute/Commands.Compute.Test/Commands.Compute.Test.Netcore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
<ItemGroup Condition="'$(TargetFramework)' != 'net472'">
2727
<PackageReference Include="Microsoft.Azure.Graph.RBAC" Version="3.4.0-preview" />
28-
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="22.0.0" />
28+
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="23.0.0" />
2929
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="2.4.1" />
3030
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.5.0-preview" />
3131
<PackageReference Include="Microsoft.Azure.Management.Storage" Version="8.1.0-preview" />

src/ResourceManager/Compute/Commands.Compute.Test/Commands.Compute.Test.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
</PropertyGroup>
4545
<ItemGroup>
4646
<Reference Include="Microsoft.Azure.Management.Compute">
47-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Compute.22.0.0\lib\net452\Microsoft.Azure.Management.Compute.dll</HintPath>
47+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Compute.23.0.0\lib\net452\Microsoft.Azure.Management.Compute.dll</HintPath>
4848
</Reference>
4949
<Reference Include="Microsoft.Azure.Management.Network, Version=19.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
5050
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Network.19.5.0-preview\lib\net452\Microsoft.Azure.Management.Network.dll</HintPath>
@@ -69,6 +69,7 @@
6969
<Compile Include="ScenarioTests\ContainerServiceTests.cs" />
7070
<Compile Include="ScenarioTests\DiagnosticsExtensionTests.cs" />
7171
<Compile Include="ScenarioTests\DiskRPTests.cs" />
72+
<Compile Include="ScenarioTests\GalleryTests.cs" />
7273
<Compile Include="ScenarioTests\ImageTests.cs" />
7374
<Compile Include="ScenarioTests\LogAnalyticTests.cs" />
7475
<Compile Include="ScenarioTests\NewVhdVMTests.cs" />
@@ -177,6 +178,9 @@
177178
<None Include="ScenarioTests\DummyConfig.ps1">
178179
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
179180
</None>
181+
<None Include="ScenarioTests\GalleryTests.ps1">
182+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
183+
</None>
180184
<None Include="ScenarioTests\ImageTests.ps1">
181185
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
182186
</None>

src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/DiskRPTests.ps1

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ function Test-Disk
3333
$access = 'Read';
3434

3535
# Config create test
36+
$diskconfig = New-AzureRmDiskConfig -Location $loc -DiskSizeGB 500 -SkuName UltraSSD_LRS -OsType Windows -CreateOption Empty -DiskMBpsReadWrite 8 -DiskIOPSReadWrite 500;
37+
Assert-AreEqual "UltraSSD_LRS" $diskconfig.Sku.Name;
38+
Assert-AreEqual 500 $diskconfig.DiskIOPSReadWrite;
39+
Assert-AreEqual 8 $diskconfig.DiskMBpsReadWrite
40+
3641
$diskconfig = New-AzureRmDiskConfig -Location $loc -Zone "1" -DiskSizeGB 5 -AccountType Standard_LRS -OsType Windows -CreateOption Empty -EncryptionSettingsEnabled $true;
3742
# Encryption test
3843
$diskconfig = Set-AzureRmDiskDiskEncryptionKey -Disk $diskconfig -SecretUrl $mockkey -SourceVaultId $mocksourcevault;
@@ -83,6 +88,11 @@ function Test-Disk
8388
Verify-PSOperationStatusResponse $st;
8489

8590
# Config update test
91+
$updateconfig = New-AzureRmDiskUpdateConfig -DiskSizeGB 10 -AccountType UltraSSD_LRS -OsType Windows -DiskMBpsReadWrite 8 -DiskIOPSReadWrite 500;
92+
Assert-AreEqual "UltraSSD_LRS" $updateconfig.Sku.Name;
93+
Assert-AreEqual 500 $updateconfig.DiskIOPSReadWrite;
94+
Assert-AreEqual 8 $updateconfig.DiskMBpsReadWrite
95+
8696
$updateconfig = New-AzureRmDiskUpdateConfig -DiskSizeGB 10 -AccountType Premium_LRS -OsType Windows;
8797
$job = Update-AzureRmDisk -ResourceGroupName $rgname -DiskName $diskname -DiskUpdate $updateconfig -AsJob;
8898
$result = $job | Wait-Job;
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using Microsoft.Azure.ServiceManagemenet.Common.Models;
16+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
17+
using Xunit;
18+
19+
namespace Microsoft.Azure.Commands.Compute.Test.ScenarioTests
20+
{
21+
public class GalleryTests
22+
{
23+
XunitTracingInterceptor _logger;
24+
25+
public GalleryTests(Xunit.Abstractions.ITestOutputHelper output)
26+
{
27+
_logger = new XunitTracingInterceptor(output);
28+
XunitTracingInterceptor.AddToContext(_logger);
29+
}
30+
31+
#if NETSTANDARD
32+
[Fact(Skip = "Resources -> ResourceManager, needs re-recorded")]
33+
[Trait(Category.RunType, Category.DesktopOnly)]
34+
#else
35+
[Fact]
36+
#endif
37+
[Trait(Category.AcceptanceType, Category.CheckIn)]
38+
public void TestGallery()
39+
{
40+
ComputeTestController.NewInstance.RunPsTest(_logger, "Test-Gallery");
41+
}
42+
}
43+
}

0 commit comments

Comments
 (0)