AzureSDKForRust
AzureSDKForRust copied to clipboard
Azure Resource Manager (ARM) support
I am looking for any guidance on how to utilize ARM. Is it just not implemented yet or I am not looking at the right place?
Hello imp, no, it's not implemented (yet). The groundwork is in place (the Azure AD crate) so it would be possible to pass custom ARM templates but it won't be nice.
@MindFlavor Trying to get my head around it time and again and failing miserably. (Not much documentation in these crates frankly). Would you be able to write down a rough plan of what you think needs to be done? I am willing to invest a non-trivial amount of time into this but just cannot connect the dots yet.
For what I can tell (just thinking out loud) we should construct the URI and pass a specific ARM template. For example see https://docs.microsoft.com/en-us/rest/api/sql/databases/createorupdate. The difficult parts are:
- Create the token (but you can use this crate for that, see azure_sdk_auth_aad, for example: examples/interactive.rs).
- Define the ARM template in a Rust idiomatic way (maybe using builder pattern?).
- Parse the response in Rust idiomatic way (but this is something we already do in the existing Azure crates).
That said I would probably create another GitHub repo for that, this one is already unpleasant to maintain as it is :)