Azure Cloud Billing
Collect Azure (Microsoft Cloud) cloud billing information
Configuration¶
Install Func¶
It is recommended to enable Guance Integration - Extensions - Managed Func: All prerequisites are automatically installed. Please proceed with the script installation.
If deploying Func manually, refer to Deploy Func Manually
Enable Script¶
Tip: Please prepare an Azure application registration that meets the requirements in advance and assign the
Monitoring Reader
role to the application registration.
Managed Version Activation Script¶
- Log in to the Guance console.
- Click the 【Integration】 menu and select 【Cloud Account Management】.
- Click 【Add Cloud Account】, select 【Azure】, and fill in the required interface information. If you have already configured cloud account information previously, skip this step.
- Click 【Test】. After a successful test, click 【Save】. If the test fails, check whether the configuration information is correct and re-test.
- You can see the added cloud account in the 【Cloud Account Management】 list. Click on the corresponding cloud account to enter the details page.
- Click the 【Integration】 button on the cloud account details page, find
Azure Cloud Billing
under theNot Installed
list, and click the 【Install】 button to install it.
Manual Activation Script¶
-
Log in to the Func console, click 【Script Market】, go to the official script market, and search for
guance_azure_billing_by_instance
. -
After clicking 【Install】, enter the corresponding parameters:
Azure Tenant ID
,Azure Client ID
,Azure Client Secret Value
. -
Click 【Deploy Startup Script】. The system will automatically create a
Startup
script set and configure the corresponding startup script. -
After enabling, you can view the corresponding automatic trigger configuration in 「Management / Automatic Trigger Configuration」. Click 【Execute】 to run it immediately without waiting for the scheduled time. Wait a moment, and then check the execution task records and corresponding logs.
Verification¶
- In 「Management / Automatic Trigger Configuration」, confirm whether the corresponding task has an automatic trigger configuration. You can also check the task records and logs for anomalies.
- In Guance, view whether there is corresponding billing information under 「Cloud Billing / Billing Analysis」.