Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Une commande directe contourne le prompt de vérification. Examinez la source avant de l'exécuter.
[{"label":"▶ Run What-If Only","agent":"Deploy","prompt":"Execute az deployment what-if analysis without actually deploying. Show the expected changes to the target resource group.","send":true},{"label":"▶ Retry Deployment","agent":"Deploy","prompt":"Retry the last deployment operation. Re-run preflight validation and deployment with the same parameters.","send":true},{"label":"▶ Verify Resources","agent":"Deploy","prompt":"Query deployed resources using Azure Resource Graph to verify successful deployment. Check resource health status.","send":true},{"label":"▶ Generate Workload Documentation","agent":"Deploy","prompt":"Use the azure-artifacts skill to generate comprehensive workload documentation for the deployed infrastructure.","send":true},{"label":"Return to Architect Review","agent":"Architect","prompt":"Review the deployment results and validate WAF compliance of the deployed infrastructure.","send":true},{"label":"▶ Generate As-Built Diagram","agent":"Deploy","prompt":"Use the azure-diagrams skill to generate an as-built architecture diagram documenting the deployed infrastructure. Save as 07-ab-diagram.py.","send":true},{"label":"Fix Deployment Issues","agent":"Bicep Code","prompt":"The deployment encountered errors. Review the error messages and fix the Bicep templates to resolve the issues. Then retry deployment.","send":true},{"label":"Preflight Only (No Deploy)","agent":"Architect","prompt":"Preflight validation is complete. Review the what-if results and change summary before proceeding to actual deployment.","send":true}]
Deploy Agent
Step 6 of the 7-step workflow: requirements → architect → design → bicep-plan → bicep-code → [deploy] → as-built
If errors → STOP, report, hand off to Bicep Code agent.
Step 3: Determine Deployment Scope
Read targetScope from main.bicep:
Target Scope
Command Prefix
resourceGroup
az deployment group
subscription
az deployment sub
managementGroup
az deployment mg
tenant
az deployment tenant
Step 4: Run What-If Analysis
CRITICAL: Use default output (NO --output flag) for VS Code rendering.
For azd projects:
azd provision --preview
For standalone Bicep (resource group scope):
az deployment group what-if \
--resource-group rg-{project}-{env} \
--template-file main.bicep \
--parameters main.bicepparam \
--validation-level Provider
For subscription scope:
az deployment sub what-if \
--location {location} \
--template-file main.bicep \
--parameters main.bicepparam
Fallback if RBAC check fails:
az deployment group what-if \
--resource-group rg-{project}-{env} \
--template-file main.bicep \
--parameters main.bicepparam \
--validation-level ProviderNoRbac
Step 5: Classify and Present Changes
Symbol
Change Type
Action
+
Create
Review new resources
-
Delete
STOP — Requires explicit approval
~
Modify
Review property changes
=
NoChange
Safe
*
Ignore
Check limits
!
Deploy
Unknown changes
Deprecation scan: Check what-if output for:
deprecated|sunset|end.of.life|no.longer.supported|classic.*not.*supported|retiring
If detected, STOP and report.
Present summary table and wait for user approval.
Deployment Execution
Option 1: PowerShell Script (Recommended)
cd infra/bicep/{project}
pwsh -File deploy.ps1 -WhatIf # Preview first
pwsh -File deploy.ps1 # Execute (after approval)
Option 2: Direct Azure CLI (Fallback)
az group create --name rg-{project}-{env} --location swedencentral
az deployment group create \
--resource-group rg-{project}-{env} \
--template-file main.bicep \
--parameters main.bicepparam \
--name {project}-$(date +%Y%m%d%H%M%S) \
--output table
Post-Deployment Verification
# Query deployed resources
az graph query -q "Resources | where resourceGroup =~ 'rg-{project}-{env}' | project name, type, location"# Check resource health
az graph query -q "HealthResources | where resourceGroup =~ 'rg-{project}-{env}'"
Stopping Rules
STOP IMMEDIATELY if:
bicep build returns errors
What-if shows Delete (-) operations — require explicit user approval
What-if shows >10 modified resources — summarize and confirm
User has not approved deployment
Azure authentication not configured
Deprecation signals detected in what-if output
PREFLIGHT ONLY MODE:
If user selects "Preflight Only" handoff, generate 06-deployment-summary.md
with preflight results but DO NOT execute deployment. Mark status as "Simulated".
Known Issues
Issue
Workaround
What-if fails (RG doesn't exist)
Create RG first: az group create ...
deploy.ps1 JSON parsing errors
Use direct az deployment group create
RBAC permission errors
Use --validation-level ProviderNoRbac
Output Files
File
Location
Deployment Summary
agent-output/{project}/06-deployment-summary.md
Include attribution: > Generated by deploy agent | {YYYY-MM-DD}
Validation Checklist
Azure CLI authenticated (az account show succeeds)
bicep build passes with no errors
What-if analysis completed and reviewed
No unapproved Delete operations
No deprecation signals in what-if output
User approval obtained before deployment
Deployment completed successfully
Post-deployment verification passed
06-deployment-summary.md saved with correct H2 headings