Skip to content

Step 6: Configuring the Service Principal for Admin App Access

In order to be able to log in to the Admin App and create Cost Groups and remediate recommendations, you need to first configure the Service Principal. Click on Get Started below to follow the walkthrough.

Open your Azure Portal in a new browser window (portal.azure.com).

You need to be logged into Azure as an Active Directory Administrator. Open “Microsoft Entra ID” (formerly “Azure Active Directory”).

Step 1 screenshot

Open the Service Principal (also known as an “App Registration”) that you added previously for CloudMonitor. You can do this by searching for the Service Principal Name or ClientId.

In our case, it is “CloudMonitor-SP”.

Step 2 screenshot

Once you have the Service Principal open, select “Authentication” in the left menu and click on “Add a platform” and choose “Single-page application”.

Step 3 screenshot

Copy and paste the Admin App Url provided to you by the CloudMonitor support team into the Redirect URIs. If you do not know what this is, contact Support and we’ll find it for you.

Step 4 screenshot

Check both checkboxes for Access Tokens and ID Tokens and ensure that the “Supported account types” option is set to Single Tenant only and save.

Step 5 screenshot

Then choose “Expose an API” in the left menu and click on “Add a scope”

Step 6 screenshot

Add the word “/appRoles” to the end of the Application ID URI (Do not change anything else) and click on “Save and continue”.

Step 7 screenshot

Enter “User.Read” in the “Scope name” field and select “Admins and users”.

Step 8 screenshot

Click the “Admin consent display name” field and enter “UserRoles”. Copy this into the “Admin consent description”, as well as the “User consent display name” and “User consent description” and click on “Add scope” to save.

Step 9 screenshot

Select “App roles” in the left menu. and click on “Create app role”.

Step 10 screenshot

Enter “Support” as the name and choose “Applications”.

Step 11 screenshot

Click on the Value field and enter “Support”, then copy and paste this into the Description field too. Ensure that the app role is enabled and click on “Apply” to save.

Step 12 screenshot

Select “API permissions” in the left menu and click on “Add a permission”.

Step 13 screenshot

Choose “APIs my organization uses”.

Step 14 screenshot

Click the “Start typing an API name or Application ID” field, then search and click on the name of your Service Principal (in our cased it is “CloudMonitor-SP”).

Step 15 screenshot

Choose “Application permissions”.

Step 16 screenshot

and check the “Support” permission and Click “Add permissions”

Step 17 screenshot

After doing the steps in adding the support application permission and has been granted by your administrator, it should look like this.

Step 18 screenshot

You have now configured the Admin App for login.

Navigate to your Admin App Url and test that you are able to log in with the Admin Account you specified during the CloudMonitor engine install. If you have an issues, raise a helpdesk ticket and our support team will get back to you.

Step 19 screenshot