Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Azure Resource Manager (ARM) support #177

Open
imp opened this issue Dec 3, 2019 · 3 comments
Open

Azure Resource Manager (ARM) support #177

imp opened this issue Dec 3, 2019 · 3 comments

Comments

@imp
Copy link

imp commented Dec 3, 2019

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?

@MindFlavor
Copy link
Owner

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.

@imp
Copy link
Author

imp commented Feb 7, 2020

@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.

@MindFlavor
Copy link
Owner

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 :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants