Skip to content

Add placement (AnyZone) support CLI #30826

@Suchintan-microsoft

Description

@Suchintan-microsoft

Preconditions

  • No need to upgrade Python SDK or the Python SDK is ready.

Related command

az vm create --placement @{zonePlacementPolicy = "Any" ; includeZones = "1", "2"} --alignRegionalDisksToVMZone
az vm update --alignRegionalDisksToVMZone

Resource Provider

Microsoft.Compute/virtualMachines

Description of Feature or Work Requested

- **placement** `is a new top-level  VM property that allows the user to create a zonal VM, where the optimal zone will be decided by Azure. This new property will contain three fields: zonePlacementPolicy, includeZones, excludeZones. Customer can only pass this property during VM creation time (New-AzVM) and this property cannot be changed later. We will need to introduce a new parameter for az vm create cmdlet, called Placement to support this feature.`
-  **alignRegionalDisksToVMZone** `is new property under vm.properties.storageProfile, that allows the regional disks currently attached (or going to be attached) to the VM to be converted to zonal. Currently this flag is only supported for AnyZone VM. We will need to add a new parameter for az vm creatre, az vm update commands, called alignRegionalDisksToVMZoneto support this feature. `

Please check the swagger PR for more details Azure/azure-rest-api-specs#31425

Minimum API Version Required

2024-11-01

Swagger PR link / SDK link

Azure/azure-rest-api-specs#31425

Request Example

https://github.com/Azure/azure-rest-api-specs/pull/31425/files#diff-6eb1271bb1553ef1872db462c4d9babc705df8e24fdfff19f6f0bc60aed44e3e

Target Date

2025-04-01

PM Contact

[email protected]

Engineer Contact

[email protected]

Additional context

No response

Metadata

Metadata

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotfeature-request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions