Generate Client ID and Client Secret for Azure Authentication

Register the Application in Azure Portal

The client ID is the unique identifier for your registered application. To register the application:

  1. Sign in to the Azure Portal.

  2. Search for and select Microsoft Entra ID (formerly Azure Active Directory).

  3. In the left sidebar, select App registrations > + New registration.

  4. Enter a name for your application (for example, Databricks-Automation), and then select Register.

  5. On the Overview page, copy the Application (client) ID. This is your client ID.

Generate the Client Secret

The client secret is the password your application uses to authenticate. To generate the client secret:

  1. In your registered app’s menu, select Certificates & secrets.

  2. Select + New client secret.

  3. Enter a description, choose an expiration period, and then select Add.

  4. Immediately copy the Value (not the Secret ID).

Important
The client secret value is displayed only once and cannot be retrieved later. Store it securely.

Add the Service Principal to Databricks

After you generate credentials, you must authorize this identity in your Databricks workspace. To add the service principal:

  1. Sign in to your Azure Databricks workspace.

  2. Select your username in the upper right corner, and then select Settings.

  3. Go to Identity and access > Service principals > Manage.

  4. Select Add service principal > Add new.

  5. Paste the Application (client) ID that you copied from the Azure Portal, and then enter a display name.

  6. Select Add.