Skip to content

Commit ecbcc0e

Browse files
authored
Merge pull request Azure#4865 from hyonholee/preview
[Compute] Remove obsolete parameters and cmdlets, and re-generate code
2 parents 8f1827e + c46248c commit ecbcc0e

File tree

60 files changed

+97
-1118
lines changed

Some content is hidden

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

60 files changed

+97
-1118
lines changed

src/ResourceManager/Compute/AzureRM.Compute.psd1

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,7 @@ CmdletsToExport = 'Remove-AzureRmAvailabilitySet', 'Get-AzureRmAvailabilitySet',
145145
'New-AzureRmDiskConfig', 'Set-AzureRmDiskDiskEncryptionKey',
146146
'Set-AzureRmDiskImageReference', 'Set-AzureRmDiskKeyEncryptionKey',
147147
'New-AzureRmDiskUpdateConfig',
148-
'Set-AzureRmDiskUpdateDiskEncryptionKey',
149-
'Set-AzureRmDiskUpdateImageReference',
148+
'Set-AzureRmDiskUpdateDiskEncryptionKey',
150149
'Set-AzureRmDiskUpdateKeyEncryptionKey', 'New-AzureRmSnapshot',
151150
'Update-AzureRmSnapshot', 'Get-AzureRmSnapshot',
152151
'Remove-AzureRmSnapshot', 'Grant-AzureRmSnapshotAccess',
@@ -155,8 +154,7 @@ CmdletsToExport = 'Remove-AzureRmAvailabilitySet', 'Get-AzureRmAvailabilitySet',
155154
'Set-AzureRmSnapshotImageReference',
156155
'Set-AzureRmSnapshotKeyEncryptionKey',
157156
'New-AzureRmSnapshotUpdateConfig',
158-
'Set-AzureRmSnapshotUpdateDiskEncryptionKey',
159-
'Set-AzureRmSnapshotUpdateImageReference',
157+
'Set-AzureRmSnapshotUpdateDiskEncryptionKey',
160158
'Set-AzureRmSnapshotUpdateKeyEncryptionKey', 'New-AzureRmImage',
161159
'Update-AzureRmImage', 'Get-AzureRmImage', 'Remove-AzureRmImage',
162160
'New-AzureRmImageConfig', 'Set-AzureRmImageOsDisk',

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,9 +968,11 @@ function Test-VirtualMachineAccessExtension
968968
$extver = '2.0';
969969
$user2 = "Bar12";
970970
$password2 = 'FoO@123' + $rgname;
971+
$securePassword2 = ConvertTo-SecureString $password2 -AsPlainText -Force;
971972

972973
# Set custom script extension
973-
Set-AzureRmVMAccessExtension -ResourceGroupName $rgname -Location $loc -VMName $vmname -Name $extname -TypeHandlerVersion $extver -UserName $user2 -Password $password2;
974+
$cred2 = New-Object System.Management.Automation.PSCredential ($user2, $securePassword2);
975+
Set-AzureRmVMAccessExtension -ResourceGroupName $rgname -Location $loc -VMName $vmname -Name $extname -TypeHandlerVersion $extver -Credential $cred2
974976

975977
$publisher = 'Microsoft.Compute';
976978
$exttype = 'VMAccessAgent';

src/ResourceManager/Compute/Commands.Compute/Extension/VMAccess/SetAzureVMAccessExtension.cs

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

15-
using AutoMapper;
1615
using Microsoft.Azure.Commands.Compute.Common;
1716
using Microsoft.Azure.Commands.Compute.Models;
1817
using Microsoft.Azure.Management.Compute.Models;
19-
using System;
18+
using Microsoft.WindowsAzure.Commands.Common;
2019
using System.Collections;
2120
using System.Management.Automation;
2221

