Skip to content

Commit 92cf377

Browse files
hyonholeeVeryEarly
authored andcommitted
[Compute] ProximityPlacementGroupId Update feature (Azure#10675)
* ProximityPlacementGroupId Update feature * Hide a breaking change introduced by SDK which changes Type to Type1.
1 parent 771824c commit 92cf377

File tree

48 files changed

+2964
-1351
lines changed

Some content is hidden

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

48 files changed

+2964
-1351
lines changed

src/Compute/Compute.Test/Compute.Test.csproj

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

1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.Azure.Graph.RBAC" Version="3.4.0-preview" />
15-
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="30.1.0" />
15+
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="30.2.0" />
1616
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="2.4.2" />
1717
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.17.0-preview" />
1818
</ItemGroup>

src/Compute/Compute.Test/ScenarioTests/PPGTests.ps1

Lines changed: 45 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -80,31 +80,45 @@ function Test-ProximityPlacementGroupAvSet
8080
New-AzResourceGroup -Name $rgname -Location $loc -Force;
8181

8282
# Create a VM first
83-
$ppgname = $rgname + 'ppg'
84-
New-AzProximityPlacementGroup -ResourceGroupName $rgname -Name $ppgname -Location $loc -ProximityPlacementGroupType "Standard" -Tag @{key1 = "val1"};
83+
$ppgname1 = $rgname + 'ppg'
84+
New-AzProximityPlacementGroup -ResourceGroupName $rgname -Name $ppgname1 -Location $loc -ProximityPlacementGroupType "Standard" -Tag @{key1 = "val1"};
8585

86-
$ppg = Get-AzProximityPlacementGroup -ResourceGroupName $rgname -Name $ppgname;
86+
$ppg1 = Get-AzProximityPlacementGroup -ResourceGroupName $rgname -Name $ppgname1;
8787

88-
Assert-AreEqual $rgname $ppg.ResourceGroupName;
89-
Assert-AreEqual $ppgname $ppg.Name;
90-
Assert-AreEqual $loc $ppg.Location;
91-
Assert-AreEqual "Standard" $ppg.ProximityPlacementGroupType;
92-
Assert-True { $ppg.Tags.Keys.Contains("key1") };
93-
Assert-AreEqual "val1" $ppg.Tags["key1"];
88+
Assert-AreEqual $rgname $ppg1.ResourceGroupName;
89+
Assert-AreEqual $ppgname1 $ppg1.Name;
90+
Assert-AreEqual $loc $ppg1.Location;
91+
Assert-AreEqual "Standard" $ppg1.ProximityPlacementGroupType;
92+
Assert-True { $ppg1.Tags.Keys.Contains("key1") };
93+
Assert-AreEqual "val1" $ppg1.Tags["key1"];
9494

9595
$asetName = $rgname + 'as';
9696
New-AzAvailabilitySet -ResourceGroupName $rgname -Name $asetName -Location $loc -ProximityPlacementGroupId $ppg.Id -Sku 'Classic';
9797
$av = Get-AzAvailabilitySet -ResourceGroupName $rgname -Name $asetName;
98-
Assert-AreEqual $ppg.Id $av.ProximityPlacementGroup.Id;
98+
Assert-AreEqual $ppg1.Id $av.ProximityPlacementGroup.Id;
9999

100-
$ppg = Get-AzProximityPlacementGroup -ResourceGroupName $rgname -Name $ppgname;
100+
$ppg = Get-AzProximityPlacementGroup -ResourceGroupName $rgname -Name $ppgname1;
101101
Assert-AreEqual $av.Id $ppg.AvailabilitySets[0].Id;
102102

103+
# Create another PPG
104+
$ppgname2 = $rgname + 'ppg2'
105+
New-AzProximityPlacementGroup -ResourceGroupName $rgname -Name $ppgname2 -Location $loc -ProximityPlacementGroupType "Standard" -Tag @{key2 = "val2"};
106+
$ppg2 = Get-AzProximityPlacementGroup -ResourceGroupName $rgname -Name $ppgname2;
107+
108+
# Update AvSet to another PPG
109+
Update-AzAvailabilitySet -AvailabilitySet $av -ProximityPlacementGroupId $ppg2.Id;
110+
111+
$av = Get-AzAvailabilitySet -ResourceGroupName $rgname -Name $asetName;
112+
Assert-AreEqual $ppg2.Id $av.ProximityPlacementGroup.Id;
113+
103114
Remove-AzAvailabilitySet -ResourceGroupName $rgname -Name $asetName -Force;
104-
$ppg = Get-AzProximityPlacementGroup -ResourceGroupName $rgname -Name $ppgname;
105-
Assert-Null $ppg.AvailabilitySets;
115+
$ppg1 = Get-AzProximityPlacementGroup -ResourceGroupName $rgname -Name $ppgname1;
116+
Assert-Null $ppg1.AvailabilitySets;
117+
$ppg2 = Get-AzProximityPlacementGroup -ResourceGroupName $rgname -Name $ppgname2;
118+
Assert-Null $ppg2.AvailabilitySets;
106119

107-
Remove-AzProximityPlacementGroup -ResourceGroupName $rgname -Name $ppgname -Force;
120+
Remove-AzProximityPlacementGroup -ResourceGroupName $rgname -Name $ppgname1 -Force;
121+
Remove-AzProximityPlacementGroup -ResourceGroupName $rgname -Name $ppgname2 -Force;
108122
}
109123
finally
110124
{
@@ -182,11 +196,28 @@ function Test-ProximityPlacementGroupVM
182196
$ppg = Get-AzProximityPlacementGroup -ResourceGroupName $rgname -Name $ppgname;
183197
Assert-AreEqual $vm.Id $ppg.VirtualMachines[0].Id;
184198

199+
Stop-AzVM -ResourceGroupName $rgname -Name $vmName -Force;
200+
201+
$ppgname2 = $rgname + 'ppg2'
202+
New-AzProximityPlacementGroup -ResourceGroupName $rgname -Name $ppgname2 -Location $loc -ProximityPlacementGroupType "Standard" -Tag @{key2 = "val2"};
203+
$ppg2 = Get-AzProximityPlacementGroup -ResourceGroupName $rgname -Name $ppgname2;
204+
205+
Update-AzVM -ResourceGroupName $rgname -VM $vm -ProximityPlacementGroupId $ppg2.Id;
206+
$vm = Get-AzVM -ResourceGroupName $rgname -Name $vmName;
207+
Assert-AreEqual $ppg2.Id $vm.ProximityPlacementGroup.Id;
208+
209+
$ppg2 = Get-AzProximityPlacementGroup -ResourceGroupName $rgname -Name $ppgname2;
210+
Assert-AreEqual $vm.Id $ppg2.VirtualMachines[0].Id;
211+
185212
Remove-AzVM -ResourceGroupName $rgname -Name $vmName -Force;
186213
$ppg = Get-AzProximityPlacementGroup -ResourceGroupName $rgname -Name $ppgname;
187214
Assert-Null $ppg.VirtualMachines;
188215

216+
$ppg2 = Get-AzProximityPlacementGroup -ResourceGroupName $rgname -Name $ppgname2;
217+
Assert-Null $ppg2.VirtualMachines;
218+
189219
Remove-AzProximityPlacementGroup -ResourceGroupName $rgname -Name $ppgname -Force;
220+
Remove-AzProximityPlacementGroup -ResourceGroupName $rgname -Name $ppgname2 -Force;
190221
}
191222
finally
192223
{

src/Compute/Compute.Test/ScenarioTests/StrategiesVirtualMachineTests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ function Test-SimpleNewVmPpgId
558558
-ResourceGroupName $rgname `
559559
-Name $ppgname `
560560
-Location "eastus"
561-
$vm = New-AzVM -Name $vmname -Credential $cred -DomainNameLabel $domainNameLabel -ProximityPlacementGroup $ppg.Id
561+
$vm = New-AzVM -Name $vmname -Credential $cred -DomainNameLabel $domainNameLabel -ProximityPlacementGroupId $ppg.Id
562562

563563
Assert-AreEqual $vm.ProximityPlacementGroup.Id $ppg.Id
564564
}

