A set of utilities that can be used to query Azure Resource Manager API using Insomnia REST Client:
- Acquires JWT bearer tokens to query Azure Resource Manager
- Lists all available subscriptions and stores the selected subscription as variable
- Lists all available resource groups under the selected subscription and stores the selected resource group as variable
This plugin is using "@azure/identity" to acquire tokens. You must have any of Azure CLI / Azure Powershell SDK / Visual Studio Credential installed on your machine and logged on.
The logged on user will be used to acquire tokens in this plugin.
- Open a new request, in the 'Auth' tab, select
Bearer
, - In the value field type control + space and from the tag menu, select "Azure Identity Token".
- In the url, type control + space and from the tag menu, select "AzSubscriptionID"
- Too see all available subscriptions, click on the "AzSubscriptionID" tag. Paste the selected subscription ID in the relevant text box
- You first must select a subscription ID using the "AzSubscriptionID" tag
- In the url, type control + space and from the tag menu, select "AzResourceGroup"
- Too see all available resource groups, click on the "AzResourceGroup" tag. Paste the selected resource group in the relevant text box