Monday, November 11, 2019

Snapshotting disks


Azure VMs have a kind of snapshot capability whereby disk images can be saved and restored later if required.

In overview;

  • Create Snapshot of a (preferably offline) disk and a Snapshot object is created.
  • If required, create a new disk and reference the snapshot as the source for the disk.
  • To rollback to the snapshot disk, detach the existing disk from the VM and then attach the new disk created from the snapshot.



Friday, November 1, 2019

Installing the Az powershell module


Install the NuGet Provider

Install-PackageProvider -Name NuGet -minimumverion 28.5.201 -Force

Install the Az module - use Allusers if the CurrentUser is not required.

Install-Module -Name Az -AllowClobber -Scope CurrentUser

Log the session in with your credentials using

Connect-AzAccount

Verify your Azure connection using

Get-AzContext

More about installing Azure Powershell



And a bit of history around the older now deprecated Azure powershell module AzureRM.  Note Azure Resource Manage was not deprecated - just the powershell module called AzureRM