0
votes

I have created a compute disk resource in Azure using ARM Template.Can i move that resource inside a storage account using ARM Templates so that it can be used as Unmanaged Data Disk.

1

1 Answers

0
votes

No, it is not possible.

But you could use Azure Power Shell to copy managed disk to a storage account.

##create $SAS
$sas = Grant-AzureRmDiskAccess -ResourceGroupName shui -DiskName shuitest -DurationInSecond 3600 -Access Read 
$destContext = New-AzureStorageContext –StorageAccountName contosostorageav1 -StorageAccountKey 'YourStorageAccountKey' 
Start-AzureStorageBlobCopy -AbsoluteUri $sas.AccessSAS -DestContainer 'vhds' -DestContext $destContext -DestBlob 'MyDestinationBlobName.vhd'