Create Azure cloud credentials
If your cloud resources are in an Azure cloud, create credentials that can access the Azure account. This procedure requires configuration in your Azure account.
Verify the REST API Permissions
Download the Cloud Discovery patterns spreadsheet so you can grant user permissions required for running the Discovery patterns. In addition to permissions, the spreadsheet also includes useful information such as pattern names, types, CI Classes, and links to vendor documentation. New patterns are available quarterly, so check periodically to be sure you have the latest version of the spreadsheet.
Before you begin
Roles required:
- discovery_admin, service_mapping_admin, sn_cmp.cloud_admin roles in Cloud Provisioning and Governance or sn_cloud_ops_ws.cloud_ops_admin role in Cloud Discovery Workspace.
Operations on the Microsoft Azure portal require one of the following roles:
- Azure or Azure AD (Active Directory) Administrator
- Application Administrator
- Application Developer
- Cloud Application Administrator and the Resource Policy Contributor role to create or modify resource policies.
Enable internal network connection between the MID Servers and the Azure Cloud API endpoints: management.azure.com
Procedure
Log in to the Azure portal and navigate to Azure Active Directory.
Navigate to the App registrations section and select New application registration.
Enter the following information for your application:
Register an application
|Field|Description|
|-----|-----------|
|Name|Unique name for the application and its integration credentials. For example, `ServiceNow Integration`.|
|Supported account types|Specify who can use the application.|
|Redirect URI \(Optional\)|URL that will access Azure. Typically the URL of the ServiceNow instance.|
Select Register to complete the app registration.
When registration completes, copy the Application (client) ID and Directory (tenant) ID values, and paste them in the text editor.
Label the values Application ID and Directory ID respectively.
In the Azure portal, navigate to the Certificates & secrets section and New client secret then specify the following values:
| Field | Description |
|---|---|
| Key description | Description for the key. |
| Duration | Expiration for the key.Note: Your organization may apply policies to restrict key durability. Select the appropriate duration. |
Select Add.
Copy and paste the key value into the text editor and label the value Application key.
Enable the service principal to access Azure subscriptions based on your environment.
Choose the option that matches your setup:
- Management group: Use this option to grant Reader access to all subscriptions under the management group
- Individual subscription: Use this option to grant Reader access to a specific subscription only
| Option | Steps |
|---|---|
| Management group |
Note: The Resource Policy Contributor role is only required for provisioning.
|
| Individual subscription |
Note: The Resource Policy Contributor role is only required for provisioning.
|
Select the Azure Service Principal type credential.
Navigate to All > Connections & Credentials > Credentials.
Select New.
Select Azure Service Principal.
Specify the following values on the Azure Service Principal form:
| Field | Value |
|---|---|
| Name | Name of the service principal to register with the instance. For example, `Azure service principal credentials`. |
| Authentication Method | Select Client secret.The Secret key field appears when you select Client secret. Note: Client assertion is not supported. |
- Copy and paste values from the temporary text file into the remaining fields.
Azure credentials
|Credentials form field|Azure Service Principal value|
|----------------------|-----------------------------|
|Tenant ID|Azure **Directory ID** value from the text file.|
|Client ID|Azure **Application ID** value from the text file.|
|Secret key|Azure **Application key** value from the text file.|
Select Save to create the Azure service principal.
Select the Discover Subscriptions related link to find all subscriptions for the Azure service principal.
The instance creates a service account for each discovered subscription. The Azure Subscriptions related list displays all subscriptions for the Azure service principal.
Select a subscription to view the service account created for the subscription.
Select a Discovery status entry in the Credential Discovery Status list to view the Discovery log.
Each time you select Discover Subscription, the instance generates a new Discovery status and displays it in the Credential Discovery Status list.