Using Console
Using CLI
az login
az account set --subscription <subscription-id>
Replace <subscription-id>
with the ID of the Azure subscription that you want to use.
az security auto-provisioning-setting update --name 'default' --auto-provision 'On'
This command will update the auto-provisioning setting to ‘On’ for the default policy.
az security auto-provisioning-setting show --name 'default'
This command will show the details of the auto-provisioning setting for the default policy.
Using Python