Please enable VM disk export via the az CLI
See original GitHub issueIs your feature request related to a problem? Please describe.
I want to automate the image generation process, in order to include it in a CI pipeline. The only link which is missing for a fully automated process, is VM disk export - basically, the process which is described here. I found no way to do it via the az
CLI, nor via a simple REST API.
Describe the solution you’d like
Ideally, I would be able to do the following via the az
CLI:
- Set a duration for OS image export for a deallocated VM.
- Get the SAS URL for this image.
- Cancel the export once the download is done, to be able to delete the VM.
Describe alternatives you’ve considered It would also be okay if there was a REST API way to perform the steps above.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
az disk - Microsoft Learn
Customers can set on Managed Disks or Snapshots to control the export policy on the disk. accepted values: Disabled, Enabled. --secure-vm-disk-encryption-set.
Read more >Allow Azure CLI to attach multiple disks to a VM at once #15765
When attaching multiple disks to an Azure VM at once using the --ids parameter on az vm disk attach only one disk gets...
Read more >Amazon EC2 FAQs - Amazon Web Services
Q: What can I do with Amazon EC2? Just as Amazon Simple Storage Service (Amazon S3) enables storage in the cloud, Amazon EC2...
Read more >Azure Provider: Authenticating via a Service Principal and a ...
If you're using the China, German or Government Azure Clouds - you'll need to first configure the Azure CLI to work with that...
Read more >Azure CLI list Disk - Stack Overflow
And if you want to create a snapshot from the VM, you can create it from the disks one by one through the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Sorry, I have found a way to do it.
For future reference:
Closing this issue.
@zhoxing-ms ,
Thanks very much, I’d like that.