Fortinet Document Library

Version:


Table of Contents

Azure Cookbook

Resources

Upgrade Path Tool

Azure Cookbook

6.2.0
Download PDF
Copy Link

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:
  1. Go to the Overview for the FortiGate-VM resource.
  2. 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:

  1. Using an output table
  2. 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:
  1. Create an output table for the information:

    az account list --output table

  2. 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.

942b80cd-????-42a1-????-4b21dece61ba

942b80cd-????-42a1-????-4b21dece61ba

942b80cd-????-42a1-????-4b21dece61ba

$

Resources

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:
  1. Go to the Overview for the FortiGate-VM resource.
  2. 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:

  1. Using an output table
  2. 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:
  1. Create an output table for the information:

    az account list --output table

  2. 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.

942b80cd-????-42a1-????-4b21dece61ba

942b80cd-????-42a1-????-4b21dece61ba

942b80cd-????-42a1-????-4b21dece61ba

$