Skip to content

Commit 878f28f

Browse files
authored
Merge pull request #5454 from hyonholee/hotfix
Fix ExplicitIdentityParameterSet for Update-AzureRmVmss
2 parents b2794a2 + 845d46a commit 878f28f

File tree

3 files changed

+31
-14
lines changed

3 files changed

+31
-14
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ public override void ExecuteCmdlet()
187187
public bool? EnableAutomaticUpdate { get; set; }
188188

189189
[Parameter(
190+
ParameterSetName = "ExplicitIdentityParameterSet",
190191
Mandatory = false)]
191192
[ValidateNotNullOrEmpty]
192193
public string[] IdentityId { get; set; }
@@ -313,7 +314,6 @@ public override void ExecuteCmdlet()
313314
public ResourceIdentityType? IdentityType { get; set; }
314315

315316
[Parameter(
316-
ParameterSetName = "ExplicitIdentityParameterSet",
317317
Mandatory = false)]
318318
[ValidateNotNullOrEmpty]
319319
public string SkuName { get; set; }

src/ResourceManager/Compute/Commands.Compute/help/New-AzureRmVM.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ New-AzureRmVM [[-ResourceGroupName] <String>] [[-Location] <String>] -Name <Stri
1919
[-VirtualNetworkName <String>] [-AddressPrefix <String>] [-SubnetName <String>]
2020
[-SubnetAddressPrefix <String>] [-PublicIpAddressName <String>] [-DomainNameLabel <String>]
2121
[-AllocationMethod <String>] [-SecurityGroupName <String>] [-OpenPorts <Int32[]>] [-ImageName <String>]
22-
[-Size <String>] [-AsJob] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
22+
[-Size <String>] [-AvailabilitySetName <String>] [-AsJob] [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
23+
[-Confirm] [<CommonParameters>]
2324
```
2425

2526
### DefaultParameterSet
@@ -35,7 +36,8 @@ New-AzureRmVM [[-ResourceGroupName] <String>] [[-Location] <String>] -Name <Stri
3536
[-VirtualNetworkName <String>] [-AddressPrefix <String>] [-SubnetName <String>]
3637
[-SubnetAddressPrefix <String>] [-PublicIpAddressName <String>] [-DomainNameLabel <String>]
3738
[-AllocationMethod <String>] [-SecurityGroupName <String>] [-OpenPorts <Int32[]>] -DiskFile <String> [-Linux]
38-
[-Size <String>] [-AsJob] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
39+
[-Size <String>] [-AvailabilitySetName <String>] [-AsJob] [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
40+
[-Confirm] [<CommonParameters>]
3941
```
4042

4143
## DESCRIPTION
@@ -160,6 +162,21 @@ Accept pipeline input: False
160162
Accept wildcard characters: False
161163
```
162164
165+
### -AvailabilitySetName
166+
Specifies a name for the availability set.
167+
168+
```yaml
169+
Type: String
170+
Parameter Sets: SimpleParameterSet, DiskFileParameterSet
171+
Aliases:
172+
173+
Required: False
174+
Position: Named
175+
Default value: None
176+
Accept pipeline input: False
177+
Accept wildcard characters: False
178+
```
179+
163180
### -Credential
164181
The administrator credentials for the VM.
165182

src/ResourceManager/Compute/Commands.Compute/help/Update-AzureRmVmss.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ Updates the state of a VMSS.
1717
```
1818
Update-AzureRmVmss [-ResourceGroupName] <String> [-VMScaleSetName] <String>
1919
[[-VirtualMachineScaleSet] <PSVirtualMachineScaleSet>] [-ImageReferenceSku <String>]
20-
[-EnableAutomaticUpdate <Boolean>] [-IdentityId <String[]>]
21-
[-ManagedDiskStorageAccountType <StorageAccountTypes>] [-PlanPublisher <String>] [-ProvisionVMAgent <Boolean>]
22-
[-BootDiagnosticsEnabled <Boolean>] [-Overprovision <Boolean>] [-MaxBatchInstancePercent <Int32>]
23-
[-TimeZone <String>] [-BootDiagnosticsStorageUri <String>] [-AutomaticOSUpgrade <Boolean>]
24-
[-SinglePlacementGroup <Boolean>] [-CustomData <String>] [-UpgradePolicyMode <UpgradeMode>]
25-
[-ImageReferenceId <String>] [-DisablePasswordAuthentication <Boolean>] [-Tag <Hashtable>]
26-
[-PlanName <String>] [-MaxUnhealthyUpgradedInstancePercent <Int32>] [-ImageReferencePublisher <String>]
27-
[-PlanProduct <String>] [-ImageUri <String>] [-SkuTier <String>] [-VhdContainer <String[]>]
28-
[-LicenseType <String>] [-PlanPromotionCode <String>] [-MaxUnhealthyInstancePercent <Int32>]
20+
[-EnableAutomaticUpdate <Boolean>] [-ManagedDiskStorageAccountType <StorageAccountTypes>]
21+
[-PlanPublisher <String>] [-ProvisionVMAgent <Boolean>] [-BootDiagnosticsEnabled <Boolean>]
22+
[-Overprovision <Boolean>] [-MaxBatchInstancePercent <Int32>] [-TimeZone <String>]
23+
[-BootDiagnosticsStorageUri <String>] [-AutomaticOSUpgrade <Boolean>] [-SinglePlacementGroup <Boolean>]
24+
[-CustomData <String>] [-UpgradePolicyMode <UpgradeMode>] [-ImageReferenceId <String>]
25+
[-DisablePasswordAuthentication <Boolean>] [-Tag <Hashtable>] [-PlanName <String>]
26+
[-MaxUnhealthyUpgradedInstancePercent <Int32>] [-ImageReferencePublisher <String>] [-PlanProduct <String>]
27+
[-ImageUri <String>] [-SkuTier <String>] [-VhdContainer <String[]>] [-LicenseType <String>]
28+
[-SkuName <String>] [-PlanPromotionCode <String>] [-MaxUnhealthyInstancePercent <Int32>]
2929
[-SkuCapacity <Int32>] [-ImageReferenceOffer <String>] [-PauseTimeBetweenBatches <String>]
3030
[-OsDiskCaching <CachingTypes>] [-ImageReferenceVersion <String>] [-AsJob]
3131
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
@@ -191,7 +191,7 @@ The user identity references will be ARM resource ids in the form: '/subscriptio
191191
192192
```yaml
193193
Type: String[]
194-
Parameter Sets: (All)
194+
Parameter Sets: ExplicitIdentityParameterSet
195195
Aliases:
196196

197197
Required: False
@@ -590,7 +590,7 @@ Specifies the size of all the instances of VMSS.
590590
591591
```yaml
592592
Type: String
593-
Parameter Sets: ExplicitIdentityParameterSet
593+
Parameter Sets: (All)
594594
Aliases:
595595

596596
Required: False

0 commit comments

Comments
 (0)