Skip to content

docs(azure-sa): update docs and added examples#891

Draft
pablosanchezpaz wants to merge 3 commits intomainfrom
add/azure-sa-docs
Draft

docs(azure-sa): update docs and added examples#891
pablosanchezpaz wants to merge 3 commits intomainfrom
add/azure-sa-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 Storage Account module documentation and adds runnable example configurations to make adoption and testing easier.

Changes:

  • Added terraform-docs header/footer sources and config for consistent README generation.
  • Added basic and complete module usage examples (Terraform + YAML values).
  • Refreshed the module README to include overview, usage, and links to examples/resources.

Reviewed changes

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

Show a summary per file
File Description
modules/azure-sa/docs/header.md New shared header content injected into README via terraform-docs.
modules/azure-sa/docs/footer.md New shared footer with example links and resources.
modules/azure-sa/_examples/complete/values.yaml Adds a full configuration example (network rules, lifecycle, services).
modules/azure-sa/_examples/complete/main.tf Adds a runnable example that decodes values.yaml and wires module inputs.
modules/azure-sa/_examples/basic/main.tf Adds a minimal runnable example using variables.
modules/azure-sa/README.md Regenerated/expanded README with header/footer and trimmed inline example block.
modules/azure-sa/.terraform-docs.yml Adds terraform-docs config to inject header/footer into README.

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

Comment on lines 36 to 37
└── _examples/
└── values.yaml
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 documented file structure shows _examples/values.yaml, but the PR introduces _examples/basic/... and _examples/complete/.... Update this tree to reflect the actual example directories/files so users can find the examples.

Copilot uses AI. Check for mistakes.
account_replication_type: "LRS"
```

> For a complete and advanced example, see the file at `_examples/basic/values.yaml`. No newline at end of file
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.

This link text says 'complete and advanced example' but points to _examples/basic/values.yaml. It should point to the complete example (and to the correct filename, e.g. _examples/complete/values.yaml), or adjust the wording to match the basic example.

Suggested change
> For a complete and advanced example, see the file at `_examples/basic/values.yaml`.
> For a complete basic example file, see `_examples/values.yaml`.

Copilot uses AI. Check for mistakes.
@@ -0,0 +1,18 @@
locals {
values = yamldecode(file("./values.yaml"))
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.

Using file(\"./values.yaml\") makes the example depend on the current working directory, which can break when running Terraform from a different directory (e.g., CI or -chdir). Prefer an explicit module-relative path (e.g., based on path.module) for reliability.

Suggested change
values = yamldecode(file("./values.yaml"))
values = yamldecode(file("${path.module}/values.yaml"))

Copilot uses AI. Check for mistakes.
Comment on lines 11 to 12
- "/subscriptions/324ca80b-cea7-41ff-ac13-25441f452f33/resourceGroups/rg_test/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-subnet"
- "/subscriptions/c9e99a2d-e0cd-473b-935c-bc2e37ea8511/resourceGroups/rg_test/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-subnet1"
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.

These look like real Azure subscription GUIDs. Even in examples, it’s safer to use clearly fake placeholder values (e.g., 00000000-0000-0000-0000-000000000000 or /subscriptions/<subscription-id>/...) to avoid accidentally publishing sensitive tenant identifiers.

Suggested change
- "/subscriptions/324ca80b-cea7-41ff-ac13-25441f452f33/resourceGroups/rg_test/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-subnet"
- "/subscriptions/c9e99a2d-e0cd-473b-935c-bc2e37ea8511/resourceGroups/rg_test/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-subnet1"
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg_test/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-subnet"
- "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg_test/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/test-subnet1"

Copilot uses AI. Check for mistakes.
anchor: true
color: true
default: true
description: false
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 description: false, terraform-docs omits variable/output descriptions, which results in n/a in generated sections (as seen for the id output in the README). If the intent is to keep descriptions in the README, set this to true (or remove this override) so generated docs remain informative.

Suggested change
description: false
description: true

Copilot uses AI. Check for mistakes.
| Name | Description |
|------|-------------|
| <a name="output_id"></a> [id](#output\_id) | ID of the storage account |
| <a name="output_id"></a> [id](#output\_id) | n/a |
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 id output description regressed to n/a, which makes the output table less useful. Restore the output description (likely by enabling terraform-docs descriptions in config) so consumers can understand what id represents.

Suggested change
| <a name="output_id"></a> [id](#output\_id) | n/a |
| <a name="output_id"></a> [id](#output\_id) | The resource ID of the Storage Account |

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