lazuhrus
lazuhrus

Reputation: 21

How to retrieve deployment username in azure vm template

I'm currently building out a number of virtual machines in azure using a template that we've built out. I would like to be able to pull the name of the user who chose to deploy this template so that we can verify a number of things exist on the server for them (i.e. userid). Is there anyway to do this? Any help would be appreciated.

Upvotes: 2

Views: 630

Answers (1)

4c74356b41
4c74356b41

Reputation: 72151

No, this is not possible using arm templates (unless using some pretty horrible\unreliable\outside of arm template hacks).
You could probably work around that by creating a parameter where user inputs his details, but even that the second part of your plan will fail. You cannot really do checks on the OS level configurations from the template.

ARM templates aren't meant to actually check things, and while some interactions are possible, they are very limited (like listKeys).

Upvotes: 2

Related Questions