insomnia-plugin-azure-resource-manager-api-tools
v1.2.1
Published
A set of utilities that can be used to query Azure Resource Manager API using [Insomnia REST Client](https://insomnia.rest/):
Readme
Insomnia plugin for Azure Resource Manager
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
Pre-requisites
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.
Usage
To acquire JWT bearer token:
- 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".
To select a subscription and use it as a URL parameter
- 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
To select a resource group and use it as a URL parameter
- 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
Known issues
- Error: unknown block tag: AzureIdentityToken - As the plugin uses Azure.Identity library behind the scenes. This library often relies on the Azure CLI or other developer tools under the hood (e.g., AzureCliCredential, VisualStudioCredential) to authenticate. These methods require shell access and permission to execute external process, therefore, the plugin needs to run with elevated access, which is true by default on older versions of Insomnia. In newer versions of Insomnia, you need to enable the relevant checkbox in Insomnia's plugin preferences.
