Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions modules/azure-resource-group/.terraform-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
formatter: "markdown"

version: ""

header-from: docs/header.md
footer-from: docs/footer.md

recursive:
enabled: false
path: modules
include-main: true

sections:
hide: []
show: []

content: ""

output:
file: "README.md"
mode: inject
template: |-
<!-- BEGIN_TF_DOCS -->
{{ .Content }}
<!-- END_TF_DOCS -->

output-values:
enabled: false
from: ""

sort:
enabled: true
by: name

settings:
anchor: true
color: true
default: true
description: false
escape: true
hide-empty: false
html: true
indent: 2
lockfile: true
read-comments: true
required: true
sensitive: true
type: true
103 changes: 81 additions & 22 deletions modules/azure-resource-group/README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,25 @@
# Azure resource_groups
<!-- BEGIN_TF_DOCS -->
# Azure Resource Group Terraform Module

## Overview

This module creates only resource groups into Azure provicer.
This Terraform module allows you to create Azure Resource Groups with optional tags.

## DOC
## Main features
- Create one or more resource groups in Azure.
- Support for custom tags for each resource group.
- Simple usage for both single and multiple groups.
- Realistic configuration example.

- [Resource terraform - resource-group](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/resource_group).

## Usage

### Set a module
## Complete usage example

Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same Markdown issue as in docs/header.md: the ```terraform code fence is not closed before the '### HCL' heading, which will break rendering of the README. Close the terraform fence before starting the HCL section.

Copilot uses AI. Check for mistakes.
```terraform
module "githuib-oidc" {
module "github-oidc" {
source = "git::https://github.com/prefapp/tfm.git//modules/azure-resource-group?ref=<version>"
}
```

#### Example

```terraform
module "githuib-oidc" {
source = "git::https://github.com/prefapp/tfm.git//modules/azure-resource-group?ref=v1.2.3"
}
```

### Set a data .tfvars

#### Example
### HCL

```hcl
name = "group_one"
Expand All @@ -39,7 +30,75 @@ location = "westEurope"
name = "group_two"
location = "westEurope"
tags = {
foo: "bar"
bar: "foo"
foo = "bar"
bar = "foo"
}
```

## Notes
- You can define as many resource groups as needed, each with its own tags.
- Tags help organize and identify your resources.

## File structure

Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There’s an extra closing code fence at line 54 (a second ``` immediately after the file-structure block is already closed on line 53). This will introduce an empty code block / malformed Markdown; remove the extra fence.

Copilot uses AI. Check for mistakes.
```
.
├── main.tf
├── variables.tf
├── outputs.tf
├── resource_groups.tf
├── README.md
├── CHANGELOG.md
└── docs/
├── header.md
└── footer.md
```

## Requirements

| Name | Version |
|------|---------|
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | >=4.26.0 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | >=4.26.0 |

## Modules

No modules.

## Resources

| Name | Type |
|------|------|
| [azurerm_resource_group.this](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/resource_group) | resource |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_location"></a> [location](#input\_location) | (Required) The Azure Region where the Resource Group should exist. Changing this forces a new Resource Group to be created. | `string` | `""` | no |
| <a name="input_name"></a> [name](#input\_name) | (Required) The Name which should be used for this Resource Group. Changing this forces a new Resource Group to be created. | `string` | `""` | no |
| <a name="input_tags"></a> [tags](#input\_tags) | (Optional) A mapping of tags which should be assigned to the Resource Group. | `map(any)` | `{}` | no |

## Outputs

| Name | Description |
|------|-------------|
| <a name="output_resource_group_id"></a> [resource\_group\_id](#output\_resource\_group\_id) | n/a |
| <a name="output_resource_group_location"></a> [resource\_group\_location](#output\_resource\_group\_location) | n/a |
| <a name="output_resource_group_name"></a> [resource\_group\_name](#output\_resource\_group\_name) | n/a |
| <a name="output_resource_group_tags"></a> [resource\_group\_tags](#output\_resource\_group\_tags) | n/a |

## Resources and support

- [Official Azure Resource Group documentation](https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/manage-resource-groups-portal)
- [Terraform reference for azurerm\_resource\_group](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/resource_group)

## Support

For issues, questions, or contributions related to this module, please visit the [repository's issue tracker](https://github.com/prefapp/tfm/issues).
<!-- END_TF_DOCS -->
11 changes: 11 additions & 0 deletions modules/azure-resource-group/_examples/basic/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Basic example: create a single Azure Resource Group

module "azure_resource_group" {
source = "../../"

name = "group_one"
location = "westeurope"
tags = {
environment = "dev"
}
}
6 changes: 6 additions & 0 deletions modules/azure-resource-group/_examples/basic/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Basic example values for azure-resource-group module

name: group_one
location: westeurope
tags:
environment: dev
8 changes: 8 additions & 0 deletions modules/azure-resource-group/docs/footer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## Resources and support

- [Official Azure Resource Group documentation](https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/manage-resource-groups-portal)
- [Terraform reference for azurerm_resource_group](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/resource_group)

## Support

For issues, questions, or contributions related to this module, please visit the [repository's issue tracker](https://github.com/prefapp/tfm/issues).
54 changes: 54 additions & 0 deletions modules/azure-resource-group/docs/header.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Azure Resource Group Terraform Module

## Overview

This Terraform module allows you to create Azure Resource Groups with optional tags.

## Main features
- Create one or more resource groups in Azure.
- Support for custom tags for each resource group.
- Simple usage for both single and multiple groups.
- Realistic configuration example.

## Complete usage example

Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Markdown fencing is broken here: the ```terraform code block opened on line 15 is never closed before the '### HCL' heading, so the rest of the page will render as code. Close the terraform code fence before the next heading, and ensure each code block is properly opened/closed.

Copilot uses AI. Check for mistakes.
```terraform
module "github-oidc" {
source = "git::https://github.com/prefapp/tfm.git//modules/azure-resource-group?ref=<version>"
}
```

### HCL

```hcl
name = "group_one"
location = "westEurope"
```

```hcl
name = "group_two"
location = "westEurope"
tags = {
foo = "bar"
bar = "foo"
}
```

## Notes
- You can define as many resource groups as needed, each with its own tags.
- Tags help organize and identify your resources.

## File structure

```
.
├── main.tf
├── variables.tf
├── outputs.tf
├── resource_groups.tf
├── README.md
├── CHANGELOG.md
└── docs/
├── header.md
└── footer.md
```