diff --git a/src/Compute/Compute/ChangeLog.md b/src/Compute/Compute/ChangeLog.md index aacb2b4ce053..79a61c8774d5 100644 --- a/src/Compute/Compute/ChangeLog.md +++ b/src/Compute/Compute/ChangeLog.md @@ -23,6 +23,7 @@ * Added optional parameters `-SecurityPostureId` and `-SecurityPostureExcludeExtension` to cmdlets `New-AzVmss` and `New-AzVmssConfig`. * Updated image aliases to be up-to-date in the azure-powershell\src\Compute\Strategies\ComputeRp\Images.json file. * Upgraded Azure.Core to 1.44.1. +* Added `NvmeDisk` argument completer to `DiffDiskPlacement` parameter for `Set-AzVMOSDisk` and `Set-AzVmssStorageProfile` cmdlets, allowing options for disk placement as `CacheDisk`, `ResourceDisk`, or `NvmeDisk`. ## Version 8.4.0 * Added `SkuProfileVmSize` and `SkuProfileAllocationStrategy` parameters to `New-AzVmss`, `New-AzVmssConfig`, and `Update-AzVmss` cmdlets for VMSS Instance Mix operations. diff --git a/src/Compute/Compute/Generated/VirtualMachineScaleSet/Config/SetAzureRmVmssStorageProfileCommand.cs b/src/Compute/Compute/Generated/VirtualMachineScaleSet/Config/SetAzureRmVmssStorageProfileCommand.cs index 8a58acf248db..11bc9fd17bce 100644 --- a/src/Compute/Compute/Generated/VirtualMachineScaleSet/Config/SetAzureRmVmssStorageProfileCommand.cs +++ b/src/Compute/Compute/Generated/VirtualMachineScaleSet/Config/SetAzureRmVmssStorageProfileCommand.cs @@ -130,8 +130,8 @@ public partial class SetAzureRmVmssStorageProfileCommand : Microsoft.Azure.Comma [Parameter( Mandatory = false, ValueFromPipelineByPropertyName = true, - 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'.")] - [PSArgumentCompleter("CacheDisk", "ResourceDisk")] + 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'.")] + [PSArgumentCompleter("CacheDisk", "ResourceDisk", "NvmeDisk")] public string DiffDiskPlacement { get; set; } [Parameter( @@ -678,4 +678,4 @@ private void Run() WriteObject(this.VirtualMachineScaleSet); } } -} +} \ No newline at end of file diff --git a/src/Compute/Compute/Manual/PSVirtualMachineScaleSet.cs b/src/Compute/Compute/Manual/PSVirtualMachineScaleSet.cs index f579bd28fb6e..1b33ec808285 100644 --- a/src/Compute/Compute/Manual/PSVirtualMachineScaleSet.cs +++ b/src/Compute/Compute/Manual/PSVirtualMachineScaleSet.cs @@ -14,11 +14,6 @@ // limitations under the License. // -// Warning: This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if the -// code is regenerated. - namespace Microsoft.Azure.Commands.Compute.Automation.Models { public partial class PSVirtualMachineScaleSet diff --git a/src/Compute/Compute/VirtualMachine/Config/SetAzureVMOSDiskCommand.cs b/src/Compute/Compute/VirtualMachine/Config/SetAzureVMOSDiskCommand.cs index a04191e7a828..5b1dd43621f9 100644 --- a/src/Compute/Compute/VirtualMachine/Config/SetAzureVMOSDiskCommand.cs +++ b/src/Compute/Compute/VirtualMachine/Config/SetAzureVMOSDiskCommand.cs @@ -1,4 +1,4 @@ -// ---------------------------------------------------------------------------------- +// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); @@ -181,8 +181,8 @@ public class SetAzureVMOSDiskCommand : ComputeClientBaseCmdlet [Parameter( Mandatory = false, ValueFromPipelineByPropertyName = true, - 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'.")] - [PSArgumentCompleter("CacheDisk", "ResourceDisk")] + 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'.")] + [PSArgumentCompleter("CacheDisk", "ResourceDisk", "NvmeDisk")] public string DiffDiskPlacement { get; set; } [Parameter( @@ -360,4 +360,4 @@ public override void ExecuteCmdlet() WriteObject(this.VM); } } -} +} \ No newline at end of file