Skip to Content
Learning Microsoft Azure Storage
book

Learning Microsoft Azure Storage

by Mohamed Waly
November 2017
Intermediate to advanced
276 pages
7h 6m
English
Packt Publishing
Content preview from Learning Microsoft Azure Storage

Backing up an Azure VM using the Azure CLI 2.0

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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft Azure Storage - The Complete Guide

Microsoft Azure Storage - The Complete Guide

Vijay Saini
Learning Microsoft Azure

Learning Microsoft Azure

Jonah Carrio Andersson

Publisher Resources

ISBN: 9781785884917Other