Set Up Azure Credentials for CloudIM
CloudIM for Azure
Microsoft Azure. A cloud computing platform that provides infrastructure services, including blob storage for PCAP files and AI inference services used by . uses a Microsoft Entra ID app registration, client secret, and service principal with the Reader role on the subscriptions or resource groups you want to monitor.
After you complete these steps, add an Azure authentication profile for CloudIM, then add a CloudIM data source with the Azure provider. For the full CloudIM setup path, see Configuring CloudIM.
Create an app registration
To create an app registration:
-
Sign in to the Azure portal and open Microsoft Entra ID.
-
Under Manage, select App registrations, then click + New registration.
-
On the Register an application page:
-
Name: Enter a name for the application (for example, CloudIM).
-
Supported account types: Choose Accounts in this organizational directory only.
-
Leave the Redirect URI field empty.
-
-
Click Register.
Record app registration details
After the app registration is created, record the following values. You need them later for authentication:
-
Application (client) ID
-
Directory (tenant) ID
Create a client secret
To create a client secret:
-
In the app registration, under Manage, open Certificates & secrets.
-
Under Client secrets, click + New client secret.
-
Add a description, choose an expiration period, and finish creating the secret.
Create a service principal
The app registration needs a service principal so it can access resources in your subscriptions.
To create the service principal:
-
In the Azure CLI or Azure Cloud Shell, run the following command. Replace
<APPLICATION_ID>with the Application (client) ID you recorded:Copyaz ad sp create --id <APPLICATION_ID> -
Confirm from the command output that the service principal was created successfully.
Assign the Reader role
Assign the Reader role to the app so CloudIM can query resource metrics. You can assign the role at the subscription level or at the resource group level.
To assign Reader at the subscription level:
-
In the Azure portal, open Subscriptions.
-
Select the subscription you want to track.
-
In the left menu, select Access control (IAM).
-
Click + Add, then choose Add role assignment.
-
In the Role list, select Reader.
-
Under Assign access to, select Microsoft Entra ID user, group, or service principal.
-
Click Select members, search for the app registration or service principal name, select it, then click Save.
To assign Reader at the resource group level instead:
-
In the Azure portal, open Resource groups.
-
Select the resource group you want to track.
-
In the left menu, select Access control (IAM).
-
Click + Add, then choose Add role assignment.
-
In the Role list, select Reader.
-
Under Assign access to, select Microsoft Entra ID user, group, or service principal.
-
Click Select members, search for the app registration or service principal name, select it, then click Save.
Next step
After you have the Application (client) ID, Directory (tenant) ID, and client secret, add an Azure authentication profile for CloudIM.