I've a Virtual Machine with managed disks and a snapshot of that OS Disk, in the "westus" location, in a resource group. Now, I'm trying to create another OS disk from the snapshot, but this time, I'm providing the location as "westus2" for the target resource. The following command returns with "The entity was not found" error on azure CLI 2.0.
user@ubuntu:az disk create -g myresgrp -n newsnapdisk -l westus2 --source /subscriptions/xxxxxxxxxxx/resourceGroups/myresgrp/providers/Microsoft.Compute/snapshots/mysnapshot The entity was not found.
The command works fine if the location is changed to "westus" instead of "westus2". I cannot find enough documentation about what this error means, but I've verified that resources and resourcegroups involved in the command actually exist.
What is causing this issue and how do I Overcome this problem?
Best Answer
Creating a disk from a Snapshot in different location does not support on Azure.
You should copy the snapshot to westus2 storage account, then you could create a snapshot in westus2 from the storage account. You could use the following scripts to do this.
Just an example below, it works for me.