Skip to content

docs(azure-resource-group): update docs and added examples#894

Draft
pablosanchezpaz wants to merge 6 commits intomainfrom
add/azure-resource-group-docs
Draft

docs(azure-resource-group): update docs and added examples#894
pablosanchezpaz wants to merge 6 commits intomainfrom
add/azure-resource-group-docs

Conversation

@pablosanchezpaz
Copy link
Contributor

No description provided.

@pablosanchezpaz pablosanchezpaz requested a review from a team as a code owner February 6, 2026 08:25
@pablosanchezpaz
Copy link
Contributor Author

Related to #786

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Azure Resource Group module documentation and adds a basic example to improve usability and terraform-docs generation.

Changes:

  • Added terraform-docs header/footer pages and terraform-docs config for README injection.
  • Expanded module README with usage, notes, file structure, and generated inputs/outputs sections.
  • Added a basic example (Terraform + values YAML) under _examples/basic.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
modules/azure-resource-group/docs/header.md New terraform-docs header content including overview and examples.
modules/azure-resource-group/docs/footer.md New footer with support links.
modules/azure-resource-group/_examples/basic/main.tf Adds a minimal Terraform example for module usage.
modules/azure-resource-group/_examples/basic/values.yaml Adds example values file for the basic example.
modules/azure-resource-group/README.md Replaces README with terraform-docs injected content (header + generated docs + footer).
modules/azure-resource-group/.terraform-docs.yml Adds terraform-docs configuration to generate/inject README content.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- 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.
## Complete usage example

```terraform
module "githuib-oidc" {
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.

Typo in module name: 'githuib' should be 'github' (or rename the module block to something relevant like 'azure_resource_group' since this is an Azure Resource Group module).

Suggested change
module "githuib-oidc" {
module "azure_resource_group" {

Copilot uses AI. Check for mistakes.

### 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.
- 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.
color: true
default: true
description: false
escape: true
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.

With escape: true, terraform-docs is emitting backslashes into code examples/paths in README (e.g., group\\_one, resource\\_groups.tf), which makes copy/paste invalid for HCL and misleading for file names. Consider setting escape: false (or otherwise adjusting settings/template) so code fences contain literal, copyable values.

Suggested change
escape: true
escape: false

Copilot uses AI. Check for mistakes.
@pablosanchezpaz pablosanchezpaz marked this pull request as draft February 11, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants