Using Console
Using CLI
az login
az account set --subscription <subscription_id>
az vm list
az vm auto-upgrade --resource-group <resource_group_name> --name <vm_name> --set upgradePolicy.mode="Automatic"
Using Python
<client_id>
, <secret>
, and <tenant_id>
with the appropriate values for your Azure account.