Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Prepare applications for Azure deployment by generating infrastructure code, Dockerfiles, and config files.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/recipes/azcli/README.md
1# AZCLI Recipe23Azure CLI workflow for imperative Azure deployments.45## When to Use67- Existing az scripts in project8- Need imperative control over deployment9- Custom deployment pipelines10- AKS deployments11- Direct resource manipulation1213## Before Generation1415**REQUIRED: Research best practices before generating any files.**1617| Artifact | Research Action |18|----------|-----------------|19| Bicep files | Call `mcp_bicep_get_bicep_best_practices` |20| Bicep modules | Call `mcp_bicep_list_avm_metadata` and follow [AVM module order](../azd/iac-rules.md#avm-module-selection-order-mandatory) |21| Azure CLI commands | Call `activate_azure_cli_management_tools` |22| Azure best practices | Call `mcp_azure_mcp_get_azure_bestpractices` |2324## Generation Steps2526### 1. Generate Infrastructure (Bicep)2728Create Bicep templates in `./infra/`.2930**Structure:**31```32infra/33├── main.bicep34├── main.parameters.json35└── modules/36└── *.bicep37```3839### 2. Generate Deployment Scripts4041Create deployment scripts for provisioning.4243→ [scripts.md](scripts.md)4445### 3. Generate Dockerfiles (if containerized)4647Manual Dockerfile creation required.4849## Output Checklist5051| Artifact | Path |52|----------|------|53| Main Bicep | `./infra/main.bicep` |54| Parameters | `./infra/main.parameters.json` |55| Modules | `./infra/modules/*.bicep` |56| Deploy script | `./scripts/deploy.sh` or `deploy.ps1` |57| Dockerfiles | `src/<service>/Dockerfile` |5859## Deployment Commands6061See [commands.md](commands.md) for common patterns.6263## Naming Convention6465Resources: `{prefix}{token}{instance}`66- Alphanumeric only, no special characters67- Prefix ≤3 chars (e.g., `kv` for Key Vault)68- Token = 5 char random string69- Total ≤32 characters7071## References7273- [Deployment Commands](commands.md)74- [Deployment Scripts](scripts.md)7576## Next7778→ Update `.azure/deployment-plan.md` → **azure-validate**79