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:
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
In the Azure portal, navigate to Management groups and select the required management group.
Select from the menu Access Control (IAM).
Select + Add and then Add role assignment.
In the Role field, select the Reader value.
Note:
The Resource Policy Contributor role is only required for provisioning.
In the Assign access to field, keep the default User, group, or service principal value.
In the Select field, select the name you created in the registering the application step.
Select Save.
Individual subscription
In the Azure portal, navigate to Subscriptions and select the required subscription.
Enter the subscription ID into the text editor and label it Subscription ID.
Select from the menu Access Control (IAM).
Select + Add and then Add role assignment.
In the Role field, select the Reader value.
Note:
The Resource Policy Contributor role is only required for provisioning.
In the Assign access to field, keep the default User, group, or service principal value.
In the Select field, select the name you created in the registering the application step.
Select Save.
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.
Credentials form field
Azure Service Principal value
Tenant ID
AzureDirectory ID value from the text file.
Client ID
AzureApplication ID value from the text file.
Secret key
AzureApplication 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.