Azure Cost Management Export Resource Group
This page shows how to write Terraform for Cost Management Export Resource Group and write them securely.
azurerm_cost_management_export_resource_group (Terraform)
The Export Resource Group in Cost Management can be configured in Terraform with the resource name azurerm_cost_management_export_resource_group
. The following sections describe 2 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "azurerm_cost_management_export_resource_group" "main" {
count = var.cost_management == true ? 1 : 0
name = "costmanagement"
resource_group_id = join("", azurerm_resource_group.main.*.id)
resource "azurerm_cost_management_export_resource_group" "this" {
active = var.active
name = var.name
recurrence_period_end = var.recurrence_period_end
recurrence_period_start = var.recurrence_period_start
recurrence_type = var.recurrence_type
Parameters
-
active
optional - bool -
id
optional computed - string -
name
required - string -
recurrence_period_end
required - string -
recurrence_period_start
required - string -
recurrence_type
required - string -
resource_group_id
required - string -
delivery_info
list block-
container_name
required - string -
root_folder_path
required - string -
storage_account_id
required - string
-
-
query
list block-
time_frame
required - string -
type
required - string
-
-
timeouts
single block
Explanation in Terraform Registry
Manages an Azure Cost Management Export for a Resource Group. !> Note: The
azurerm_cost_management_export_resource_group
resource has been deprecated in favour of theazurerm_resource_group_cost_management_export
resource and will be removed in v3.0 of the Azure Provider.
Azure Resource Manager Example
Azure Resource Manager code does not have the related resource.
Frequently asked questions
What is Azure Cost Management Export Resource Group?
Azure Cost Management Export Resource Group is a resource for Cost Management of Microsoft Azure. Settings can be wrote in Terraform.
Where can I find the example code for the Azure Cost Management Export Resource Group?
For Terraform, the holgerson97/terraform-azure-network and niveklabs/azurerm source code examples are useful. See the Terraform Example section for further details.