@@ -35,16 +34,9 @@ public class SetAzureVMAccessExtensionCommand : SetAzureVMExtensionBaseCmdlet
3534
[Parameter(
3635
Mandatory = false,
3736
ValueFromPipelineByPropertyName = true,
38-
HelpMessage = "New or Existing User Name")]
39-
[Obsolete("Set-AzureRmVMAccessExtension: The parameter \"UserName\" is being removed in a future release in favor of a new PSCredential parameter (-Credential).")]
40-
public string UserName { get; set; }
41-
42-
[Parameter(
43-
Mandatory = false,
44-
ValueFromPipelineByPropertyName = true,
45-
HelpMessage = "New or Existing User Password")]
46-
[Obsolete("Set-AzureRmVMAccessExtension: The parameter \"Password\" is being removed in a future release in favor of a new PSCredential parameter (-Credential).")]
47-
public string Password { get; set; }
37+
HelpMessage = "Credential")]
38+
[ValidateNotNullOrEmpty]
39+
public PSCredential Credential { get; set; }
4840

4941
public override void ExecuteCmdlet()
5042
{
@@ -55,10 +47,13 @@ public override void ExecuteCmdlet()
5547
ExecuteClientAction(() =>
5648
{
5749
Hashtable publicSettings = new Hashtable();
58-
publicSettings.Add(userNameKey, UserName ?? "");
59-
6050
Hashtable privateSettings = new Hashtable();
61-
privateSettings.Add(passwordKey, Password ?? "");
51+
52+
if (Credential != null)
53+
{
54+
publicSettings.Add(userNameKey, Credential.UserName ?? "");
55+
privateSettings.Add(passwordKey, ConversionUtilities.SecureStringToString(Credential.Password));
56+
}
6257

6358
if (string.IsNullOrEmpty(this.Location))
6459
{

src/ResourceManager/Compute/Commands.Compute/Generated/ContainerService/ContainerServiceCreateOrUpdateMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

22-
using AutoMapper;
2322
using Microsoft.Azure.Commands.Compute.Automation.Models;
2423
using Microsoft.Azure.Management.Compute;
2524
using Microsoft.Azure.Management.Compute.Models;

src/ResourceManager/Compute/Commands.Compute/Generated/ContainerService/ContainerServiceDeleteMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

22-
using AutoMapper;
2322
using Microsoft.Azure.Commands.Compute.Automation.Models;
2423
using Microsoft.Azure.Management.Compute;
2524
using Microsoft.Azure.Management.Compute.Models;

src/ResourceManager/Compute/Commands.Compute/Generated/ContainerService/ContainerServiceGetMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

22-
using AutoMapper;
2322
using Microsoft.Azure.Commands.Compute.Automation.Models;
2423
using Microsoft.Azure.Management.Compute;
2524
using Microsoft.Azure.Management.Compute.Models;

src/ResourceManager/Compute/Commands.Compute/Generated/Disk/DiskCreateOrUpdateMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

22-
using AutoMapper;
2322
using Microsoft.Azure.Commands.Compute.Automation.Models;
2423
using Microsoft.Azure.Management.Compute;
2524
using Microsoft.Azure.Management.Compute.Models;

src/ResourceManager/Compute/Commands.Compute/Generated/Disk/DiskDeleteMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

22-
using AutoMapper;
2322
using Microsoft.Azure.Commands.Compute.Automation.Models;
2423
using Microsoft.Azure.Management.Compute;
2524
using Microsoft.Azure.Management.Compute.Models;

src/ResourceManager/Compute/Commands.Compute/Generated/Disk/DiskGetMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

22-
using AutoMapper;
2322
using Microsoft.Azure.Commands.Compute.Automation.Models;
2423
using Microsoft.Azure.Management.Compute;
2524
using Microsoft.Azure.Management.Compute.Models;

src/ResourceManager/Compute/Commands.Compute/Generated/Disk/DiskGrantAccessMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

22-
using AutoMapper;
2322
using Microsoft.Azure.Commands.Compute.Automation.Models;
2423
using Microsoft.Azure.Management.Compute;
2524
using Microsoft.Azure.Management.Compute.Models;

src/ResourceManager/Compute/Commands.Compute/Generated/Disk/DiskRevokeAccessMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

22-
using AutoMapper;
2322
using Microsoft.Azure.Commands.Compute.Automation.Models;
2423
using Microsoft.Azure.Management.Compute;
2524
using Microsoft.Azure.Management.Compute.Models;

src/ResourceManager/Compute/Commands.Compute/Generated/Disk/DiskUpdateMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

22-
using AutoMapper;
2322
using Microsoft.Azure.Commands.Compute.Automation.Models;
2423
using Microsoft.Azure.Management.Compute;
2524
using Microsoft.Azure.Management.Compute.Models;

src/ResourceManager/Compute/Commands.Compute/Generated/Image/ImageCreateOrUpdateMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

22-
using AutoMapper;
2322
using Microsoft.Azure.Commands.Compute.Automation.Models;
2423
using Microsoft.Azure.Management.Compute;
2524
using Microsoft.Azure.Management.Compute.Models;

src/ResourceManager/Compute/Commands.Compute/Generated/Image/ImageDeleteMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

22-
using AutoMapper;
2322
using Microsoft.Azure.Commands.Compute.Automation.Models;
2423
using Microsoft.Azure.Management.Compute;
2524
using Microsoft.Azure.Management.Compute.Models;

src/ResourceManager/Compute/Commands.Compute/Generated/Image/ImageGetMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

22-
using AutoMapper;
2322
using Microsoft.Azure.Commands.Compute.Automation.Models;
2423
using Microsoft.Azure.Management.Compute;
2524
using Microsoft.Azure.Management.Compute.Models;

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

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
// code is regenerated.
2121

2222
using AutoMapper;
23-
using System;
2423
using FROM = Microsoft.Azure.Management.Compute.Models;
2524
using TO = Microsoft.Azure.Commands.Compute.Automation.Models;
2625

@@ -63,9 +62,12 @@ private static void Initialize()
6362
cfg.CreateMap<FROM.ContainerService, TO.PSContainerServiceList>();
6463
cfg.CreateMap<TO.PSContainerServiceList, TO.PSContainerService>();
6564
cfg.CreateMap<TO.PSContainerService, TO.PSContainerServiceList>();
66-
cfg.CreateMap<FROM.Disk, TO.PSDiskList>();
67-
cfg.CreateMap<TO.PSDiskList, TO.PSDisk>();
68-
cfg.CreateMap<TO.PSDisk, TO.PSDiskList>();
65+
cfg.CreateMap<FROM.Disk, TO.PSDiskList>()
66+
.ForMember(c => c.Zones, o => o.Condition(r => (r.Zones != null)));
67+
cfg.CreateMap<TO.PSDiskList, TO.PSDisk>()
68+
.ForMember(c => c.Zones, o => o.Condition(r => (r.Zones != null)));
69+
cfg.CreateMap<TO.PSDisk, TO.PSDiskList>()
70+
.ForMember(c => c.Zones, o => o.Condition(r => (r.Zones != null)));
6971
cfg.CreateMap<FROM.Image, TO.PSImageList>();
7072
cfg.CreateMap<TO.PSImageList, TO.PSImage>();
7173
cfg.CreateMap<TO.PSImage, TO.PSImageList>();
@@ -92,7 +94,7 @@ private static void Initialize()
9294
cfg.CreateMap<TO.PSVirtualMachineList, TO.PSVirtualMachine>()
9395
.ForMember(c => c.Zones, o => o.Condition(r => (r.Zones != null)));
9496
cfg.CreateMap<TO.PSVirtualMachine, TO.PSVirtualMachineList>()
95-
.ForMember(c => c.Zones, o => o.Condition(r => (r.Zones != null)));
97+
.ForMember(c => c.Zones, o => o.Condition(r => (r.Zones != null)));
9698
cfg.CreateMap<FROM.VirtualMachine, TO.PSVirtualMachineList>()
9799
.ForMember(c => c.Zones, o => o.Condition(r => (r.Zones != null)));
98100
cfg.CreateMap<TO.PSVirtualMachineList, TO.PSVirtualMachine>()
@@ -131,6 +133,8 @@ private static void Initialize()
131133
cfg.CreateMap<TO.PSRunCommandDocument, FROM.RunCommandDocument>();
132134
cfg.CreateMap<FROM.RunCommandDocumentBase, TO.PSRunCommandDocumentBase>();
133135
cfg.CreateMap<TO.PSRunCommandDocumentBase, FROM.RunCommandDocumentBase>();
136+
cfg.CreateMap<FROM.RollingUpgradeStatusInfo, TO.PSRollingUpgradeStatusInfo>();
137+
cfg.CreateMap<TO.PSRollingUpgradeStatusInfo, FROM.RollingUpgradeStatusInfo>();
134138
cfg.CreateMap<FROM.VirtualMachineScaleSet, TO.PSVirtualMachineScaleSet>()
135139
.ForMember(c => c.Zones, o => o.Condition(r => (r.Zones != null)));
136140
cfg.CreateMap<TO.PSVirtualMachineScaleSet, FROM.VirtualMachineScaleSet>()
@@ -149,15 +153,13 @@ private static void Initialize()
149153
.ForMember(c => c.Zones, o => o.Condition(r => (r.Zones != null)));
150154
cfg.CreateMap<TO.PSVirtualMachine, FROM.VirtualMachine>()
151155
.ForMember(c => c.Zones, o => o.Condition(r => (r.Zones != null)));
152-
cfg.CreateMap<FROM.RunCommandResult, TO.PSRunCommandResult>();
153-
cfg.CreateMap<TO.PSRunCommandResult, FROM.RunCommandResult>();
154-
cfg.CreateMap<FROM.RollingUpgradeStatusInfo, TO.PSRollingUpgradeStatusInfo>();
155-
cfg.CreateMap<TO.PSRollingUpgradeStatusInfo, FROM.RollingUpgradeStatusInfo>();
156156
cfg.CreateMap<FROM.VirtualMachineInstanceView, TO.PSVirtualMachineInstanceView>();
157157
cfg.CreateMap<TO.PSVirtualMachineInstanceView, FROM.VirtualMachineInstanceView>();
158-
});
158+
cfg.CreateMap<FROM.RunCommandResult, TO.PSRunCommandResult>();
159+
cfg.CreateMap<TO.PSRunCommandResult, FROM.RunCommandResult>();
159160

161+
});
160162
_mapper = config.CreateMapper();
161163
}
162164
}
163-
}
165+
}

