VMSS disks - az vmss disk

Manage the managed data disks associated with a virtual machine scale set.

Commands

az vmss disk attach
az vmss disk detach

az vmss disk attach

az vmss disk attach --name
--resource-group
--size-gb
[--caching {None, ReadOnly, ReadWrite}]
[--lun]

Required Parameters

--name -n

Scale set name. You can configure the default using az configure --defaults vmss=.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=.

--size-gb -z

Size in GB.

Optional Parameters

--caching

Disk caching policy.

accepted values: None, ReadOnly, ReadWrite
--lun

0-based logical unit number (LUN). Max value depends on the Virtual Machine instance size.

az vmss disk detach

az vmss disk detach --lun
--name
--resource-group

Required Parameters

--lun

0-based logical unit number (LUN). Max value depends on the Virtual Machine instance size.

--name -n

Scale set name. You can configure the default using az configure --defaults vmss=.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=.