Before using this skill, ensure:
```bash
az --version
```
Install from: https://docs.microsoft.com/cli/azure/install-azure-cli
```bash
az login # Interactive login
az login --tenant
az account show # Verify logged in
```
```bash
az account list # List subscriptions
az account set --subscription
```
```bash
az bicep install # Install Bicep
az bicep version # Verify installation
```
Or use built-in: az deployment group create auto-compiles Bicep
az deployment group create \
--resource-group <rg-name> \
--template-file <path-to-bicep> \
--parameters <params-file>.json
az deployment group create \
--resource-group <rg-name> \
--template-file <path-to-arm.json> \
--parameters <params-file>.json
az deployment group what-if \
--resource-group <rg-name> \
--template-file <path-to-bicep>
az bicep build --file <bicep-file>
Use parameter files for each environment:
params/
├── dev.bicepparam # or dev.json
├── staging.bicepparam # or staging.json
└── prod.bicepparam # or prod.json
Deploy with environment:
az deployment group create \
--resource-group <rg>-dev \
--template-file main.bicep \
--parameters @params/dev.json
See references/container-apps.md for detailed Container App patterns including:
When asked to create Azure resources via Bicep:
references/ match your needassets/container-app/az bicep build-params --file or reference Azure QuickStart TemplatesCopy scripts from references or use directly:
Quick deploy (copy-paste one-liner):
az deployment group create --resource-group <rg> --template-file main.bicep --parameters @params/dev.json
共 1 个版本