Schedule and manage the jobs that download Azure billing data
Billing Download jobs download, organize, and store billing data for your payer account on the schedule that you specify. The system analyzes the data to generate reports and to make recommendations for changes in your cloud operations that can lead to cost savings.
Avant de commencer
Ensure that your system has 8 GB Clotho memory and 4 GB mid memory.
Role required: Cloud Integrations Admin [sn_cld_intg_core.cloud_integrations_admin]
Pourquoi et quand exécuter cette tâche
- To ensure accurate reporting and recommendations for some providers, make sure that Discovery runs before the scheduled execution.
- You can create only one Billing Download job for each service account.
- Only costs of unblended type are supported.
- Each successful execution of a Billing Download job updates tagged costs. Recent updates that you make to tag category definitions (for example, adding a tag name to a category) might not be reflected in cost reports. You should map tag values to tag categories after the first run because populating tag values needs at least one successful run. For more information on applying the latest tag category definitions to cost data without running a Billing Download job, see Create and update a tag category.
- When a Billing Download job successfully completes, it triggers the Budget Forecast, Business hours, Reservation/saving plans, Rightsizing, and Unused resources jobs to analyze spend and usage data. This action also updates the actionable recommendations in reports.
- When the scheduled time arrives, job execution happens in multiple stages (for example, connect to the provider, download the data, perform the post-import sort, and so on). The system logs status and results on the Price Sheet Executions page for each stage.
- Cost categories are updated with new cost tag values each time billing data is downloaded. For example, the Cost Center category might include the tags development, testing, and QA. The User category might include the names of your users.
- Billing data is downloaded in reverse chronological order by month. For example, if the range is from March to June, data for June is downloaded first.
- To ensure meaningful results for the first billing data download, the app downloads data for minimum 30 days. For example, if today is June 10 and you specify June for download, the system downloads data for both May and June to ensure a minimum 30 days of data for analysis.
- You can download data only for the most recent 12 months.
-
Whenever you provision a Kubernetes cluster, one default resource group gets created as MC_myResourceGroup_myAKSCluster_eastus. For example, if you provision a Kubernetes cluster with a resource group name as TestResourceGroup, Azure uses this resource group name and provisions another resource group as MC_<name of the resource group>_<name of the cluster>_<location of the cluster>.
All resources of the Kubernetes cluster are included in the resource group provided by Azure. When you run a Billing Download job, the list of resources included in the resource group with this naming convention MC_<name of the resource group>_<name of the cluster>_<location of the cluster> is checked.- A tag sn_ccm_k8_cluster_name is added to the Kubernetes cluster when the billing download job runs.
- A tag sn_ccm_k8_cluster_name is added to the resources of the Kubernetes cluster present in the resource group when the Spend job runs.
Remarque :- If you provide your own name to the asset or resources of a resource group, you can't view the spend for Kubernetes clusters.
- Install Discovery and Service Mapping Patterns application (sn_itom_pattern) 1.10.2 or higher. For more information, see Install Discovery and Service Mapping Patterns.
- Install CMDB CI Class Models (sn_cmdb_ci_class) version 1.53.1 or higher. For more information, see CMDB CI Class Models app.
- To set up Kubernetes discovery, see Kubernetes discovery using patterns.
- If you have installed the Cloud Cost Management Infra Stack application along with Cloud Cost Management version 8.1, bill processing only happens on the Kubernetes cluster outside the Glide but within the ServiceNow datacenter. This framework supports parallel processing of data in chunks, making the billing file download faster.
After you submit a request for Azure billing data, the blobs are generated based on the chunk size. You can use the system property sn_cld_intg_azure.billing_chunk_duration to set the chunk size. For details, see Configure the chunk size of Microsoft Azure billing blob. Consider an example where you want to download 30 days of billing data and you have set the chunk size to 3, then the billing data is available in 10 blobs. After all the blobs are generated, the state of the job changes from Ready to Requested. These blobs are stored in some blob storage on the Azure portal. The Kubernetes framework then downloads and processes the generated blobs from Azure.
Remarque :If you have installed the Cloud Cost Management Infra Stack application, then toward the end of a job, significant database update, and insert operations are performed based on your Cloud CIs and spend data volume. Thus, any other job that impacts database performance shouldn't be run during this time alongside Cloud Cost Management jobs.
- From Cloud Cost Management version 8.1 onwards, the default time for billing download jobs has changed from 12:00 to 01:00 (UTC). Also, schedule or run Cloud Cost Management jobs only during off-business hours and when there's no other heavy operations or jobs running on the ServiceNow instance.
- Cloud Cost Management version 10.0 and later versions support the FinOps Open Cost and Usage Specification (FOCUS), the industry standard for delivering billing and usage data.
Procédure
Résultats
- While downloading the data, Cloud Cost Management updates the billing node data table [sn_cld_intg_<provider>_cost_usage] with the CIs in the CMDB that corresponds to each resource ID. If a CI doesn’t exist, the system generates a placeholder CI. On subsequent discovery, the system reconciles the placeholder CI.
- Cloud Cost Management generates a log entry for each stage of the execution on the Billing Download Executions page.