src/ResourceManager/Compute/Commands.Compute/Generated/ResourceSku/ResourceSkuListMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

22-
using AutoMapper;
2322
using Microsoft.Azure.Commands.Compute.Automation.Models;
2423
using Microsoft.Azure.Management.Compute;
2524
using Microsoft.Azure.Management.Compute.Models;

src/ResourceManager/Compute/Commands.Compute/Generated/Snapshot/SnapshotCreateOrUpdateMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

22-
using AutoMapper;
2322
using Microsoft.Azure.Commands.Compute.Automation.Models;
2423
using Microsoft.Azure.Management.Compute;
2524
using Microsoft.Azure.Management.Compute.Models;

src/ResourceManager/Compute/Commands.Compute/Generated/Snapshot/SnapshotDeleteMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

22-
using AutoMapper;
2322
using Microsoft.Azure.Commands.Compute.Automation.Models;
2423
using Microsoft.Azure.Management.Compute;
2524
using Microsoft.Azure.Management.Compute.Models;

src/ResourceManager/Compute/Commands.Compute/Generated/Snapshot/SnapshotGetMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

22-
using AutoMapper;
2322
using Microsoft.Azure.Commands.Compute.Automation.Models;
2423
using Microsoft.Azure.Management.Compute;
2524
using Microsoft.Azure.Management.Compute.Models;

src/ResourceManager/Compute/Commands.Compute/Generated/Snapshot/SnapshotGrantAccessMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

22-
using AutoMapper;
2322
using Microsoft.Azure.Commands.Compute.Automation.Models;
2423
using Microsoft.Azure.Management.Compute;
2524
using Microsoft.Azure.Management.Compute.Models;

src/ResourceManager/Compute/Commands.Compute/Generated/Snapshot/SnapshotRevokeAccessMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

22-
using AutoMapper;
2322
using Microsoft.Azure.Commands.Compute.Automation.Models;
2423
using Microsoft.Azure.Management.Compute;
2524
using Microsoft.Azure.Management.Compute.Models;

src/ResourceManager/Compute/Commands.Compute/Generated/Snapshot/SnapshotUpdateMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

22-
using AutoMapper;
2322
using Microsoft.Azure.Commands.Compute.Automation.Models;
2423
using Microsoft.Azure.Management.Compute;
2524
using Microsoft.Azure.Management.Compute.Models;

src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineConvertToManagedDisksMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

22-
using AutoMapper;
2322
using Microsoft.Azure.Commands.Compute.Automation.Models;
2423
using Microsoft.Azure.Management.Compute;
2524
using Microsoft.Azure.Management.Compute.Models;

src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachine/VirtualMachineRunCommandMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

