az vmss disk

Manage data disks of a VMSS.

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=<name>`.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
--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=<name>`.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.