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 tenant ID

The Directory ID in Azure is the same as the Azure tenant ID that the FortiGate requires.

Go to the Properties of the Azure AD in the Azure interface and find the Directory ID.

To obtain the Azure tenant ID through the CLI, do the following:

  1. Log into the Azure environment’s command line:

    $ azure login -v -u -p

    info: Executing command login verbose: Authenticating...

    info: Added subscription PAYG Dev/Test Subscription

    info: Added subscription Fortinet Engineering

    info: Added subscription Pay-As-You-Go

    info: Added subscription SE-Subscription

    info: login command OK $

  2. Show the account information and find the Tenant ID:

    $ azure account show

    info: Executing command account show

    data: Name : Fortinet Engineering

    data: ID : 2f96c44c-cfb2-4621-bd36-65ba45185e0c

    data: State : Enabled

    data: Tenant ID : 942b80cd-????-42a1-????-4b21dece61ba

    data: Is Default : true

    data: Environment : AzureCloud

    data: Has Certificate : No

    data: Has Access Token : Yes

    data: User name :

    data:

    info: account show command OK

Resources

Getting the Azure tenant ID

The Directory ID in Azure is the same as the Azure tenant ID that the FortiGate requires.

Go to the Properties of the Azure AD in the Azure interface and find the Directory ID.

To obtain the Azure tenant ID through the CLI, do the following:

  1. Log into the Azure environment’s command line:

    $ azure login -v -u -p

    info: Executing command login verbose: Authenticating...

    info: Added subscription PAYG Dev/Test Subscription

    info: Added subscription Fortinet Engineering

    info: Added subscription Pay-As-You-Go

    info: Added subscription SE-Subscription

    info: login command OK $

  2. Show the account information and find the Tenant ID:

    $ azure account show

    info: Executing command account show

    data: Name : Fortinet Engineering

    data: ID : 2f96c44c-cfb2-4621-bd36-65ba45185e0c

    data: State : Enabled

    data: Tenant ID : 942b80cd-????-42a1-????-4b21dece61ba

    data: Is Default : true

    data: Environment : AzureCloud

    data: Has Certificate : No

    data: Has Access Token : Yes

    data: User name :

    data:

    info: account show command OK