22-
using AutoMapper;
2322
using Microsoft.Azure.Commands.Compute.Automation.Models;
2423
using Microsoft.Azure.Management.Compute;
2524
using Microsoft.Azure.Management.Compute.Models;

src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachineRunCommand/VirtualMachineRunCommandGetMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

22-
using AutoMapper;
2322
using Microsoft.Azure.Commands.Compute.Automation.Models;
2423
using Microsoft.Azure.Management.Compute;
2524
using Microsoft.Azure.Management.Compute.Models;

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

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public partial class NewAzureRmVmssConfigCommand : Microsoft.Azure.Commands.Reso
137137

138138
[Parameter(
139139
Mandatory = false,
140-
ValueFromPipelineByPropertyName = true)]
140+
ValueFromPipelineByPropertyName = false)]
141141
public SwitchParameter AutoOSUpgrade { get; set; }
142142

143143
[Parameter(
@@ -160,12 +160,6 @@ public partial class NewAzureRmVmssConfigCommand : Microsoft.Azure.Commands.Reso
160160
ValueFromPipelineByPropertyName = false)]
161161
public SwitchParameter AssignIdentity { get; set; }
162162

163-
[Parameter(
164-
Mandatory = false,
165-
ValueFromPipelineByPropertyName = true)]
166-
[Obsolete("This parameter is obsolete. Use AssignIdentity parameter instead.", false)]
167-
public ResourceIdentityType? IdentityType { get; set; }
168-
169163
protected override void ProcessRecord()
170164
{
171165
if (ShouldProcess("VirtualMachineScaleSet", "New"))
@@ -373,14 +367,6 @@ private void Run()
373367
vIdentity.Type = ResourceIdentityType.SystemAssigned;
374368
}
375369

376-
if (this.IdentityType != null)
377-
{
378-
if (vIdentity == null)
379-
{
380-
vIdentity = new Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetIdentity();
381-
}
382-
vIdentity.Type = this.IdentityType;
383-
}
384370

385371
var vVirtualMachineScaleSet = new PSVirtualMachineScaleSet
386372
{

src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachineScaleSet/VirtualMachineScaleSetCreateOrUpdateMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

22-
using AutoMapper;
2322
using Microsoft.Azure.Commands.Compute.Automation.Models;
2423
using Microsoft.Azure.Management.Compute;
2524
using Microsoft.Azure.Management.Compute.Models;

src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachineScaleSet/VirtualMachineScaleSetDeallocateMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

22-
using AutoMapper;
2322
using Microsoft.Azure.Commands.Compute.Automation.Models;
2423
using Microsoft.Azure.Management.Compute;
2524
using Microsoft.Azure.Management.Compute.Models;

src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachineScaleSet/VirtualMachineScaleSetDeleteInstancesMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

22-
using AutoMapper;
2322
using Microsoft.Azure.Commands.Compute.Automation.Models;
2423
using Microsoft.Azure.Management.Compute;
2524
using Microsoft.Azure.Management.Compute.Models;

src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachineScaleSet/VirtualMachineScaleSetGetMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

22-
using AutoMapper;
2322
using Microsoft.Azure.Commands.Compute.Automation.Models;
2423
using Microsoft.Azure.Management.Compute;
2524
using Microsoft.Azure.Management.Compute.Models;

src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachineScaleSet/VirtualMachineScaleSetListSkusMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

22-
using AutoMapper;
2322
using Microsoft.Azure.Commands.Compute.Automation.Models;
2423
using Microsoft.Azure.Management.Compute;
2524
using Microsoft.Azure.Management.Compute.Models;

0 commit comments

Comments
 (0)