← 返回
开发者工具 中文

Azure Bicep Deploy

Deploy and validate Azure Bicep and ARM templates to manage resources and multi-environment setups, including Azure Container Apps configurations.
部署和验证 Azure Bicep 与 ARM 模板,管理资源及多环境配置,涵盖 Azure 容器应用配置。
junior-juarez-msft
开发者工具 clawhub v2.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 823
下载
💾 5
安装
1
版本
#latest

概述

Azure Bicep Deploy

Prerequisites (Required)

Before using this skill, ensure:

  1. Azure CLI installed

```bash

az --version

```

Install from: https://docs.microsoft.com/cli/azure/install-azure-cli

  1. Azure CLI authenticated

```bash

az login # Interactive login

az login --tenant # For specific tenant

az account show # Verify logged in

```

  1. Correct subscription selected (if multiple)

```bash

az account list # List subscriptions

az account set --subscription # Switch subscription

```

  1. Bicep CLI installed

```bash

az bicep install # Install Bicep

az bicep version # Verify installation

```

Or use built-in: az deployment group create auto-compiles Bicep

Deploy a Bicep File

az deployment group create \
  --resource-group <rg-name> \
  --template-file <path-to-bicep> \
  --parameters <params-file>.json

Deploy an ARM Template

az deployment group create \
  --resource-group <rg-name> \
  --template-file <path-to-arm.json> \
  --parameters <params-file>.json

Validate a Template (What-If)

az deployment group what-if \
  --resource-group <rg-name> \
  --template-file <path-to-bicep>

Validate Syntax Only (Bicep)

az bicep build --file <bicep-file>

Multi-Environment Deployments

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

Azure Container Apps

See references/container-apps.md for detailed Container App patterns including:

  • Basic container deployment
  • Ingress configuration
  • Scaling rules
  • revisions/versions

Create New Resources

When asked to create Azure resources via Bicep:

  1. Check if existing templates in references/ match your need
  2. For Container Apps: use the sample in assets/container-app/
  3. For other resources: generate using az bicep build-params --file or reference Azure QuickStart Templates

Scripts

Copy 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 个版本

  • v2.1.0 当前
    2026-03-19 13:59 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,181
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,799
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 324,162