Skip to content

Commit

Permalink
Adding NVMeDiskPlacement for diffdiskplacement field for v6 VMs in Po…
Browse files Browse the repository at this point in the history
…wershell (Azure#26448)

* Autogen code

* first pass

* second pass

---------

Co-authored-by: PSCmdAssistant <[email protected]>
  • Loading branch information
haagha and PSCmdAssistant authored Oct 24, 2024
1 parent 86546c6 commit ccf7f84
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
1 change: 1 addition & 0 deletions src/Compute/Compute/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -678,4 +678,4 @@ private void Run()
WriteObject(this.VirtualMachineScaleSet);
}
}
}
}
5 changes: 0 additions & 5 deletions src/Compute/Compute/Manual/PSVirtualMachineScaleSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// ----------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -360,4 +360,4 @@ public override void ExecuteCmdlet()
WriteObject(this.VM);
}
}
}
}

0 comments on commit ccf7f84

Please sign in to comment.