polewwiz.blogg.se

Azure take snapshot of vm
Azure take snapshot of vm













azure take snapshot of vm

Get-AzureStorageBlobCopyState -Context $destStorageAccountContext -Blob $targetSnapshotName $destStorageAccountContext = New-AzureStorageContext –StorageAccountName $destStorageAccount -StorageAccountKey $destStorageAccountKey Select-AzureRmSubscription -SubscriptionId $destSubscriptionId $destStorageAccountContainer = "container" $destStorageAccount = "DestStorageAccount" Start-AzureStorageBlobCopy -AbsoluteUri $VHDDownloadUri -DestContainer $sourceStorageAccountContainer -DestContext $sourceStorageAccountContext -DestBlob $targetSnapshotNameī: Copy the snapshot to a storage account in the destination subscription of an other tenant: $destSubscriptionId = '' $sourceStorageAccountContext = New-AzureStorageContext –StorageAccountName $sourceStorageAccountName -StorageAccountKey $sourceStorageAccountKey Select-AzureRmSubscription -SubscriptionId $sourceSubscriptionId #download snapshot to StorageAccount-Source (the storage account is located in the source subscription) $VHDDownloadUri = " $targetSnapshotName = "snapshot.vhd" # path of the download URL of the snapshot $sourceStorageAccountContainer = "containername" $sourceStorageAccountName = "SourceStorageAccount"

azure take snapshot of vm

A: Download the disk snapshot to a storage account $sourceSubscriptionId = '' So I created a snapshot of the managed disk and moved it to a stoage account in the source subscription, copied the snapshot to a storage account in the destination subscription and created a managed disk out of the snapshot and a VM with the managed disk afterwards.

  • My subscription was not in the subscription list, because it belongs to another tenant.
  • And I started with the “Move to another subscription” option. I need to move a managed Disk from a source subscription to a destination subscription.















    Azure take snapshot of vm