Borrowing it
Nothing to install: this file belongs to MicrosoftLearning/trainer-demo-deploy. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/MicrosoftLearning/trainer-demo-deploy/main/.github/prompts/generate-bicep.prompt.mdgit clone --depth 1 https://github.com/MicrosoftLearning/trainer-demo-deployWrote 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.
[](https://agentmods.dev/commands/microsoftlearning/trainer-demo-deploy/generate-bicep)<a href="https://agentmods.dev/commands/microsoftlearning/trainer-demo-deploy/generate-bicep"><img src="https://agentmods.dev/badge/commands/microsoftlearning/trainer-demo-deploy/generate-bicep/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.
<a href="https://agentmods.dev/commands/microsoftlearning/trainer-demo-deploy/generate-bicep"><img src="https://agentmods.dev/badge/commands/microsoftlearning/trainer-demo-deploy/generate-bicep.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00038 | $0.00661 |
| Opus 5.5 | $0.00015 | $0.00264 |
| Sonnet 5.5 | $0.00008 | $0.00132 |
| Haiku 4.5 | $0.00004 | $0.00066 |
Grade A, and why
generate-bicep 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 today.
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.
How it starts
The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Generate Bicep Templates
Discover governance constraints, plan the implementation, generate production-ready Bicep templates with AVM modules, and validate.
Mission
Run governance discovery, verify AVM availability, auto-select deployment strategy, generate the implementation plan, then progressively build Bicep modules with security baselines and automated validation.
Scope & Preconditions
generated-scenarios/${input:projectName}/02-architecture-assessment.mdmust exist- Read
.github/skills/az-consolidated/SKILL.mdfor naming, tags, AVM, security, templates, and Bicep patterns - Templates saved to
generated-scenarios/${input:projectName}/infra/and compatible withazd provision
Inputs
| Variable | Description | Default |
|---|---|---|
${input:projectName} |
Project name matching the generated-scenarios/ folder |
Required |
Workflow
Step 1: Governance Discovery
- Verify Azure connectivity (
az account show) - Query ALL effective policy assignments via REST API
- Classify policy effects —
Denypolicies are hard blockers - Save to
generated-scenarios/{projectName}/04-governance-constraints.mdand.json
Step 2: AVM Verification & Deployment Strategy
- Query AVM metadata for each resource in the architecture
- Auto-select deployment strategy (phased for >5 resources, single otherwise)
- Document module paths and versions
Step 3: Progressive Implementation
Generate templates following dependency order:
- main.bicep — orchestrator with
uniqueSuffix, conditional phases - main.bicepparam — parameter file for default environment
- modules/ — one module per resource, AVM-first
- Apply: baseline tags, security baseline, CAF naming, governance compliance
Step 4: Validation
- Run
bicep build main.bicep— fix any errors - Run
bicep lint main.bicep— fix any warnings - Save
generated-scenarios/{projectName}/05-implementation-reference.md
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.
- today First seen · 81 lines · 38 tokens per session scan A c4364265e97b
generate-bicep is a command published in the GitHub repository MicrosoftLearning/trainer-demo-deploy (31 stars, last pushed 11d ago), licensed MIT. It adds 38 tokens to every session and 661 once invoked, about $0.0002 per session on Opus 5.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-11-07.
generate-bicep compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| generate-bicepMicrosoftLearning/trainer-demo-deploy | Command | 31 | 11d ago | MIT | A | 38 | Claude Code, GitHub Copilot |
| cost-optimizewshobson/agents | Command | 42k | 2d ago | MIT | A | 26 | Claude Code |
| deploybutterbase-ai/butterbase-skills | Command | 535 | 7d ago | MIT | A | 20 | Claude Code |
| envvercel/vercel-plugin | Command | 328 | yesterday | none | A | 35 | Claude Code |
| firebase-publishPierry/harness-kit | Command | 4 | 1mo ago | MIT | A | 20 | Claude Code |
| scanprajapatimehul/claude-aws-cost-saver | Command | 24 | 4mo ago | MIT | A | 6 | Claude Code |
| migrationdatabayt/hogwarts | Command | 18 | 4d ago | none | A | 4 | Claude Code |