[PowerShell] Configure your Service Principal to Monitor Subscriptions
Step 1
Section titled “Step 1”Please find the “2_AssignIAMReaderRoleToCloudMonitorServicePrincipal.ps1” from the ConfigureCloudMonitorServicePrincipal folder and execute it in the PowerShell.
Please provide the necessary inputs when required.
Step 2
Section titled “Step 2”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.
Step 3
Section titled “Step 3”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.
Step 4
Section titled “Step 4”Please find the “1_CreateCloudMonitorServicePrincipal.ps1” from the ConfigureCloudMonitorServicePrincipal folder and execute it in the PowerShell.
Please provide the necessary inputs when required.
Step 5
Section titled “Step 5”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.