Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Azure PowerShell Quick Start Guide

You're reading from   Azure PowerShell Quick Start Guide Deploy and manage Azure virtual machines with ease

Arrow left icon
Product type Paperback
Published in Dec 2018
Publisher Packt
ISBN-13 9781789614954
Length 118 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Thomas Mitchell Thomas Mitchell
Author Profile Icon Thomas Mitchell
Thomas Mitchell
Arrow right icon
View More author details
Toc

Snapshotting an Azure VM disk

Another way to create custom virtual machines is to deploy them from an existing snapshot from another virtual machine. To do this, you first need to create a snapshot of an existing virtual machine.

The following exercises show you how to create the snapshot configuration for an existing virtual machine and how to take a snapshot of the disk using the New-AzureRmSnapshot cmdlet.

Setting snapshot parameters

Before snapshotting a virtual machine, a few parameters/variables need to be set so they can be more easily referenced later. We need to set the resource group name, the location where the source virtual machine resides, and a name for the snapshot.

Run the following commands to set the parameters...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime