APIM-Unified-AI-Gateway-Sample: Instructions file for GitHub Copilot

.github/instructions/terraform-azure.instructions.md

APIM-Unified-AI-Gateway-Sample terraform-azure.instructions.md is an instructions file for GitHub Copilot from Azure-Samples/APIM-Unified-AI-Gateway-Sample. It costs 2,475 tokens per session, scanned A, original, MIT.

Guidelines for creating and changing Azure infrastructure with Terraform. Terraform manages infrastructure from configuration files, while Azure is Microsoft's cloud platform.

In plain words
What is it for?
Use them when building or reviewing Terraform configurations that provision resources on Azure.
Why use it?
They provide shared practices for automation, collaboration, measurement, and safe infrastructure changes in Azure projects.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

This is Azure-Samples/APIM-Unified-AI-Gateway-Sample's own configuration. It tells GitHub Copilot how to work on APIM-Unified-AI-Gateway-Sample itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything APIM-Unified-AI-Gateway-Sample configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Azure-Samples/APIM-Unified-AI-Gateway-Sample. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Azure-Samples/APIM-Unified-AI-Gateway-Sample/main/.github/instructions/terraform-azure.instructions.md
Clone the repo
git clone --depth 1 https://github.com/Azure-Samples/APIM-Unified-AI-Gateway-Sample

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for APIM-Unified-AI-Gateway-Sample terraform-azure.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/azure-samples/apim-unified-ai-gateway-sample/terraform-azure/github.svg)](https://agentmods.dev/instructions/azure-samples/apim-unified-ai-gateway-sample/terraform-azure)
Your own site
<a href="https://agentmods.dev/instructions/azure-samples/apim-unified-ai-gateway-sample/terraform-azure"><img src="https://agentmods.dev/badge/instructions/azure-samples/apim-unified-ai-gateway-sample/terraform-azure/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for APIM-Unified-AI-Gateway-Sample terraform-azure.instructions.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/azure-samples/apim-unified-ai-gateway-sample/terraform-azure"><img src="https://agentmods.dev/badge/instructions/azure-samples/apim-unified-ai-gateway-sample/terraform-azure.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,475 This file is loaded in full into every session.
When invoked 2,475 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.02475 $0.02475
Opus 5 $0.01238 $0.01238
Sonnet 5 $0.00495 $0.00495
Haiku 4.5 $0.00248 $0.00248

Measured 12d ago against content hash c4d5b141c6df, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

APIM-Unified-AI-Gateway-Sample terraform-azure.instructions.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/instructions/terraform-azure.instructions.md · 238 lines

How it starts

The opening of the file, as written. The whole thing — 238 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Azure Terraform Best Practices

Integration and Self-Containment

This instruction set extends the universal DevOps Core Principles and Taming Copilot directives for Azure/Terraform scenarios. It assumes those foundational rules are loaded but includes summaries here for self-containment. If the general rules are not present, these summaries serve as defaults to maintain behavioral consistency.

Incorporated DevOps Core Principles (CALMS Framework)

  • Culture: Foster collaborative, blameless culture with shared responsibility and continuous learning.
  • Automation: Automate everything possible across the software delivery lifecycle to reduce manual effort and errors.
  • Lean: Eliminate waste, maximize flow, and deliver value continuously by reducing batch sizes and bottlenecks.
  • Measurement: Measure everything relevant (e.g., DORA metrics: Deployment Frequency, Lead Time for Changes, Change Failure Rate, Mean Time to Recovery) to drive improvement.
  • Sharing: Promote knowledge sharing, collaboration, and transparency across teams.

Incorporated Taming Copilot Directives (Behavioral Hierarchy)

  • Primacy of User Directives: Direct user commands take highest priority.
  • Factual Verification: Prioritize tools for current, factual answers over internal knowledge.
  • Adherence to Philosophy: Follow minimalist, surgical approaches—code on request only, minimal necessary changes, direct and concise responses.
  • Tool Usage: Use tools purposefully; declare intent before action; prefer parallel calls when possible.

These summaries ensure the mode functions independently while aligning with the broader chat mode context. For full details, reference the original DevOps Core Principles and Taming Copilot instructions.

Chat Mode Integration

When operating in chat mode with these instructions loaded:

  • Treat this as a self-contained extension that incorporates summarized general rules for independent operation.
  • Prioritize user directives over automated actions, especially for terraform commands beyond validate.
  • Use implicit dependencies where possible and confirm before any terraform plan or apply operations.
  • Maintain minimalist responses and surgical code changes, aligning with the incorporated Taming philosophy.
  • Planning Files Awareness: Always check for planning files in the .terraform-planning-files/ folder (if present). Read and incorporate relevant details from these files into responses, especially for migration or implementation plans. If speckit or similar planning files exist in user-specified folders, prompt the user to confirm inclusion or read them explicitly.

Read the full file on GitHub · 238 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 238 lines · 2,475 tokens per session scan A c4d5b141c6df

Subscribe to this mod's changes

APIM-Unified-AI-Gateway-Sample terraform-azure.instructions.md is an instructions file published in the GitHub repository Azure-Samples/APIM-Unified-AI-Gateway-Sample (14 stars, last pushed 2d ago), licensed MIT. It adds 2,475 tokens to every session, about $0.0124 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories