

$output = "`r" + ($blobCopy | Get-AzureStorageBlobCopyState).BytesCopied #$blobCopy | Get-AzureStorageBlobCopyState While(($blobCopy | Get-AzureStorageBlobCopyState).Status -eq "Pending") Write-Host ($blobCopy | Get-AzureStorageBlobCopyState).BytesCopied Write-Host ($blobCopy | Get-AzureStorageBlobCopyState).TotalBytes Write-Host ($blobCopy | Get-AzureStorageBlobCopyState).CopyId $blobCopy = Start-AzureStorageBlobCopy -DestContainer $destStorageAccountContainer -DestContext $destStorageAccountContext -SrcBlob $targetSnapshotName -Context $sourceStorageAccountContext -SrcContainer $sourceStorageAccountContainer 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" 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.
