I can successfully create a VM disk snapshot using az cli.
How can i copy the snapshot to an azure storage account using az cli ?
I can successfully create a VM disk snapshot using az cli.
How can i copy the snapshot to an azure storage account using az cli ?
2
Answers
You can use the command below to copy the
VM snapshot
to an Azure storage account using Azure CLI.First, copy the VM snapshot URL from the portal:
Azure Portal > Snapshots > select your snapshot > Snapshot export > generate URL.
Command:
Output:
It takes some time to finish the copy process, and after some time, it will reflect in your storage container.
Portal:
The file has been successfully copied to an Azure storage container.
Reference:
az storage blob copy | Microsoft Learn
Use the ‘az storage blob copy start’ command.
Authenticate to your Azure account:
Initite the copy operation:
bash
You can monitor the copy operation status:
bash