Skip to content

Commit ccf7f84

Browse files
Adding NVMeDiskPlacement for diffdiskplacement field for v6 VMs in Powershell (#26448)
* Autogen code * first pass * second pass --------- Co-authored-by: PSCmdAssistant <[email protected]>
1 parent 86546c6 commit ccf7f84

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

src/Compute/Compute/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
* Added optional parameters `-SecurityPostureId` and `-SecurityPostureExcludeExtension` to cmdlets `New-AzVmss` and `New-AzVmssConfig`.
2424
* Updated image aliases to be up-to-date in the azure-powershell\src\Compute\Strategies\ComputeRp\Images.json file.
2525
* Upgraded Azure.Core to 1.44.1.
26+
* Added `NvmeDisk` argument completer to `DiffDiskPlacement` parameter for `Set-AzVMOSDisk` and `Set-AzVmssStorageProfile` cmdlets, allowing options for disk placement as `CacheDisk`, `ResourceDisk`, or `NvmeDisk`.
2627

2728
## Version 8.4.0
2829
* Added `SkuProfileVmSize` and `SkuProfileAllocationStrategy` parameters to `New-AzVmss`, `New-AzVmssConfig`, and `Update-AzVmss` cmdlets for VMSS Instance Mix operations.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ public partial class SetAzureRmVmssStorageProfileCommand : Microsoft.Azure.Comma
130130
[Parameter(
131131
Mandatory = false,
132132
ValueFromPipelineByPropertyName = true,
133-
HelpMessage = "Specifies the ephemeral disk placement for operating system disk. This property can be used by user in the request to choose the location i.e. cache disk or resource disk space for Ephemeral OS disk provisioning. For more information on Ephemeral OS disk size requirements, please refer Ephemeral OS disk size requirements for Windows VM at https://learn.microsoft.com/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VM at https://learn.microsoft.com/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements. This parameter can only be used if the parameter DiffDiskSetting is set to 'Local'.")]
134-
[PSArgumentCompleter("CacheDisk", "ResourceDisk")]
133+
HelpMessage = "Specifies the ephemeral disk placement for operating system disk. This property can be used by user in the request to choose the location i.e. cache disk, resource disk or Nvme disk space for Ephemeral OS disk provisioning. For more information on Ephemeral OS disk size requirements, please refer Ephemeral OS disk size requirements for Windows VM at https://learn.microsoft.com/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VM at https://learn.microsoft.com/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements. This parameter can only be used if the parameter DiffDiskSetting is set to 'Local'.")]
134+
[PSArgumentCompleter("CacheDisk", "ResourceDisk", "NvmeDisk")]
135135
public string DiffDiskPlacement { get; set; }
136136

137137
[Parameter(
@@ -678,4 +678,4 @@ private void Run()
678678
WriteObject(this.VirtualMachineScaleSet);
679679
}
680680
}
681-
}
681+
}

src/Compute/Compute/Manual/PSVirtualMachineScaleSet.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
// limitations under the License.
1515
//
1616

17-
// Warning: This code was generated by a tool.
18-
//
19-
// Changes to this file may cause incorrect behavior and will be lost if the
20-
// code is regenerated.
21-
2217
namespace Microsoft.Azure.Commands.Compute.Automation.Models
2318
{
2419
public partial class PSVirtualMachineScaleSet

src/Compute/Compute/VirtualMachine/Config/SetAzureVMOSDiskCommand.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ----------------------------------------------------------------------------------
1+
// ----------------------------------------------------------------------------------
22
//
33
// Copyright Microsoft Corporation
44
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -181,8 +181,8 @@ public class SetAzureVMOSDiskCommand : ComputeClientBaseCmdlet
181181
[Parameter(
182182
Mandatory = false,
183183
ValueFromPipelineByPropertyName = true,
184-
HelpMessage = "Specifies the ephemeral disk placement for operating system disk. This property can be used by user in the request to choose the location i.e. cache disk or resource disk space for Ephemeral OS disk provisioning. For more information on Ephemeral OS disk size requirements, please refer Ephemeral OS disk size requirements for Windows VM at https://learn.microsoft.com/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VM at https://learn.microsoft.com/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements. This parameter can only be used if the parameter DiffDiskSetting is set to 'Local'.")]
185-
[PSArgumentCompleter("CacheDisk", "ResourceDisk")]
184+
HelpMessage = "Specifies the ephemeral disk placement for operating system disk. This property can be used by user in the request to choose the location i.e. cache disk, resource disk or Nvme disk space for Ephemeral OS disk provisioning. For more information on Ephemeral OS disk size requirements, please refer Ephemeral OS disk size requirements for Windows VM at https://learn.microsoft.com/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VM at https://learn.microsoft.com/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements. This parameter can only be used if the parameter DiffDiskSetting is set to 'Local'.")]
185+
[PSArgumentCompleter("CacheDisk", "ResourceDisk", "NvmeDisk")]
186186
public string DiffDiskPlacement { get; set; }
187187

188188
[Parameter(
@@ -360,4 +360,4 @@ public override void ExecuteCmdlet()
360360
WriteObject(this.VM);
361361
}
362362
}
363-
}
363+
}

0 commit comments

Comments
 (0)