new-azd-service

new-azd-service is a command for GitHub Copilot from srnichols/plan-forge. It costs 25 tokens per session (856 once invoked), scanned A, original, MIT.

A setup command that adds Azure Developer CLI support to an existing project. The Azure Developer CLI is a tool for defining, deploying, and managing an application's Azure services.

In plain words
What is it for?
Use it to create azure.yaml, add Bicep or Terraform infrastructure settings, tag Azure resources, and configure hooks and pipeline details.
Why use it?
It gives an existing project the files and naming information azd needs to discover services and infrastructure.

Command for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt. Also seen: agent in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is project: ./src/api # path to service source.

Good fit Use it to create azure.yaml, add Bicep or Terraform infrastructure settings, tag Azure resources, and configure hooks and pipeline details.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/srnichols/plan-forge
agentmods
npx agentmods add commands/srnichols/plan-forge/new-azd-service

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 new-azd-service

README.md
[![agentmods](https://agentmods.dev/badge/commands/srnichols/plan-forge/new-azd-service/github.svg)](https://agentmods.dev/commands/srnichols/plan-forge/new-azd-service)
Your own site
<a href="https://agentmods.dev/commands/srnichols/plan-forge/new-azd-service"><img src="https://agentmods.dev/badge/commands/srnichols/plan-forge/new-azd-service/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 new-azd-service

Your own site · 80×15
<a href="https://agentmods.dev/commands/srnichols/plan-forge/new-azd-service"><img src="https://agentmods.dev/badge/commands/srnichols/plan-forge/new-azd-service.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 856 The whole file, excluding the scripts and references it only reads on demand.
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.00025 $0.00856
Opus 5 $0.00013 $0.00428
Sonnet 5 $0.00005 $0.00171
Haiku 4.5 $0.00003 $0.00086

Measured yesterday against content hash 906b42a8672f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

new-azd-service 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 yesterday.

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.

presets/azure-iac/.github/prompts/new-azd-service.prompt.md · 126 lines

How it starts

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

Add azd Support to Existing Project

Convert an existing application or infrastructure project to use the Azure Developer CLI (azd).

What azd Needs

Every azd-compatible project requires:

  1. An azure.yaml at the project root
  2. An infra/ folder with a Bicep or Terraform entry point (main.bicep or main.tf)
  3. Resources tagged with azd-env-name and azd-service-name for auto-discovery

Step 1 — Explore the Project

Read the project structure first:

  • What services are defined? (API, web app, functions, containers)
  • What language / runtime?
  • What Azure resources already exist or are planned?
  • Is IaC already written? If so, Bicep or Terraform?

Step 2 — Create azure.yaml

# azure.yaml
name: {project-name}

metadata:
  template: {project-name}@1.0.0   # optional

infra:
  provider: bicep           # bicep | terraform
  path: infra               # relative path to IaC folder
  module: main              # root module name

services:
  api:
    project: ./src/api      # path to service source
    language: dotnet        # dotnet | js | ts | python | java
    host: containerapp      # appservice | containerapp | function | staticwebapp | aks
    docker:
      path: ./src/api/Dockerfile

  web:                      # remove if no front-end
    project: ./src/web
    language: js
    host: staticwebapp
    dist: build

pipeline:
  provider: github          # github | azdo

hooks:
  preprovision:
    shell: pwsh
    run: ./scripts/Validate-Prerequisites.ps1
    continueOnError: false
  postdeploy:
    shell: pwsh
    run: ./scripts/Invoke-SmokeTest.ps1 -EnvironmentName ${AZURE_ENV_NAME}

Step 3 — Tag Resources for azd Discovery

In infra/modules/{service}.bicep, add azd tags alongside common tags:

param environmentName string
param serviceName string = 'api'     // must match services key in azure.yaml

resource containerApp 'Microsoft.App/containerApps@2024-03-01' = {
  tags: union(commonTags, {
    'azd-env-name':     environmentName
    'azd-service-name': serviceName
  })
  ...
}

Read the full file on GitHub · 126 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. yesterday First seen · 126 lines · 25 tokens per session scan A 906b42a8672f

Subscribe to this mod's changes

new-azd-service is a command published in the GitHub repository srnichols/plan-forge (5 stars, last pushed today), licensed MIT. It adds 25 tokens to every session and 856 once invoked, about $0.0001 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-09-08.