Azure Billing

Source code & Installation

The source code of this kit module can be found hereopen in new window

Run the following command to install the kit module:

collie kit import azure/billing
1

Microsoft Cost Management is a suite of tools that help organizations monitor, allocate, and optimize the cost of their Microsoft Cloud workloads. Cost Management is available to anyone with access to a billing or resource management scope. The availability includes anyone from the cloud finance team with access to the billing account. And, to DevOps teams managing resources in subscriptions and resource groups. Together, Cost Management and Billing are your gateway to the Microsoft Commerce system that’s available to everyone throughout the journey.

Requirements

NameVersion
terraform>= 1.0
azuread~> 2.41.0
azurerm~> 3.71.0

Modules

No modules.

Resources

NameType
azuread_group.billing_adminsopen in new windowresource
azuread_group.billing_readersopen in new windowresource
azurerm_consumption_budget_management_group.tenant_root_groupopen in new windowresource
azurerm_role_assignment.cost_management_contributoropen in new windowresource
azurerm_role_assignment.cost_management_readeropen in new windowresource
azurerm_role_assignment.management_group_biling_adminopen in new windowresource
azurerm_role_assignment.management_group_billing_readeropen in new windowresource
azuread_client_config.currentopen in new windowdata source
azurerm_subscription.currentopen in new windowdata source

Inputs

NameDescriptionTypeDefaultRequired
billing_admin_groupthe name of the cloud foundation billing admin groupstring"cloudfoundation-billing-admins"no
billing_reader_groupthe name of the cloud foundation billing reader groupstring"cloudfoundation-billing-readers"no
budget_amountamount of the budgetnumber100no
budget_namethe name of the budget alertstring"cloudfoundation_budget"no
budget_time_periodthe time period of the budget alert
list(object({
start = string,
end = optional(string),
}))
[
{
"end": "2022-07-01T00:00:00Z",
"start": "2022-06-01T00:00:00Z"
}
]
no
contact_mailsThe email address of the contact person for the cost alertlist(string)
[
"billingmeshi@meshithesheep.io"
]
no
scopeid of the tenant management groupstringn/ayes

Outputs

NameDescription
billing_admins_azuread_group_idn/a
billing_readers_azuread_group_idn/a
documentation_mdn/a