- 2 Minutes to read
-
Print
-
PDF
Alternate method for generating credentials for Azure configuration
- 2 Minutes to read
-
Print
-
PDF
About this document
This document provides the details on how you can manually generate (without running the Powershell script as detailed in Step 1 here) the Tenant ID, Client ID, and Client Secret for the Azure configuration in SAFE. This is an alternate method of generating the connector details (Tenant ID, Client ID, and Client Secret) for Azure configuration.
Generate the Connector Details
App Registration
- Log in to the Azure Portal.
- Navigate to Azure Active Directory.
- Go to the App registrations and click the New registration button.
- On the app registration page, enter a display name for the application, account type, and a redirect URI.
- DisplayName: Enter a name of your choice. For example, SAFE-Azure App
- AccountType: Set to accounts in the organizational directory only
- RedirectURI: can be left blank.
- Click the Register button. The system registers the application.
Get the Client ID and Tenant ID
- Go to the Application overview page you have created above.
- On the application's overview page, you can find the ClientID and TenantID.
- Save the ClientID and TenantID on your system for later usage while configuring the Azure to SAFE.
Create the Client Secret
When we register a new application in Azure, it does not have any client secrets. To create a Client Secret:
- Navigate to Certificates & Secrets from the left navigation.
- Click the New Client Secret button.
- Enter the description and expiry for the client secret.
- Click the Add button.
- The system adds the ClientSecret and displays the details on the same page.
- Save the Client Secret on your system for later usage while configuring the Azure to SAFE.
Assign reader role in the subscriptions to the created app
Getting the Subscription ID
We need to authenticate the application we created in the above steps with the Azure subscriptions.
- Go to the Azure Portal.
- Search Subscriptions in the search bar and click it.
- On the subscriptions page, the system displays all your Azure subscriptions.
- Search and click the subscription to which you want to assign the reader role for the app.
Assign Reader Role
You need to assign the reader role in the subscriptions to the created application to sync the Azure with SAFE. To assign the reader role:
- Go to the Subscription overview page on the Azure Portal.
- Click the Access Control (IAM) button from the left navigation.
- Click the Add button.
- On the Role tab of the Add role assignment page, select the Reader role and click Next.
- On the Member tab Add role assignment page, click the +Select Member button and select the member the application you created above.
- Click Next and save the settings to assign the reader role.
For more details, refer to https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal