Skip to content

Commit e15f558

Browse files
committed
Update Compute client library version to 22.0.0
Add Invoke-AzureRmVmssVMRunCommand cmdlet. Add PublicIPPrefix parameter to New-AzureRmVmssIpConfig.
1 parent 52f4cb1 commit e15f558

File tree

72 files changed

+12061
-13776
lines changed

Some content is hidden

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

72 files changed

+12061
-13776
lines changed

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="21.0.0" />
28+
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="22.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.21.0.0\lib\net452\Microsoft.Azure.Management.Compute.dll</HintPath>
47+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Compute.22.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>
@@ -85,6 +85,7 @@
8585
<Compile Include="ScenarioTests\VirtualMachineScaleSetTests.cs" />
8686
<Compile Include="ScenarioTests\VMDynamicTests.cs" />
8787
<Compile Include="ScenarioTests\VirtualMachineProfileTests.cs" />
88+
<Compile Include="ScenarioTests\VirtualMachineScaleSetProfileTests.cs" />
8889
<Compile Include="ScenarioTests\AvailabilitySetTests.cs" />
8990
<Compile Include="ScenarioTests\VirtualMachineExtensionTests.cs" />
9091
<Compile Include="ScenarioTests\VirtualMachineNetworkInterfaceTests.cs" />
@@ -225,6 +226,9 @@
225226
<None Include="ScenarioTests\VirtualMachineProfileTests.ps1">
226227
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
227228
</None>
229+
<None Include="ScenarioTests\VirtualMachineScaleSetProfileTests.ps1">
230+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
231+
</None>
228232
<None Include="ScenarioTests\AvailabilitySetTests.ps1">
229233
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
230234
</None>

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ function Test-VmssDiagnosticsExtension
237237
$vmssType = 'Microsoft.Compute/virtualMachineScaleSets';
238238

239239
$adminUsername = 'Foo12';
240-
$adminPassword = "BaR@123" + $rgname;
240+
$adminPassword = $PLACEHOLDER;
241241

242242
$imgRef = Get-DefaultCRPImage -loc $loc;
243243
$vhdContainer = "https://" + $stoname + ".blob.core.windows.net/" + $vmssName;
@@ -306,7 +306,10 @@ function Test-VmssDiagnosticsExtension
306306
$settings = $vmssDiagExtension.Settings;
307307
Assert-AreEqual $storagename $settings.storageAccount.Value;
308308

309-
Remove-AzureRmVmssDiagnosticsExtension -VirtualMachineScaleSet $vmss -Name $extname;
309+
$vmss = Remove-AzureRmVmssDiagnosticsExtension -VirtualMachineScaleSet $vmss -Name $extname;
310+
$vmssDiagExtensions = $vmss.VirtualMachineProfile.ExtensionProfile.Extensions | Where-Object {$_.Publisher -eq $diagExtPublisher -and $_.Type -eq $diagExtType};
311+
Assert-Null $vmssDiagExtensions;
312+
310313
Update-AzureRmVmss -ResourceGroupName $rgname -Name $vmssName -VirtualMachineScaleSet $vmss;
311314

312315
$vmss = Get-AzureRmVmss -ResourceGroupName $rgname -VMScaleSetName $vmssName;

src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/StrategiesVirtualMachineTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public void TestSimpleNewVmWithSystemAssignedAndUserAssignedIdentity()
7373
/**
7474
* To record this test run these commands first :
7575
* New-AzureRmResourceGroup -Name UAITG123456 -Location 'Central US'
76-
* New-AzureRmUserAssignedIdentity -ResourceGroupName UAITG123456 -NameUAITG123456Identity
76+
* New-AzureRmUserAssignedIdentity -ResourceGroupName UAITG123456 -Name UAITG123456Identity
7777
*
7878
* Now get the identity :
7979
*

0 commit comments

Comments
 (0)