November 2017
Intermediate to advanced
276 pages
7h 6m
English
First off, you have to create a backup policy, which can be done by creating a JSON encoded policy definition and passing it to the Azure CLI, as you will see shortly, or by using the default policy.
To create a new backup policy, run the following command:
az backup policy set –policy <JSON encoded policy definition> -- resource-group PacktPub –vault-name CLIRS
Or, to use the default backup policy, you can run the following command:
az backup policy get-default-for-vm --resource-group PacktPub --vault-name CLIRS
Then, you can start the backup process by running the following command:
az backup protection enable-for-vm --policy-name get-default-for-vm --resource-group PacktPub --vault-name CLIRS ...