This repo contains sample Powershell scripts for various scenarios of using Azure Managed Disks
PowerShell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.vscode
.gitignore
CopySnapshotToStorageAccount.ps1
CreateImageFromVHDInDifferentSubscription.ps1 updated May 10, 2017
CreateManagedDiskFromSnapshots.ps1
CreateManagedDiskFromVHD.ps1
CreateManagedDisksFromVHDInAnotherSubscription.ps1
CreateSnapshotsFromVHDInAnotherSubscription.ps1
CreateVmFromManagedOsDisk.ps1
LICENSE
README.md
copy-managed-disks-to-same-or-different-subscription.ps1
copy-snapshot-to-same-or-different-subscription.ps1
create-vm-from-snapshots.ps1 created script to create vm from snapshot May 11, 2017

README.md

services platforms author
storage,virtual-machines
powershell
ramankum

Introduction

These samples demonstrate how to get started with Azure PowerShell to perform various operations on Azure Managed Disks for common scenarios. Each sample respresents a scenario that you want to implement using Azure PowerShell and Managed Disks.

Prerequisites

  1. Install the latest version of Azure PowerShell
  2. A Microsoft Azure subscription. If you don't have a Microsoft Azure subscription you can get a FREE trial account here

Samples

Running samples

  1. Start Windows PowerShell Integrated Scripting Environment (ISE) in Administrator Mode
  2. At this point, you can either:
    • Create a new script and copy and paste a script from this repo into the new file: Click File > New
    • Or download/clone this repo and open a script from this repo: Click File > Open
  3. Provide the appropriate values for each variable (e.g. "Subscription Name", "Storage Account Name", etc.). Note: The angled brackets should not be included in the values you provide.
  4. Run the script by pressing F5 or clicking the "Run Script" icon.

More information