terraform-azure-avm-ptn-ephemeral-credential
Copilot instructions0 starsChanged 3 days agoMITView on GitHub
Instructions for developing and maintaining Azure Verified Modules for Terraform.
209 other projects use a version of this.
Adopted by
Most recently taken up by
- Azure/terraform-azurerm-avm-res-avs-privatecloudword for word, first seen Nov 13, 2026
- Azure/terraform-azurerm-avm-ptn-odaa-identityword for word, first seen Nov 13, 2026
- Azure/terraform-azurerm-avm-res-app-managedenvironmentword for word, first seen Nov 13, 2026
- Azure/terraform-azurerm-avm-ptn-monitoring-amba-alzword for word, first seen Nov 13, 2026
- Azure/terraform-azurerm-avm-res-search-searchserviceword for word, first seen Nov 13, 2026
- Azure/terraform-azurerm-avm-res-containerinstance-containergroupword for word, first seen Nov 13, 2026
Other versions209 projects use a version of this.
Word for word · 209
- Azure/terraform-azurerm-avm-ptn-aks-production★ 44100% same
- Azure/terraform-azurerm-avm-ptn-aiml-landing-zone★ 42100% same
- Azure/terraform-azurerm-avm-res-compute-virtualmachine★ 42100% same
- Azure/terraform-azurerm-avm-res-containerservice-managedcluster★ 42100% same
- Azure/terraform-azurerm-avm-res-storage-storageaccount★ 39100% same
- Azure/terraform-azurerm-avm-res-network-privatednszone★ 32100% same
- Azure/terraform-azurerm-avm-ptn-alz-management★ 26100% same
- Azure/terraform-azurerm-avm-res-containerregistry-registry★ 23100% same
- Azure/terraform-azurerm-avm-ptn-network-private-link-private-dns-zones★ 22100% same
- Azure/terraform-azurerm-avm-res-devopsinfrastructure-pool★ 20100% same
199 more not listed
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- avm-tf-azapiSkill
- avm-tf-classificationsSkill
- avm-tf-codestyleSkill
- avm-tf-conftestSkill
- avm-tf-documentationSkill
- avm-tf-interfacesSkill
- avm-tf-lifecycleSkill
- avm-tf-migrationSkill
- avm-tf-pattern-reviewSkill
- avm-tf-processSkill
- avm-tf-submodulesSkill
- avm-tf-telemetrySkill
- avm-tf-testingSkill
- avm-tf-tflintSkill
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
15 rules. About 1 is common, 10 are distinctive, and 4 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 17
Use the AVM Terraform agent for specification-driven module development.
- Distinctive: line 23
After reading these instructions and the relevant skills, but before modifying files, output this block visibly to the user:
- Distinctive: line 36
Before reviewing or generating Terraform:
- Distinctive: line 40
Read the complete skill matching the task.
- Distinctive: line 43
Do not cite a specification from memory or treat an older module as authoritative.
- Very specific: line 53
Do not hand-edit generated README.md files.
- Very specific: line 57
Use PowerShell 7.4 or later with Avm.Authoring from Microsoft Artifact Registry (MAR).
- Distinctive: line 86
Use the current AVM indexes to confirm module availability, classification, naming, and ownership:
- Distinctive: line 96
Keep reusable modules free of provider configuration blocks.
- Distinctive: line 97
Use PowerShell for supported hooks and scripts.
- Distinctive: line 98
Add or update the smallest relevant unit, integration, or E2E coverage.
- Very specific: line 99
Run avm pre-commit and review generated changes.
- Very specific: line 100
Commit the complete worktree before running avm pr-check.
- Common: line 101
Treat TFLint and Conftest exceptions as reviewed deviations, not shortcuts around a failing check.
- Distinctive: line 105
When a task falls within a skill's domain, read and follow the full skill before proceeding.
≈ “Common” is an estimate: at least 1 in 5 of the 3,779 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Azure Verified Modules (AVM) - Terraform Instructions
Overview
This repository contains an Azure Verified Module for Terraform. AVM modules are reusable, tested Azure infrastructure modules that follow the published AVM specifications.
AVM has three module classifications:
- Resource modules - one primary Azure resource and its child or extension resources.
- Pattern modules - opinionated multi-resource solutions composed from resource modules.
- Utility modules - shared logic or interfaces that do not directly deploy an Azure resource.
Use the AVM Terraform agent for specification-driven module development. AGENTS.md is a compatibility entry point for agents that do not load this Copilot-specific file directly.
Critical Compliance Requirements
Instruction acknowledgement
After reading these instructions and the relevant skills, but before modifying files, output this block visibly to the user:
{
"avm-terraform-instructions": "loaded",
"skills": ["<loaded-skill-name>"]
}List every skill loaded for the task. Use an empty skills array when no specialized skill applies.
Follow current AVM specifications
Before reviewing or generating Terraform:
- Fetch https://azure.github.io/Azure-Verified-Modules/llms.txt.
- Locate and read the current raw page for every relevant Terraform and shared specification.
- Read the complete skill matching the task.
- Resolve conflicts in favor of the current published specification.
Do not cite a specification from memory or treat an older module as authoritative.
Use AzAPI for managed authoring
New AVM Terraform modules use Azure/azapi for every control-plane resource and every supported direct Azure operation. Do not use hashicorp/azurerm for convenience, ordinary supporting infrastructure, examples, tests, or fixtures.
AzureRM is permitted only for a specifically documented data-plane or non-ARM operation that AzAPI cannot perform. Each exception must be independently justified and must not authorize other AzureRM usage. Read avm-tf-azapi and avm-tf-tflint before implementing an exception.
Generate documentation
Do not hand-edit generated README.md files. Author module content in _header.md and _footer.md, then run avm docs or avm pre-commit. Read avm-tf-documentation before changing module documentation.
Use the Managed Toolchain
Use PowerShell 7.4 or later with Avm.Authoring from Microsoft Artifact Registry (MAR). MAR is not registered by default. Follow the PSResourceGet 1.2.0 prerequisite, then register MAR once:
Import-Module Microsoft.PowerShell.PSResourceGet -MinimumVersion 1.2.0
Register-PSResourceRepository -Name MAR `
-Uri 'https://mcr.microsoft.com' `
-ApiVersion ContainerRegistry `
-Trusted
Install-PSResource -Name avm.authoring `
-Repository MAR `
-Scope CurrentUser
Import-Module Avm.Authoring
avm version| Command | Purpose |
avm pre-commit | Synchronize managed files, apply fixable conventions and transforms, format Terraform, and generate documentation. |
avm pr-check | Run the clean-worktree pull request validation gate. |
avm test unit | Run provider-mocked Terraform tests. |
avm test integration | Run real-Azure integration tests. |
avm test e2e | Deploy, idempotency-check, and destroy runnable examples. |
avm lint | Run the managed TFLint configuration. |
avm check policy | Evaluate example plans against APRL and AVMSEC through Conftest. |
To update from MAR, repeat Install-PSResource with -Reinstall, then start a new PowerShell session and import the module. The built-in avm update still uses PowerShell Gallery. Do not substitute the retired Make, Porch, container, or repository-launcher workflows.
Module Discovery
Use the current AVM indexes to confirm module availability, classification, naming, and ownership:
New repositories use terraform-azure-avm-<class>-<name> and publish under the Azure Terraform Registry namespace with the /azure system identifier. Existing legacy repository and Registry names do not permit AzureRM use.
Quality Assurance
- Keep reusable modules free of provider configuration blocks.
- Use PowerShell for supported hooks and scripts.
- Add or update the smallest relevant unit, integration, or E2E coverage.
- Run
avm pre-commitand review generated changes. - Commit the complete worktree before running
avm pr-check. - Treat TFLint and Conftest exceptions as reviewed deviations, not shortcuts around a failing check.
Skills
When a task falls within a skill's domain, read and follow the full skill before proceeding.
| Skill | Use for | File |
avm-tf-azapi | AzAPI resources, ARM schemas, provider constraints, retries, timeouts, response exports, replacement triggers, and ignore_body_changes. | .github/skills/avm-tf-azapi/SKILL.md |
avm-tf-classifications | Resource, pattern, and utility module classification and naming. | .github/skills/avm-tf-classifications/SKILL.md |
avm-tf-codestyle | Terraform file layout, HCL style, variables, outputs, validation, and lifecycle syntax. | .github/skills/avm-tf-codestyle/SKILL.md |
avm-tf-conftest | Conftest policy findings, APRL and AVMSEC rule identifiers, and example-local Rego exceptions. | .github/skills/avm-tf-conftest/SKILL.md |
avm-tf-documentation | Generated README inputs, examples, and documentation validation. | .github/skills/avm-tf-documentation/SKILL.md |
avm-tf-interfaces | Standard AVM interfaces and utility-module composition. | .github/skills/avm-tf-interfaces/SKILL.md |
avm-tf-lifecycle | Module proposal, ownership, lifecycle, versioning, and deprecation. | .github/skills/avm-tf-lifecycle/SKILL.md |
avm-tf-migration | AzureRM-to-AzAPI migration and state-preserving changes. | .github/skills/avm-tf-migration/SKILL.md |
avm-tf-process | Contribution flow from repository setup through validation, pull request, and release. | .github/skills/avm-tf-process/SKILL.md |
avm-tf-submodules | Child-resource submodule structure and composition. | .github/skills/avm-tf-submodules/SKILL.md |
avm-tf-telemetry | AVM telemetry resources, inputs, and AzAPI headers. | .github/skills/avm-tf-telemetry/SKILL.md |
avm-tf-testing | Unit, integration, E2E, hooks, and CI testing. | .github/skills/avm-tf-testing/SKILL.md |
avm-tf-tflint | Current AVM TFLint rules, canonical rule IDs, severity, overrides, scope, and precedence. | .github/skills/avm-tf-tflint/SKILL.md |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

