Azure Client Authorization Configuration
The script market supports collecting cloud resources/cloud monitoring metrics through Azure application registration and reporting to Guance/TrueWatch. This article describes how to complete the collector authorization configuration.
Create an Application Registration in the Azure Portal
- In the
Microsoft Entra ID
page sidebar, findApp registrations
, and clickNew registration
- Enter the application name as required, set
Supported account types
tothis organizational directory only
, and clickRegister
Authorize the Application
- Find the subscription that needs to be monitored, click
Access control (IAM)
, and selectAdd role assignment
- Under the
Role
tab, search forMonitoring Reader
(English:Monitoring Reader
) and select it - Under the
Members
tab, clickSelect members
, search for the application name created above in the pop-up window, select it, and clickSelect
- Click
Review + assign
to complete the authorization
Repeat this operation for other subscriptions that need to be monitored, or you can directly authorize the application in the management group (Management groups), so the application will automatically have permissions for all subscriptions under the management group
Create a Key for the Application
- In
App registrations
, find the application created above, clickMange
>Certificates & secrets
- Select
Client secret
and click+ New client secret
, customizeDescription
, fill inExpired
as needed, and clickAdd
- Copy the value of the key (Azure Client Secret Value) and keep it for later use
Script Market Collector Configuration
The parameters required for installing the Azure collector in the script market are as follows:
Azure Tenant ID
: Tenant IDAzure Client ID
: Application registration Client IDAzure Client Secret Value
: Client password value (mentioned above that it needs to be copied and kept for later use)Azure Subscriptions
: Subscription ID, multiple subscriptions are separated by,
The Azure Tenant ID
and Azure Client ID
can be found on the overview page of the application mentioned above:
In the Azure portal, directly search for Subscriptions
, list all subscriptions, find the target subscription, and copy out the Subscription ID