Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Execute Azure deployments using azd, Terraform, or Bicep with built-in error recovery.
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# Azure CLI Deploy Recipe23Deploy to Azure using Azure CLI.45## Prerequisites67- `az` CLI installed → Run `mcp_azure_mcp_extension_cli_install` with `cli-type: az` if needed8- `.azure/deployment-plan.md` exists with status `Validated`9- Bicep/ARM templates exist in `infra/`10- **Subscription and location confirmed** → See [Pre-Deploy Checklist](../../pre-deploy-checklist.md)1112## Workflow1314| Step | Task | Command |15|------|------|---------|16| 1 | **[Pre-deploy checklist](../../pre-deploy-checklist.md)** | Confirm subscription/location with user |17| 2 | Deploy infrastructure | `az deployment sub create` |18| 3 | Deploy application | Service-specific commands |19| 4 | Verify | `az resource list` |20| 5 | **Report** | Present deployed endpoint URLs to the user — see [Verification](verify.md) |2122## Infrastructure Deployment2324### Subscription-Level (Recommended)2526```bash27az deployment sub create \28--location eastus2 \29--template-file ./infra/main.bicep \30--parameters environmentName=dev31```3233### Resource Group Level3435```bash36az group create --name rg-myapp-dev --location eastus23738az deployment group create \39--resource-group rg-myapp-dev \40--template-file ./infra/main.bicep \41--parameters environmentName=dev42```4344## Application Deployment4546### Container Apps4748```bash49az containerapp update \50--name <app-name> \51--resource-group <rg-name> \52--image <acr-name>.azurecr.io/myapp:latest53```5455### App Service5657```bash58az webapp deploy \59--name <app-name> \60--resource-group <rg-name> \61--src-path ./publish.zip62```6364### Azure Functions6566```bash67func azure functionapp publish <function-app-name>68```6970## References7172- [Verification steps](./verify.md)73- [Error handling](./errors.md)74