Before using this skill, ensure:
Azure CLI installed
az --version
Install from: https://docs.microsoft.com/cli/azure/install-azure-cli
Azure CLI authenticated
az login # Interactive login
az login --tenant <tenant-id> # For specific tenant
az account show # Verify logged in
Correct subscription selected (if multiple)
az account list # List subscriptions
az account set --subscription <sub-id> # Switch subscription
Bicep CLI installed
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:
發現更多技能外掛,請訪問7w4.net。
Quick deploy (copy-paste one-liner):
az deployment group create --resource-group <rg> --template-file main.bicep --parameters @params/dev.json 這是一套Azure Bicep部署工具,質量中等偏上。文件清晰易懂,環境配置和部署流程說明完善,提供了多環境部署和多環境引數配置支援。主要不足是指令碼執行效率和安全規範有待提升,部分引數校驗邏輯不夠嚴謹。對於有Azure Bicep使用經驗的使用者來說基本夠用,新手使用者需要額外注意指令碼中的硬編碼路徑和引數填寫要求。