Azure initial setup - UCL-CloudLabs/deployer GitHub Wiki
To access Azure Resource Manager from a webapp like CloudLabs, you need to register your application with Azure and create a "Service Principal" - this is an application equivalent of a user that can have the same permission a human user can have.
Once this is done, there will be 3 pieces of information you can find on the portal:
- Tenant ID
- Application ID
- Application secret
These three are needed to create an authentication token and should be set up as env vars for now in your local sysmtem, along with the Subscription ID.
For more information on how to get this information go here: Authenticating a service principal with Azure Resource Manager.
See also: Azure Resource Manager REST calls from Python.
Note you will have to create a Service Principal with sufficient access rights, i.e. "Contributor", not "Reader".