Skip to content

Instantly share code, notes, and snippets.

@pkirch
Created February 26, 2015 13:14
Show Gist options
  • Save pkirch/d06961bbaa78a4404efb to your computer and use it in GitHub Desktop.
Save pkirch/d06961bbaa78a4404efb to your computer and use it in GitHub Desktop.
This sample shows how to register a VHD als data disk in Azure.
Add-AzureDisk -DiskName host3 -MediaLocation https://pktest1.blob.core.windows.net/vhds/leasetest3-host3-2014-12-08.vhd
<# Output
AffinityGroup :
AttachedTo :
IsCorrupted : False
Label : host3
Location : West Europe
DiskSizeInGB : 128
MediaLink : https://pktest1.blob.core.windows.net/vhds/leasetest3-host3-2014-12-08.vhd
DiskName : host3
SourceImageName :
OS :
IOType : Standard
OperationDescription : Add-AzureDisk
OperationId : 92cf9ded-9ace-59ef-81e9-f10ca7006d84
OperationStatus : Succeeded
#>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment