Skip to content

[PowerShell] Configure your Service Principal to Monitor Subscriptions

Please find the “2_AssignIAMReaderRoleToCloudMonitorServicePrincipal.ps1” from the ConfigureCloudMonitorServicePrincipal folder and execute it in the PowerShell.

Please provide the necessary inputs when required.

If the final output looks like below,

Reader Role has been assigned to the CloudMonitor Service Principal for the entered list of Subscriptions: <YourSubscriptions>

It means the user creation is successful.

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.

Please find the “1_CreateCloudMonitorServicePrincipal.ps1” from the ConfigureCloudMonitorServicePrincipal folder and execute it in the PowerShell.

Please provide the necessary inputs when required.

If the final output looks like below,

CloudMonitor App has been configured. Please allow 5 minutes before checking Azure Portal.

It means the user creation is successful.