CmdID / az / az cloud-service
az cloud-service rebuild
Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. Azure CLI extensions reference
3 options Its page in the Azure CLI extensions reference
Options
--cloud-service-name, --name, -nName of the cloud service.--resource-group, -gName of resource group.--role-instancesList of cloud service role instance names.