Getting the Azure subscription ID
The Azure subscription is referred to in the Azure interface as the Subscription ID.
To get the Azure subscription ID in the GUI:
- Go to the Overview for the FortiGate-VM resource.
- In the Azure interface menu, under Favorites, select Dashboard, then from the All resources column, select the name of the FortiGate-VM on which you are configuring the connector. The Subscription ID is a hexadecimal number.
There are two variations of finding the Subscription ID information through the CLI:
- Using an output table
- Displaying a list
First, use the same login procedure from Getting the Azure tenant ID.
To find the Azure subscription ID using an output table:
- Create an output table for the information:
az account list --output table
- Display the table:
$ az account show --subscription "" | jq -r '.tenantId'
942b80cd-????-42a1-????-4b21dece61ba <-- Directory ID $
To find the Azure subscription ID by displaying a list:
$ az account list | jq -r '..tenantId'
A few accounts are skipped as they don't have 'Enabled' state. Use '--all' to display them.