Resource: azurerm_resourcegroup
Creates an Azure resource group using recommended abbreviation for Azure Resources, given a name, location and tags (optional). Also add supports for managed_by.
Name | Version |
---|---|
azurerm | >= 2.98 |
Name | Version |
---|---|
azurerm | >= 2.98 |
No modules.
Name | Type |
---|---|
azurerm_resource_group.resourcegroup | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
location | (Required) The Azure Region where the Resource Group should exist. Changing this forces a new Resource Group to be created. | string |
n/a | yes |
name | (Required) The Name which should be used for this Resource Group. Changing this forces a new Resource Group to be created. | string |
n/a | yes |
managed_by | (Optional) The ID of the resource or application that manages this Resource Group. | string |
null |
no |
tags | (Optional) A mapping of tags which should be assigned to the Resource Group. | map(string) |
null |
no |
Name | Description |
---|---|
id | Returns Resource Group ID. |
location | Returns Resource Group Location. |
managed_by | Returns the ID of the resource or application that manages this Resource Group. |
name | Returns Resource Group Name. |
tags | Returns Resource Group Tags. |
module "azurerm_resourcegroup_type1" {
source = "github.com/rmsmatos/terraform_azurerm_resourcegroup_version2"
name = "just-a-test"
location = "westeurope"
tags = {
environment = "production"
costcentre = "cost center"
}
}
- Abbreviation examples for Azure resources
- Azure Resource naming restrictions
- Azure Resource Group
- Terraform azurerm_resource_group
Created and maintained by Rui Matos.
©Rui Matos 2023
This source code is licensed under the Apache-2.0 license found in the LICENSE file in the root directory of this source tree license (./LICENSE.md).