Azure Cost Management Resource Group Cost Management Export
This page shows how to write Terraform for Cost Management Resource Group Cost Management Export and write them securely.
azurerm_resource_group_cost_management_export (Terraform)
The Resource Group Cost Management Export in Cost Management can be configured in Terraform with the resource name azurerm_resource_group_cost_management_export
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
The following arguments are supported:
name
- (Required) Specifies the name of the Cost Management Export. Changing this forces a new resource to be created.resource_group_id
- (Required) The id of the resource group on which to create an export.recurrence_type
- (Required) How often the requested information will be exported. Valid values includeAnnually
,Daily
,Monthly
,Weekly
.recurrence_period_start_date
- (Required) The date the export will start capturing information.recurrence_period_end_date
- (Required) The date the export will stop capturing information.export_data_storage_location
- (Required) Aexport_data_storage_location
block as defined below.export_data_options
- (Required) Aexport_data_options
block as defined below.active
- (Optional) Is the cost management export active? Default istrue
.
A export_data_storage_location
block supports the following:
container_id
- (Required) The Resource Manager ID of the container where exports will be uploaded.root_folder_path
- (Required) The path of the directory where exports will be uploaded.
Note: The Resource Manager ID of a Storage Container is exposed via the resource_manager_id
attribute of the azurerm_storage_container
resource.
A export_data_options
block supports the following:
type
- (Required) The type of the query.time_frame
- (Required) The time frame for pulling data for the query. If custom, then a specific time period must be provided. Possible values include:WeekToDate
,MonthToDate
,BillingMonthToDate
,TheLastWeek
,TheLastMonth
,TheLastBillingMonth
,Custom
.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Cost Management Export for this Resource Group.
Explanation in Terraform Registry
Manages a Cost Management Export for a Resource Group.
Azure Resource Manager Example
Azure Resource Manager code does not have the related resource.