News Photo

How to get Azure API credentials - Client ID, Client Secret, Tenant ID and Subscription ID

    Prerequisite step

Reference topics


Register at as a first step,  then logon to your Azure

portal  account to get information you need  to populate your subscription page.

For instructions, see


Get your Azure subscription ID.

The subscription ID is a GUID that uniquely identifies your subscription to use Azure services.

  1. Log on to the Azure portal.
  2. In the left navigation panel, click Subscriptions. The list of your subscriptions is displayed along with the subscription ID.

Ensure that you have the required permissions to create an application

in Azure Active Directory (AAD).

For instructions, see Check Azure Active Directory permissions in the Microsoft documentation.


Create an AAD application. In a text editor (such as Notepad), copy the name of

the application and label it as Application Name.

For instructions, see Create an Azure Active Directory application in the Microsoft documentation.


Get the Application ID and generate an authentication key for this application.

In a text editor (such as Notepad), copy the name of the Application ID and label it as Client ID. Copy the authentication key string to the text editor, and label the string as Client Secret Key.

For instructions, see Get application ID and authentication key in the Microsoft documentation.


Get the Tenant ID, which is the ID of the AAD directory in which you created the application.

In a text editor (such as Notepad), copy the ID and label it as Tenant ID.

 About Tenants

A Tenant is representative of an organization within Azure Active Directory.

It is a dedicated instance of the Azure AD service. An AAD tenant is required for defining an application and for assigning permissions so the application can make

use of other Azure services' REST APIs.

For instructions, see Get tenant ID in the Microsoft documentation.

7 Assign contributor role to the application.
  1. In the left pane of the Azure portal menu, select Subscriptions.
  2. Select your subscription.
  3. Select the Access Control (IAM) tab.
  4. Add your application.
  5. Assign the Contributor role to the application.

For details, see Assign application to role in the Microsoft documentation.

Share This News