src/Compute/Compute.Test/ScenarioTests/StrategiesVmssTests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ function Test-SimpleNewVmssPpg
394394
-ResourceGroupName $rgname `
395395
-Name $ppgname `
396396
-Location "eastus"
397-
$vmss = New-AzVmss -Name $vmssname -ResourceGroup $rgname -Credential $cred -DomainNameLabel $domainNameLabel -LoadBalancerName $lbName -ProximityPlacementGroup $ppgname
397+
$vmss = New-AzVmss -Name $vmssname -ResourceGroup $rgname -Credential $cred -DomainNameLabel $domainNameLabel -LoadBalancerName $lbName -ProximityPlacementGroupId $ppgname
398398

399399
Assert-AreEqual $vmss.ProximityPlacementGroup.Id $ppg.Id
400400
}

src/Compute/Compute.Test/SessionRecords/Microsoft.Azure.Commands.Compute.Test.ScenarioTests.PPGTests/TestPPGAvSet.json

Lines changed: 589 additions & 178 deletions
Large diffs are not rendered by default.

src/Compute/Compute.Test/SessionRecords/Microsoft.Azure.Commands.Compute.Test.ScenarioTests.PPGTests/TestPPGVM.json

Lines changed: 1930 additions & 1004 deletions
Large diffs are not rendered by default.

