Skip to content

failing when VM and Storage are in different region #8

@vilibert

Description

@vilibert

When running the script against a VM in a Region with a storage account name that is not consistent with location an error is thrown at the Creating snapshot phase:

##### Generatnig Snapshot #######
lvm-test_OsDisk_1_7436bea72ede4298bd956f5fc146566c
lvm-test-OsDisk-1-7436bea72ede4298bd956f5fc146566c-06-03-2019-04-34-19
Resource lvm-test_OsDisk_1_7436bea72ede4298bd956f5fc146566c is not found.

Storage Account name: cloud-shell-storage-westeurope

Storage Region: West Europe

VM Region: North Europe

./new-rescue.sh --rescue-vm-name rescuetestvm2 -g cloud-shell-storage-westeurope -n lvm-test -s 754fe295-xxxx-xxxx -u azureadmin -p M1cr0softazure

It's possibly due to the VM and Storage Account being in different locations

Running the create snapshot manually as per the script throws the error:

**az snapshot create -g cloud-shell-storage-westeurope -n vflsnap2 --source lvm-test_OsDisk_1_7436bea72ede4298bd956f5fc146566c -l northeurope6f5fc146566c

Resource lvm-test_OsDisk_1_7436bea72ede4298bd956f5fc146566c is not found.
vittorio@Azure:~/azure-support-scripts$**

Using the -l flag with the location of the VM creates the snapshot
az snapshot create -g cloud-shell-storage-westeurope -n vflsnap1 --source lvm-test_OsDisk_1_7436bea72ede4298bd956f5fc146566c -l northeurope

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions