Skip to content

Configure Service Principal for Subscriptions

For each Azure Subscription that you want to monitor, add the CloudMonitor Service Principal that you selected during installation as the READER role at the Subscription scope. Start by selecting the Azure Subscription in the Azure portal:

For each Azure Subscription that you want to monitor, add the CloudMonitor Service Principal that you selected during installation as the…

Click on “Access control (IAM)” inside of the Subscription.

Click on "Access control (IAM)" inside of the Subscription

Click ”+ Add” to add a new Role/Scope.

Click "+ Add" to add a new Role/Scope

Choose “Add role assignment”

Choose "Add role assignment"

Select the “Reader” role. This only allows CloudMonitor to read service-plane metadata and costs, but not the contents inside of services such as database data and key vault keys.

Select the "Reader" role. This only allows CloudMonitor to read service-plane metadata and costs, but not the contents inside of services…

Click “Next”

Click "Next"

Choose “User, group, or service principal” and click “Select members”

Choose "User, group, or service principal" and click "Select members"

Type in the name of your Service Principal and select it from the drop down list. You can also search by the App Id (Client Id) of your service principal to ensure you have the right one.

Type in the name of your Service Principal and select it from the drop down list

Click “Select”

Click "Select"

Click “Next”.

Click "Next"

Review the details and click “Review + assign”

Review the details and click "Review + assign"

The CloudMonitor Engine now has the access it needs to monitor this Subscription. Repeat this step for as many Subscriptions as you wish, or consider using a Management Group to allow all new Subscriptions to be monitored automatically.

Navigate toAzure Active Directory > App Registrations, and click your CloudMonitor Service Principal by name or ClientId under the “All applications” tab.

Navigate toAzure Active Directory > App Registrations, and click your CloudMonitor Service Principal by name or ClientId under the "All…

On the side menu, under Manage, click “API permissions” and then click “Add a permission”.

On the side menu, under Manage, click "API permissions" and then click "Add a permission"

In the modal window that opens, click “Microsoft Graph”.

In the modal window that opens, click "Microsoft Graph"

Click “Application permissions” and search for [[Application.Read.All]] in the select permissions input field. Then add the read permission by clicking “Add permissions” below.

![Click “Application permissions” and search for [Application.Read.All]] in the select permissions input field

Repeat the last step for the same Service Principal, adding these read permissions:
• [[AuditLog.Read.All]]
• [[Directory.Read.All]]

![Repeat the last step for the same Service Principal, adding these read permissions:\ • [[AuditLog.Read.All]]\ • [Directory.Read.All]]

Click “Grant admin consent for …”. This action requires a user with Admin rights.

Click "Grant admin consent for ...". This action requires a user with Admin rights