src/Compute/Compute/AvailabilitySets/UpdateAzureAvailabilitySetCommand.cs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
using Microsoft.Azure.Commands.Compute.Common;
1919
using Microsoft.Azure.Commands.Compute.Models;
2020
using Microsoft.Azure.Management.Compute.Models;
21+
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2122

2223
namespace Microsoft.Azure.Commands.Compute
2324
{
@@ -37,13 +38,18 @@ public class UpdateAzureAvailabilitySetCommand : AvailabilitySetBaseCmdlet
3738
public PSAvailabilitySet AvailabilitySet { get; set; }
3839

3940
[Parameter(
40-
Mandatory = true,
41+
Mandatory = false,
4142
Position = 1,
4243
ParameterSetName = SkuParameterSetName,
4344
ValueFromPipelineByPropertyName = false,
4445
HelpMessage = "The Name of Sku")]
4546
public string Sku { get; set; }
4647

48+
[Parameter(
49+
Mandatory = false)]
50+
[ValidateNotNullOrEmpty]
51+
public string ProximityPlacementGroupId { get; set; }
52+
4753
[Parameter(
4854
Mandatory = false,
4955
HelpMessage = "Key-value pairs in the form of a hash table."
@@ -67,7 +73,10 @@ public override void ExecuteCmdlet()
6773
PlatformUpdateDomainCount = this.AvailabilitySet.PlatformUpdateDomainCount,
6874
PlatformFaultDomainCount = this.AvailabilitySet.PlatformFaultDomainCount,
6975
Tags = Tag == null ? null : Tag.Cast<DictionaryEntry>().ToDictionary(d => (string)d.Key, d => (string)d.Value),
70-
Sku = new Sku(this.Sku, null, null)
76+
Sku = new Sku(this.IsParameterBound(c => c.Sku) ? this.Sku : this.AvailabilitySet.Sku, null, null),
77+
ProximityPlacementGroup = this.IsParameterBound(c => c.ProximityPlacementGroupId)
78+
? new SubResource(this.ProximityPlacementGroupId)
79+
: this.AvailabilitySet.ProximityPlacementGroup
7180
};
7281

7382
var result = this.AvailabilitySetClient.CreateOrUpdateWithHttpMessagesAsync(

src/Compute/Compute/ChangeLog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
## Upcoming Release
2222

2323
## Version 3.2.0
24+
* Add ProximityPlacementGroupId parameter to the following cmdlets:
25+
- Update-AzAvailabilitySet, Update-AzVM, Update-AzVmss
26+
* Change ProximityPlacementGroup parameter to ProximityPlacementGroupId parameter in New-AzVM and New-AzVmss.
27+
(ProximityPlacementGroup parameter is still supported as an alias)
28+
* Update help message for VM and VMSS priority.
2429
* Update references in .psd1 to use relative path
2530

2631
## Version 3.1.0

src/Compute/Compute/Common/DiagnosticsHelper.cs

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,18 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15+
using System;
16+
using System.Collections;
17+
using System.Collections.Generic;
18+
using System.IO;
19+
using System.Linq;
20+
using System.Management.Automation;
21+
using System.Text;
22+
using System.Xml;
23+
using System.Xml.Linq;
24+
using System.Xml.Serialization;
1525
using Microsoft.Azure.Commands.Common.Authentication.Abstractions;
26+
using Microsoft.Azure.Commands.Compute.Automation.Models;
1627
using Microsoft.Azure.Commands.Management.Storage.Models;
1728
using Microsoft.Azure.Management.Compute.Models;
1829
using Microsoft.Azure.Management.Storage.Version2017_10_01;
@@ -24,16 +35,6 @@
2435
using Microsoft.WindowsAzure.Storage.Auth;
2536
using Newtonsoft.Json;
2637
using Newtonsoft.Json.Linq;
27-
using System;
28-
using System.Collections;
29-
using System.Collections.Generic;
30-
using System.IO;
31-
using System.Linq;
32-
using System.Management.Automation;
33-
using System.Text;
34-
using System.Xml;
35-
using System.Xml.Linq;
36-
using System.Xml.Serialization;
3738

3839
namespace Microsoft.Azure.Commands.Compute.Common
3940
{
@@ -740,6 +741,17 @@ public static Tuple<Hashtable, Hashtable> GetConfigurationsFromFiles(string publ
740741
/// <param name="extension">VMSS extension</param>
741742
/// <returns>Whether the VMSS extension is diagnostics extension</returns>
742743
public static bool IsDiagnosticsExtension(VirtualMachineScaleSetExtension extension)
744+
{
745+
return extension.Publisher.Equals(DiagnosticsExtensionConstants.ExtensionPublisher, StringComparison.InvariantCultureIgnoreCase) &&
746+
extension.Type1.Equals(DiagnosticsExtensionConstants.ExtensionType, StringComparison.InvariantCultureIgnoreCase);
747+
}
748+
749+
/// <summary>
750+
/// Check if a VMSS extension is diagnostics extension.
751+
/// </summary>
752+
/// <param name="extension">VMSS extension</param>
753+
/// <returns>Whether the VMSS extension is diagnostics extension</returns>
754+
public static bool IsDiagnosticsExtension(PSVirtualMachineScaleSetExtension extension)
743755
{
744756
return extension.Publisher.Equals(DiagnosticsExtensionConstants.ExtensionPublisher, StringComparison.InvariantCultureIgnoreCase) &&
745757
extension.Type.Equals(DiagnosticsExtensionConstants.ExtensionType, StringComparison.InvariantCultureIgnoreCase);

src/Compute/Compute/Compute.csproj

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

1414
<ItemGroup>
1515
<PackageReference Include="AutoMapper" Version="6.2.2" />
16-
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="30.1.0" />
16+
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="30.2.0" />
1717
<PackageReference Include="System.Security.Permissions" Version="4.5.0" />
1818
<PackageReference Include="System.ServiceModel.Primitives" Version="4.4.1" />
1919
<PackageReference Include="WindowsAzure.Storage" Version="9.3.0" />

src/Compute/Compute/Extension/Diagnostics/AddAzureRmVmssDiagnosticsExtension.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,19 +120,19 @@ protected override void ProcessRecord()
120120
// VirtualMachineProfile
121121
if (this.VirtualMachineScaleSet.VirtualMachineProfile == null)
122122
{
123-
this.VirtualMachineScaleSet.VirtualMachineProfile = new VirtualMachineScaleSetVMProfile();
123+
this.VirtualMachineScaleSet.VirtualMachineProfile = new PSVirtualMachineScaleSetVMProfile();
124124
}
125125

126126
// ExtensionProfile
127127
if (this.VirtualMachineScaleSet.VirtualMachineProfile.ExtensionProfile == null)
128128
{
129-
this.VirtualMachineScaleSet.VirtualMachineProfile.ExtensionProfile = new VirtualMachineScaleSetExtensionProfile();
129+
this.VirtualMachineScaleSet.VirtualMachineProfile.ExtensionProfile = new PSVirtualMachineScaleSetExtensionProfile();
130130
}
131131

132132
// Extensions
133133
if (this.VirtualMachineScaleSet.VirtualMachineProfile.ExtensionProfile.Extensions == null)
134134
{
135-
this.VirtualMachineScaleSet.VirtualMachineProfile.ExtensionProfile.Extensions = new List<VirtualMachineScaleSetExtension>();
135+
this.VirtualMachineScaleSet.VirtualMachineProfile.ExtensionProfile.Extensions = new List<PSVirtualMachineScaleSetExtension>();
136136
}
137137

138138
bool shouldContinue = true;
@@ -162,7 +162,7 @@ protected override void ProcessRecord()
162162
// Parse configs, and auto fill incomplete parts
163163
Tuple<Hashtable, Hashtable> settings = DiagnosticsHelper.GetConfigurationsFromFiles(this.SettingFilePath, this.ProtectedSettingFilePath, this.VirtualMachineScaleSet.Id, this, storageClient);
164164

165-
var newDiagnosticsExtension = new VirtualMachineScaleSetExtension();
165+
var newDiagnosticsExtension = new PSVirtualMachineScaleSetExtension();
166166

167167
newDiagnosticsExtension.Name = this.Name;
168168
newDiagnosticsExtension.Publisher = DiagnosticsExtensionConstants.ExtensionPublisher;

src/Compute/Compute/Extension/VmssDiskEncryption/DisableAzureVmssDiskEncryption.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public override void ExecuteCmdlet()
127127
bool extensionFound = false;
128128
foreach (var ext in vmss.VirtualMachineProfile.ExtensionProfile.Extensions)
129129
{
130-
if (ext.Type.Equals(this.ExtensionName))
130+
if (ext.Type1.Equals(this.ExtensionName))
131131
{
132132
ext.Settings = GetDisalbeEncryptionSetting();
133133
ext.ProtectedSettings = null;

src/Compute/Compute/Extension/VmssDiskEncryption/GetAzureVmssDiskEncryptionStatus.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ private PSVmssDiskEncryptionStatusContext GetVmssDiskStatus(string rgName, strin
148148
}
149149

150150
ext = vmssResult.VirtualMachineProfile.ExtensionProfile.Extensions.First(
151-
e => e.Type.Equals(this.ExtensionName));
151+
e => e.Type1.Equals(this.ExtensionName));
152152
}
153153
catch (InvalidOperationException)
154154
{

src/Compute/Compute/Extension/VmssDiskEncryption/SetAzureVmssDiskEncryptionExtension.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ private VirtualMachineScaleSetExtension GetVmssExtensionParameters()
190190
{
191191
Name = this.ExtensionName,
192192
Publisher = AzureVmssDiskEncryptionExtensionContext.ExtensionDefaultPublisher,
193-
Type = AzureVmssDiskEncryptionExtensionContext.ExtensionDefaultName,
193+
Type1 = AzureVmssDiskEncryptionExtensionContext.ExtensionDefaultName,
194194
TypeHandlerVersion = (this.TypeHandlerVersion) ?? AzureVmssDiskEncryptionExtensionContext.ExtensionDefaultVersion,
195195
Settings = SettingString,
196196
AutoUpgradeMinorVersion = !DisableAutoUpgradeMinorVersion.IsPresent,
@@ -205,7 +205,7 @@ private VirtualMachineScaleSetExtension GetVmssExtensionParameters()
205205
{
206206
Name = this.ExtensionName,
207207
Publisher = AzureVmssDiskEncryptionExtensionContext.LinuxExtensionDefaultPublisher,
208-
Type = AzureVmssDiskEncryptionExtensionContext.LinuxExtensionDefaultName,
208+
Type1 = AzureVmssDiskEncryptionExtensionContext.LinuxExtensionDefaultName,
209209
TypeHandlerVersion = (this.TypeHandlerVersion) ?? AzureVmssDiskEncryptionExtensionContext.LinuxExtensionDefaultVersion,
210210
Settings = SettingString,
211211
AutoUpgradeMinorVersion = !DisableAutoUpgradeMinorVersion.IsPresent,

src/Compute/Compute/Generated/Models/ComputeAutoMapperProfile.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,15 @@ private static void Initialize()
178178
cfg.CreateMap<FROM.VirtualMachineSize, TO.PSVirtualMachineSize>();
179179
cfg.CreateMap<TO.PSVirtualMachineSize, FROM.VirtualMachineSize>();
180180

181+
cfg.CreateMap<FROM.VirtualMachineScaleSetVMProfile, TO.PSVirtualMachineScaleSetVMProfile>();
182+
cfg.CreateMap<TO.PSVirtualMachineScaleSetVMProfile, FROM.VirtualMachineScaleSetVMProfile>();
183+
cfg.CreateMap<FROM.VirtualMachineScaleSetExtensionProfile, TO.PSVirtualMachineScaleSetExtensionProfile>();
184+
cfg.CreateMap<TO.PSVirtualMachineScaleSetExtensionProfile, FROM.VirtualMachineScaleSetExtensionProfile>();
185+
cfg.CreateMap<FROM.VirtualMachineScaleSetExtension, TO.PSVirtualMachineScaleSetExtension>()
186+
.ForMember(c => c.Type, o => o.MapFrom(r => r.Type1));
187+
cfg.CreateMap<TO.PSVirtualMachineScaleSetExtension, FROM.VirtualMachineScaleSetExtension>()
188+
.ForMember(c => c.Type1, o => o.MapFrom(r => r.Type));
189+
181190
});
182191
_mapper = config.CreateMapper();
183192
}

src/Compute/Compute/Generated/Models/PSVirtualMachineScaleSet.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ public string ResourceGroupName
4444
public Plan Plan { get; set; }
4545
public UpgradePolicy UpgradePolicy { get; set; }
4646
public AutomaticRepairsPolicy AutomaticRepairsPolicy { get; set; }
47-
public VirtualMachineScaleSetVMProfile VirtualMachineProfile { get; set; }
4847
public string ProvisioningState { get; set; }
4948
public bool? Overprovision { get; set; }
5049
public bool? DoNotRunExtensionsOnOverprovisionedVMs { get; set; }

src/Compute/Compute/Generated/VirtualMachineScaleSet/Config/AddAzureRmVmssAdditionalUnattendContentCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ private void Run()
7878
// VirtualMachineProfile
7979
if (this.VirtualMachineScaleSet.VirtualMachineProfile == null)
8080
{
81-
this.VirtualMachineScaleSet.VirtualMachineProfile = new VirtualMachineScaleSetVMProfile();
81+
this.VirtualMachineScaleSet.VirtualMachineProfile = new PSVirtualMachineScaleSetVMProfile();
8282
}
8383

8484
// OsProfile

src/Compute/Compute/Generated/VirtualMachineScaleSet/Config/AddAzureRmVmssDataDiskCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ private void Run()
108108
// VirtualMachineProfile
109109
if (this.VirtualMachineScaleSet.VirtualMachineProfile == null)
110110
{
111-
this.VirtualMachineScaleSet.VirtualMachineProfile = new VirtualMachineScaleSetVMProfile();
111+
this.VirtualMachineScaleSet.VirtualMachineProfile = new PSVirtualMachineScaleSetVMProfile();
112112
}
113113

114114
// StorageProfile

0 commit comments

Comments
 (0)