The way we'll get the cost forecast of your Azure subscription is by registering an application on Azure. This allows you to make REST API calls directly from the MagTag using secure credentials. To do this you'll create a Service Principal using the Azure CloudShell.
2. Click on the CloudShell icon as shown in the photo above.
If this is the first time you're using CloudShell you'll need to select a storage account to use it with.
Note: using a storage account for this project costs <$0.01 a day.
For more info on CloudShell visit this site.
az ad sp create-for-rbac --name [APP_NAME]
Replace "[APP_NAME]" with a name like "cost-monitor"
TENANT ID and save into a secure location. We'll need this later for the MagTag's secrets.py file.
Next type and run:
az account list
Again, copy and save the "id" property together with the credentials from the previous step. Label this property
SUBSCRIPTION ID. We'll use it later in the secrets.py file.