CmdID / az / az vmss / az vmss disk
az vmss disk attach
Attach managed data disks to a scale set or its instances. Azure CLI reference
2 examples Its page in the Azure CLI reference
Examples
Attach managed data disks to a scale set or its instances. (autogenerated)
az vmss disk attach --disk {disk} --instance-id 0 --resource-group MyResourceGroupIdentify--diskexisting disk name or ID to attach or detach from VM instances--instance-idScale set VM instance id--resource-groupName of resource group.Attach managed data disks of a given size to a scale set or its instances. (autogenerated)
az vmss disk attach --vmss-name MyVmss --resource-group MyResourceGroup --size-gb 50Identify--resource-groupName of resource group.--size-gbsize in GB.