Home › Prompts › Community › Azure AVM Terraform mode (Copilot agent)

Azure AVM Terraform mode (Copilot agent)

Any chat AIAgents & automationCommunity (MIT)

Note: Review and test before use. Provided as is, without warranty. See Terms.

Prompt

Download  
# Azure AVM Terraform mode

Use Azure Verified Modules for Terraform to enforce Azure best practices via pre-built modules.

## Discover modules

- Terraform Registry: search "avm" + resource, filter by Partner tag.
- AVM Index: `https://azure.github.io/Azure-Verified-Modules/indexes/terraform/tf-resource-modules/`

## Usage

- **Examples**: Copy example, replace `source = "../../"` with `source = "Azure/avm-res-{service}-{resource}/azurerm"`, add `version`, set `enable_telemetry`.
- **Custom**: Copy Provision Instructions, set inputs, pin `version`.

## Versioning

- Endpoint: `https://registry.terraform.io/v1/modules/Azure/{module}/azurerm/versions`

## Sources

- Registry: `https://registry.terraform.io/modules/Azure/{module}/azurerm/latest`
- GitHub: `https://github.com/Azure/terraform-azurerm-avm-res-{service}-{resource}`

## Naming conventions

- Resource: Azure/avm-res-{service}-{resource}/azurerm
- Pattern: Azure/avm-ptn-{pattern}/azurerm
- Utility: Azure/avm-utl-{utility}/azurerm

## Best practices

- Pin module and provider versions
- Start with official examples
- Review inputs and outputs
- Enable telemetry
- Use AVM utility modules
- Follow AzureRM provider requirements
- Always run `terraform fmt` and `terraform validate` after making changes
- Use `azure_get_deployment_best_practices` tool for deployment guidance
- Use `microsoft.docs.mcp` tool to look up Azure service-specific guidance

## Custom Instructions for GitHub Copilot Agents

**IMPORTANT**: When GitHub Copilot Agent or GitHub Copilot Coding Agent is working on this repository, the following local unit tests MUST be executed to comply with PR checks. Failure to run these tests will cause PR validation failures:

```bash
./avm pre-commit
./avm tflint
./avm pr-check
```

These commands must be run before any pull request is created or updated to ensure compliance with the Azure Verified Modules standards and prevent CI/CD pipeline failures.
More details on the AVM process can be found in the [Azure Verified Modules Contribution documentation](https://azure.github.io/Azure-Verified-Modules/contributing/terraform/testing/).

How to use

More: all agents & automation prompts · all community prompts · prompt library

Related prompts

Design an automation workflow (n8n/Zapier/Make)

Turn a manual process into a step-by-step automation design with triggers, nodes, error handling and an LLM step prompt.

Any chat AIAgents & automation

ChatGPT agent: multi-step web task with checkpoints

A brief for ChatGPT's agent to research, compare and compile results on the web, pausing before any purchase or submission.

ChatGPTAgents & automation

Agentic coding task brief for Claude Code

A task brief for Claude Code that defines the goal, constraints, verification and stopping point so the agent works autonomously but safely.

ClaudeAgents & automation

Gemini automation across Gmail, Docs and Calendar

A request that has Gemini gather info from email and docs and produce a draft plan, without sending anything.

GeminiAgents & automation

Grok tool-using research agent prompt

A system prompt for a Grok agent that plans, searches, verifies and writes a cited brief, with a cap on tool calls.

GrokAgents & automation

Agent Organization Expert

Agent Organization Expert: --- name: agent-organization-expert description: Multi-agent orchestration skill for team assembly, task decomposition…

Any chat AIAgents & automationCommunity (CC0)

Get new rules weekly

One email a week: fresh rule files, agent tips, and what's changing in Cursor, Claude Code and Copilot. Free, unsubscribe anytime.

Opens the Rulestack Newsletter on beehiiv in a new tab. Or subscribe directly on beehiiv.