Skip to content

Support deleteOption for Disks for VMSS with OrchestrationMode == Flexible #22182

Description

Resource Provider
CRP

Description of Feature or Work Requested
User experience:

If VMSS orchestrationMode = Flexible allow users to specify disk delete-Option for OS Disks and Data Disks

Add the following new parameters to CLI command az vmss create:

az vmss create --name
--resource-group
[--accelerated-networking {false, true}]
[--accept-term]
[--admin-password]
[--admin-username]
[--app-gateway]
[--app-gateway-capacity]
[--app-gateway-sku]
[--app-gateway-subnet-address-prefix]
[--asgs]
[--assign-identity]
[--authentication-type {all, password, ssh}]
[--automatic-repairs-action {Reimage, Replace, Restart}]
[--automatic-repairs-grace-period]
[--backend-pool-name]
[--backend-port]
[--capacity-reservation-group]
[--computer-name-prefix]
[--custom-data]
[--data-disk-caching]
[--data-disk-encryption-sets]
[--data-disk-iops]
[--data-disk-mbps]
[--data-disk-sizes-gb]
[--data-disk-delete-option] / accepted values are String Delete or Detach
[--os-disk-delete-option] /
accepted values are String Delete or Detach**

New optional parameters:
data-disk-delete-option : this is a new optional parameter allowed only for VMSS using orchestrationMode= Flexible that allows configuring whether the VMSS Flex VM data disks will be deleted or detached upon VM deletion

os-disk-delete-option : this is a new optional parameter allowed only for VMSS using orchestrationMode= Flexible that allows configuring whether the VMSS Flex VM OS Disks will be deleted or detached upon VM deletion

deleteOption allowed values: Delete or Detach (or null, this is optional parameter)
Delete: Disk will be deleted when VM is deleted
Detach: Disk will be detached when VM is deleted

Minimum API Version Required
2022-03-01

Swagger Link
Azure/azure-rest-api-specs#18433 (PR has been merged)

Target Date
No specific target date but ideally should be available when the CRP 2022-03-01 API is available

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions