Skip to content

Commit fa0e1f5

Browse files
authored
Merge pull request #8059 from hyonholee/december2
[Compute] breaking changes
2 parents 32d2e39 + a6b8c9b commit fa0e1f5

File tree

62 files changed

+168
-601
lines changed

Some content is hidden

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

62 files changed

+168
-601
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,6 @@ function Test-VirtualMachineScaleSetProfile
113113
Assert-AreEqual 2 $vmss.Identity.UserAssignedIdentities.Keys.Count;
114114
Assert-True { $vmss.Identity.UserAssignedIdentities.ContainsKey($newUserId1) };
115115
Assert-True { $vmss.Identity.UserAssignedIdentities.ContainsKey($newUserId2) };
116-
Assert-AreEqual $newUserId1 $vmss.Identity.IdentityIds[0];
117-
Assert-AreEqual $newUserId2 $vmss.Identity.IdentityIds[1];
118116

119117
# AdditionalCapabilities
120118
Assert-Null $vmss.VirtualMachineProfile.AdditionalCapabilities;

src/ResourceManager/Compute/Commands.Compute/ChangeLog.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,10 @@
1818
* Overview of change #1
1919
- Additional information about change #1
2020
-->
21-
## Current Release
21+
## Current Release
22+
* Breaking changes
23+
- IdentityIds are removed from Identity property in PSVirtualMachine and PSVirtualMachineScaleSet object.
24+
- The type of InstanceView property of PSVirtualMachineScaleSetVM object is changed from VirtualMachineInstanceView to VirtualMachineScaleSetVMInstanceView.
25+
- AutoOSUpgradePolicy and AutomaticOSUpgrade properties are removed from UpgradePolicy property.
26+
- The type of Sku property in PSSnapshotUpdate object is changed from DiskSku to SnapshotSku.
27+
- VmScaleSetVMParameterSet is removed from Add-AzVMDataDisk.

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@
213213
<Compile Include="Models\PSAvailabilitySet.cs" />
214214
<Compile Include="Models\PSVirtualMachineImageResource.cs" />
215215
<Compile Include="Models\PSVirtualMachineInstanceView.cs" />
216-
<Compile Include="Models\PSVirtualMachineIdentity.cs" />
217216
<Compile Include="Models\PSVirtualMachineList.cs" />
218217
<Compile Include="Models\PSVirtualMachineListStatus.cs" />
219218
<Compile Include="Models\PSVirtualMachineScaleSetExtension.cs" />

src/ResourceManager/Compute/Commands.Compute/Common/ComputeAutoMapperProfile.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -188,18 +188,6 @@ private static void Initialize()
188188
// PSVmssDiskEncryptionStatusContext <=> PSVmssDiskEncryptionStatusContextList
189189
cfg.CreateMap<TO.PSVmssDiskEncryptionStatusContext, TO.PSVmssDiskEncryptionStatusContextList>();
190190
cfg.CreateMap<TO.PSVmssVMDiskEncryptionStatusContext, TO.PSVmssVMDiskEncryptionStatusContextList>();
191-
192-
// PSVirtualMachineIdentity <=> VirtualMachineIdentity
193-
cfg.CreateMap<FROM.VirtualMachineIdentity, TO.PSVirtualMachineIdentity>()
194-
.AfterMap((src, dest) =>
195-
{
196-
if (src.UserAssignedIdentities == null) dest.UserAssignedIdentities = null;
197-
});
198-
cfg.CreateMap<TO.PSVirtualMachineIdentity, FROM.VirtualMachineIdentity>()
199-
.AfterMap((src, dest) =>
200-
{
201-
if (src.UserAssignedIdentities == null) dest.UserAssignedIdentities = null;
202-
});
203191
});
204192

205193
_mapper = config.CreateMapper();

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@
2727

2828
namespace Microsoft.Azure.Commands.Compute.Extension.Diagnostics
2929
{
30-
#if NETSTANDARD
31-
[CmdletOutputBreakingChange(typeof(PSUpgradePolicy),
32-
DeprecatedOutputProperties = new string[] { "AutomaticOSUpgrade", "AutoOSUpgradePolicy" })]
33-
[CmdletOutputBreakingChange(typeof(PSVirtualMachineScaleSetIdentity),
34-
DeprecatedOutputProperties = new string[] { "IdentityIds" })]
35-
#endif
3630
[Cmdlet("Add", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VmssDiagnosticsExtension",SupportsShouldProcess = true)]
3731
[OutputType(typeof(PSVirtualMachineScaleSet))]
3832
public class AddAzureRmVmssDiagnosticsExtension : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet

src/ResourceManager/Compute/Commands.Compute/Extension/Diagnostics/RemoveAzureRmVmssDiagnosticsExtension.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@
2222

2323
namespace Microsoft.Azure.Commands.Compute
2424
{
25-
#if NETSTANDARD
26-
[CmdletOutputBreakingChange(typeof(PSUpgradePolicy),
27-
DeprecatedOutputProperties = new string[] { "AutomaticOSUpgrade", "AutoOSUpgradePolicy" })]
28-
[CmdletOutputBreakingChange(typeof(PSVirtualMachineScaleSetIdentity),
29-
DeprecatedOutputProperties = new string[] { "IdentityIds" })]
30-
#endif
3125
[Cmdlet("Remove", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VmssDiagnosticsExtension",SupportsShouldProcess = true)]
3226
[OutputType(typeof(PSVirtualMachineScaleSet))]
3327
public class RemoveAzureRmVmssDiagnosticsExtension : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@
2525

2626
namespace Microsoft.Azure.Commands.Compute.Extension.AzureDiskEncryption
2727
{
28-
#if NETSTANDARD
29-
[CmdletOutputBreakingChange(typeof(PSUpgradePolicy),
30-
DeprecatedOutputProperties = new string[] { "AutomaticOSUpgrade", "AutoOSUpgradePolicy" })]
31-
[CmdletOutputBreakingChange(typeof(PSVirtualMachineScaleSetIdentity),
32-
DeprecatedOutputProperties = new string[] { "IdentityIds" })]
33-
#endif
3428
[Cmdlet("Disable", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VmssDiskEncryption",SupportsShouldProcess = true)]
3529
[OutputType(typeof(PSVirtualMachineScaleSet))]
3630
public class RemoveAzureVmssDiskEncryptionCommand : VirtualMachineScaleSetExtensionBaseCmdlet

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ private static void Initialize()
8080
cfg.CreateMap<FROM.Snapshot, TO.PSSnapshotList>();
8181
cfg.CreateMap<TO.PSSnapshotList, TO.PSSnapshot>();
8282
cfg.CreateMap<TO.PSSnapshot, TO.PSSnapshotList>();
83-
cfg.CreateMap<FROM.UpgradePolicy, TO.PSUpgradePolicy>();
84-
cfg.CreateMap<TO.PSUpgradePolicy, FROM.UpgradePolicy>();
8583
cfg.CreateMap<FROM.VirtualMachineScaleSet, TO.PSVirtualMachineScaleSetList>()
8684
.ForMember(c => c.Zones, o => o.Condition(r => (r.Zones != null)));
8785
cfg.CreateMap<TO.PSVirtualMachineScaleSetList, TO.PSVirtualMachineScaleSet>()
@@ -137,16 +135,6 @@ private static void Initialize()
137135
cfg.CreateMap<TO.PSRunCommandDocumentBase, FROM.RunCommandDocumentBase>();
138136
cfg.CreateMap<FROM.RollingUpgradeStatusInfo, TO.PSRollingUpgradeStatusInfo>();
139137
cfg.CreateMap<TO.PSRollingUpgradeStatusInfo, FROM.RollingUpgradeStatusInfo>();
140-
cfg.CreateMap<FROM.VirtualMachineScaleSetIdentity, TO.PSVirtualMachineScaleSetIdentity>()
141-
.AfterMap((src, dest) =>
142-
{
143-
if (src.UserAssignedIdentities == null) dest.UserAssignedIdentities = null;
144-
});
145-
cfg.CreateMap<TO.PSVirtualMachineScaleSetIdentity, FROM.VirtualMachineScaleSetIdentity>()
146-
.AfterMap((src, dest) =>
147-
{
148-
if (src.UserAssignedIdentities == null) dest.UserAssignedIdentities = null;
149-
});
150138
cfg.CreateMap<FROM.VirtualMachineScaleSet, TO.PSVirtualMachineScaleSet>()
151139
.ForMember(c => c.Zones, o => o.Condition(r => (r.Zones != null)));
152140
cfg.CreateMap<TO.PSVirtualMachineScaleSet, FROM.VirtualMachineScaleSet>()

src/ResourceManager/Compute/Commands.Compute/Generated/Models/PSSnapshotUpdate.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ public partial class PSSnapshotUpdate
3131
public int? DiskSizeGB { get; set; }
3232
public EncryptionSettings EncryptionSettings { get; set; }
3333
public IDictionary<string, string> Tags { get; set; }
34-
//public SnapshotSku Sku { get; set; }
34+
public SnapshotSku Sku { get; set; }
3535
}
3636
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ public string ResourceGroupName
4343

4444
public Sku Sku { get; set; }
4545
public Plan Plan { get; set; }
46-
public PSUpgradePolicy UpgradePolicy { get; set; }
46+
public UpgradePolicy UpgradePolicy { get; set; }
4747
public VirtualMachineScaleSetVMProfile VirtualMachineProfile { get; set; }
4848
public string ProvisioningState { get; set; }
4949
public bool? Overprovision { get; set; }
5050
public string UniqueId { get; set; }
5151
public bool? SinglePlacementGroup { get; set; }
5252
public bool? ZoneBalance { get; set; }
5353
public int? PlatformFaultDomainCount { get; set; }
54-
//public VirtualMachineScaleSetIdentity Identity { get; set; }
54+
public VirtualMachineScaleSetIdentity Identity { get; set; }
5555
public System.Collections.Generic.IList<string> Zones { get; set; }
5656
public string Id { get; set; }
5757
public string Name { get; set; }

src/ResourceManager/Compute/Commands.Compute/Generated/Models/PSVirtualMachineScaleSetVM.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public string ResourceGroupName
4444
public Sku Sku { get; set; }
4545
public bool? LatestModelApplied { get; set; }
4646
public string VmId { get; set; }
47-
//public VirtualMachineScaleSetVMInstanceView InstanceView { get; set; }
47+
public VirtualMachineScaleSetVMInstanceView InstanceView { get; set; }
4848
public HardwareProfile HardwareProfile { get; set; }
4949
public StorageProfile StorageProfile { get; set; }
5050
public AdditionalCapabilities AdditionalCapabilities { get; set; }

src/ResourceManager/Compute/Commands.Compute/Generated/Snapshot/Config/NewAzureRmSnapshotUpdateConfigCommand.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@
3131

3232
namespace Microsoft.Azure.Commands.Compute.Automation
3333
{
34-
#if NETSTANDARD
35-
[CmdletOutputBreakingChange(typeof(DiskSku), ReplacementCmdletOutputTypeName = "SnapshotSku")]
36-
#endif
3734
[Cmdlet(VerbsCommon.New, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SnapshotUpdateConfig", SupportsShouldProcess = true)]
3835
[OutputType(typeof(PSSnapshotUpdate))]
3936
public partial class NewAzureRmSnapshotUpdateConfigCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
@@ -137,10 +134,7 @@ private void Run()
137134
DiskSizeGB = this.MyInvocation.BoundParameters.ContainsKey("DiskSizeGB") ? this.DiskSizeGB : (int?)null,
138135
Tags = this.MyInvocation.BoundParameters.ContainsKey("Tag") ? this.Tag.Cast<DictionaryEntry>().ToDictionary(ht => (string)ht.Key, ht => (string)ht.Value) : null,
139136
EncryptionSettings = vEncryptionSettings,
140-
Sku = new DiskSku
141-
{
142-
Name = vSku.Name.ToString()
143-
}
137+
Sku = vSku
144138
};
145139

146140
WriteObject(vSnapshotUpdate);

src/ResourceManager/Compute/Commands.Compute/Generated/Snapshot/Config/SetAzureRmSnapshotUpdateDiskEncryptionKeyCommand.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@
3030

3131
namespace Microsoft.Azure.Commands.Compute.Automation
3232
{
33-
#if NETSTANDARD
34-
[CmdletOutputBreakingChange(typeof(DiskSku), ReplacementCmdletOutputTypeName = "SnapshotSku")]
35-
#endif
3633
[Cmdlet(VerbsCommon.Set, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SnapshotUpdateDiskEncryptionKey", SupportsShouldProcess = true)]
3734
[OutputType(typeof(PSSnapshotUpdate))]
3835
public partial class SetAzureRmSnapshotUpdateDiskEncryptionKeyCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet

src/ResourceManager/Compute/Commands.Compute/Generated/Snapshot/Config/SetAzureRmSnapshotUpdateKeyEncryptionKeyCommand.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@
3030

3131
namespace Microsoft.Azure.Commands.Compute.Automation
3232
{
33-
#if NETSTANDARD
34-
[CmdletOutputBreakingChange(typeof(DiskSku), ReplacementCmdletOutputTypeName = "SnapshotSku")]
35-
#endif
3633
[Cmdlet(VerbsCommon.Set, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SnapshotUpdateKeyEncryptionKey", SupportsShouldProcess = true)]
3734
[OutputType(typeof(PSSnapshotUpdate))]
3835
public partial class SetAzureRmSnapshotUpdateKeyEncryptionKeyCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@
3030

3131
namespace Microsoft.Azure.Commands.Compute.Automation
3232
{
33-
#if NETSTANDARD
34-
[CmdletOutputBreakingChange(typeof(PSUpgradePolicy),
35-
DeprecatedOutputProperties = new string[] { "AutomaticOSUpgrade", "AutoOSUpgradePolicy" })]
36-
[CmdletOutputBreakingChange(typeof(PSVirtualMachineScaleSetIdentity),
37-
DeprecatedOutputProperties = new string[] { "IdentityIds" })]
38-
#endif
3933
[Cmdlet(VerbsCommon.Add, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VmssAdditionalUnattendContent", SupportsShouldProcess = true)]
4034
[OutputType(typeof(PSVirtualMachineScaleSet))]
4135
public partial class AddAzureRmVmssAdditionalUnattendContentCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@
3131

3232
namespace Microsoft.Azure.Commands.Compute.Automation
3333
{
34-
#if NETSTANDARD
35-
[CmdletOutputBreakingChange(typeof(PSUpgradePolicy),
36-
DeprecatedOutputProperties = new string[] { "AutomaticOSUpgrade", "AutoOSUpgradePolicy" })]
37-
[CmdletOutputBreakingChange(typeof(PSVirtualMachineScaleSetIdentity),
38-
DeprecatedOutputProperties = new string[] { "IdentityIds" })]
39-
#endif
4034
[Cmdlet(VerbsCommon.Add, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VmssDataDisk", SupportsShouldProcess = true)]
4135
[OutputType(typeof(PSVirtualMachineScaleSet))]
4236
public partial class AddAzureRmVmssDataDiskCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet

src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachineScaleSet/Config/AddAzureRmVmssExtensionCommand.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@
3030

3131
namespace Microsoft.Azure.Commands.Compute.Automation
3232
{
33-
#if NETSTANDARD
34-
[CmdletOutputBreakingChange(typeof(PSUpgradePolicy),
35-
DeprecatedOutputProperties = new string[] { "AutomaticOSUpgrade", "AutoOSUpgradePolicy" })]
36-
[CmdletOutputBreakingChange(typeof(PSVirtualMachineScaleSetIdentity),
37-
DeprecatedOutputProperties = new string[] { "IdentityIds" })]
38-
#endif
3933
[Cmdlet(VerbsCommon.Add, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VmssExtension", SupportsShouldProcess = true)]
4034
[OutputType(typeof(PSVirtualMachineScaleSet))]
4135
public partial class AddAzureRmVmssExtensionCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet

src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachineScaleSet/Config/AddAzureRmVmssNetworkInterfaceConfigurationCommand.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@
3030

3131
namespace Microsoft.Azure.Commands.Compute.Automation
3232
{
33-
#if NETSTANDARD
34-
[CmdletOutputBreakingChange(typeof(PSUpgradePolicy),
35-
DeprecatedOutputProperties = new string[] { "AutomaticOSUpgrade", "AutoOSUpgradePolicy" })]
36-
[CmdletOutputBreakingChange(typeof(PSVirtualMachineScaleSetIdentity),
37-
DeprecatedOutputProperties = new string[] { "IdentityIds" })]
38-
#endif
3933
[Cmdlet(VerbsCommon.Add, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VmssNetworkInterfaceConfiguration", SupportsShouldProcess = true)]
4034
[OutputType(typeof(PSVirtualMachineScaleSet))]
4135
public partial class AddAzureRmVmssNetworkInterfaceConfigurationCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet

src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachineScaleSet/Config/AddAzureRmVmssSecretCommand.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@
3030

3131
namespace Microsoft.Azure.Commands.Compute.Automation
3232
{
33-
#if NETSTANDARD
34-
[CmdletOutputBreakingChange(typeof(PSUpgradePolicy),
35-
DeprecatedOutputProperties = new string[] { "AutomaticOSUpgrade", "AutoOSUpgradePolicy" })]
36-
[CmdletOutputBreakingChange(typeof(PSVirtualMachineScaleSetIdentity),
37-
DeprecatedOutputProperties = new string[] { "IdentityIds" })]
38-
#endif
3933
[Cmdlet(VerbsCommon.Add, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VmssSecret", SupportsShouldProcess = true)]
4034
[OutputType(typeof(PSVirtualMachineScaleSet))]
4135
public partial class AddAzureRmVmssSecretCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet

src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachineScaleSet/Config/AddAzureRmVmssSshPublicKeyCommand.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@
3030

3131
namespace Microsoft.Azure.Commands.Compute.Automation
3232
{
33-
#if NETSTANDARD
34-
[CmdletOutputBreakingChange(typeof(PSUpgradePolicy),
35-
DeprecatedOutputProperties = new string[] { "AutomaticOSUpgrade", "AutoOSUpgradePolicy" })]
36-
[CmdletOutputBreakingChange(typeof(PSVirtualMachineScaleSetIdentity),
37-
DeprecatedOutputProperties = new string[] { "IdentityIds" })]
38-
#endif
3933
[Cmdlet(VerbsCommon.Add, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VmssSshPublicKey", SupportsShouldProcess = true)]
4034
[OutputType(typeof(PSVirtualMachineScaleSet))]
4135
public partial class AddAzureRmVmssSshPublicKeyCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet

src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachineScaleSet/Config/AddAzureRmVmssWinRMListenerCommand.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@
3030

3131
namespace Microsoft.Azure.Commands.Compute.Automation
3232
{
33-
#if NETSTANDARD
34-
[CmdletOutputBreakingChange(typeof(PSUpgradePolicy),
35-
DeprecatedOutputProperties = new string[] { "AutomaticOSUpgrade", "AutoOSUpgradePolicy" })]
36-
[CmdletOutputBreakingChange(typeof(PSVirtualMachineScaleSetIdentity),
37-
DeprecatedOutputProperties = new string[] { "IdentityIds" })]
38-
#endif
3933
[Cmdlet(VerbsCommon.Add, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VmssWinRMListener", SupportsShouldProcess = true)]
4034
[OutputType(typeof(PSVirtualMachineScaleSet))]
4135
public partial class AddAzureRmVmssWinRMListenerCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet

src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachineScaleSet/Config/NewAzureRmVmssConfigCommand.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@
3131

3232
namespace Microsoft.Azure.Commands.Compute.Automation
3333
{
34-
#if NETSTANDARD
35-
[CmdletOutputBreakingChange(typeof(PSUpgradePolicy),
36-
DeprecatedOutputProperties = new string[] { "AutomaticOSUpgrade", "AutoOSUpgradePolicy" })]
37-
[CmdletOutputBreakingChange(typeof(PSVirtualMachineScaleSetIdentity),
38-
DeprecatedOutputProperties = new string[] { "IdentityIds" })]
39-
#endif
4034
[Cmdlet(VerbsCommon.New, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VmssConfig", SupportsShouldProcess = true, DefaultParameterSetName = "DefaultParameterSet")]
4135
[OutputType(typeof(PSVirtualMachineScaleSet))]
4236
public partial class NewAzureRmVmssConfigCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
@@ -490,9 +484,9 @@ private void Run()
490484
Tags = this.MyInvocation.BoundParameters.ContainsKey("Tag") ? this.Tag.Cast<DictionaryEntry>().ToDictionary(ht => (string)ht.Key, ht => (string)ht.Value) : null,
491485
Sku = vSku,
492486
Plan = vPlan,
493-
UpgradePolicy = (vUpgradePolicy == null) ? null : new PSUpgradePolicy(vUpgradePolicy),
487+
UpgradePolicy = vUpgradePolicy,
494488
VirtualMachineProfile = vVirtualMachineProfile,
495-
Identity = (vIdentity == null) ? null : new PSVirtualMachineScaleSetIdentity(vIdentity),
489+
Identity = vIdentity,
496490
};
497491

498492
WriteObject(vVirtualMachineScaleSet);

src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachineScaleSet/Config/RemoveAzureRmVmssDataDiskCommand.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@
3030

3131
namespace Microsoft.Azure.Commands.Compute.Automation
3232
{
33-
#if NETSTANDARD
34-
[CmdletOutputBreakingChange(typeof(PSUpgradePolicy),
35-
DeprecatedOutputProperties = new string[] { "AutomaticOSUpgrade", "AutoOSUpgradePolicy" })]
36-
[CmdletOutputBreakingChange(typeof(PSVirtualMachineScaleSetIdentity),
37-
DeprecatedOutputProperties = new string[] { "IdentityIds" })]
38-
#endif
3933
[Cmdlet(VerbsCommon.Remove, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VmssDataDisk", SupportsShouldProcess = true)]
4034
[OutputType(typeof(PSVirtualMachineScaleSet))]
4135
public partial class RemoveAzureRmVmssDataDiskCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet

src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachineScaleSet/Config/RemoveAzureRmVmssExtensionCommand.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@
3030

3131
namespace Microsoft.Azure.Commands.Compute.Automation
3232
{
33-
#if NETSTANDARD
34-
[CmdletOutputBreakingChange(typeof(PSUpgradePolicy),
35-
DeprecatedOutputProperties = new string[] { "AutomaticOSUpgrade", "AutoOSUpgradePolicy" })]
36-
[CmdletOutputBreakingChange(typeof(PSVirtualMachineScaleSetIdentity),
37-
DeprecatedOutputProperties = new string[] { "IdentityIds" })]
38-
#endif
3933
[Cmdlet(VerbsCommon.Remove, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VmssExtension", SupportsShouldProcess = true)]
4034
[OutputType(typeof(PSVirtualMachineScaleSet))]
4135
public partial class RemoveAzureRmVmssExtensionCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet

src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachineScaleSet/Config/RemoveAzureRmVmssNetworkInterfaceConfigurationCommand.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@
3030

3131
namespace Microsoft.Azure.Commands.Compute.Automation
3232
{
33-
#if NETSTANDARD
34-
[CmdletOutputBreakingChange(typeof(PSUpgradePolicy),
35-
DeprecatedOutputProperties = new string[] { "AutomaticOSUpgrade", "AutoOSUpgradePolicy" })]
36-
[CmdletOutputBreakingChange(typeof(PSVirtualMachineScaleSetIdentity),
37-
DeprecatedOutputProperties = new string[] { "IdentityIds" })]
38-
#endif
3933
[Cmdlet(VerbsCommon.Remove, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VmssNetworkInterfaceConfiguration", SupportsShouldProcess = true)]
4034
[OutputType(typeof(PSVirtualMachineScaleSet))]
4135
public partial class RemoveAzureRmVmssNetworkInterfaceConfigurationCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet

src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachineScaleSet/Config/SetAzureRmVmssBootDiagnosticCommand.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@
3030

3131
namespace Microsoft.Azure.Commands.Compute.Automation
3232
{
33-
#if NETSTANDARD
34-
[CmdletOutputBreakingChange(typeof(PSUpgradePolicy),
35-
DeprecatedOutputProperties = new string[] { "AutomaticOSUpgrade", "AutoOSUpgradePolicy" })]
36-
[CmdletOutputBreakingChange(typeof(PSVirtualMachineScaleSetIdentity),
37-
DeprecatedOutputProperties = new string[] { "IdentityIds" })]
38-
#endif
3933
[Cmdlet(VerbsCommon.Set, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VmssBootDiagnostic", SupportsShouldProcess = true)]
4034
[OutputType(typeof(PSVirtualMachineScaleSet))]
4135
public partial class SetAzureRmVmssBootDiagnosticCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet

0 commit comments

Comments
 (0)