Can only be done with Powershell or REST, which is anything but user-friendly.
I mentioned this in #2083 as well.
We are currently managing this with the REST API, which causes many hairs to become split. Better than powershell, though.
Why would REST be better than powershell? this is ridiculous. Powershell is so much better than REST API. Following your logic c# compiler is so much better then minesweeper. Ofc you can do more with c# compiler, but how much time and effort would that cost?
The necessary PowerShell commandlets for this feature are not (yet) available to use on Linux, where our tooling infrastructure is located. That's all.
Our small Python wrapper around the REST API is a worthwhile compromise. For other features we are using the CLI and it's awesome.
@agates - any chance you could share your Python wrapper for the Azure Backup REST API, even as a GitHub gist?
Similar situation to you (no Windows boxes in infrastructure) hence PowerShell not a good fit. I recently tried installing PowerShell for Linux but it's still so bleeding edge (even as a beta) that various Azure RM modules won't import.
We (the CLI and Azure Batch teams) are working on Azure Batch for CLI 2.0 presently.
@Cato2 I've made a repo for it. It's a bit rough as we just needed something quick and dirty.
Thanks for sharing that code @agates - looks very useful!
Is there any progress on adding Backup to the CLI or Python?
Azure Backup has been merged and will be available in the next CLI release.
Most helpful comment
@Cato2 I've made a repo for it. It's a bit rough as we just needed something quick and dirty.
https://github.com/agates/azure-python-scripts