← 返回 Skills 市场
junior-juarez-msft

Azure Bicep Deploy

作者 junior-juarez-MSFT · GitHub ↗ · v2.1.0 · MIT-0
cross-platform ⚠ suspicious
397
总下载
0
收藏
2
当前安装
5
版本数
在 OpenClaw 中安装
/install azure-bicep-deploy
功能描述
Deploy and validate Azure Bicep and ARM templates to manage resources and multi-environment setups, including Azure Container Apps configurations.
使用说明 (SKILL.md)

Azure Bicep Deploy

Prerequisites (Required)

Before using this skill, ensure:

  1. Azure CLI installed

    az --version
    

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

  2. Azure CLI authenticated

    az login          # Interactive login
    az login --tenant \x3Ctenant-id>  # For specific tenant
    az account show   # Verify logged in
    
  3. Correct subscription selected (if multiple)

    az account list                           # List subscriptions
    az account set --subscription \x3Csub-id>   # Switch subscription
    
  4. Bicep CLI installed

    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 \x3Crg-name> \
  --template-file \x3Cpath-to-bicep> \
  --parameters \x3Cparams-file>.json

Deploy an ARM Template

az deployment group create \
  --resource-group \x3Crg-name> \
  --template-file \x3Cpath-to-arm.json> \
  --parameters \x3Cparams-file>.json

Validate a Template (What-If)

az deployment group what-if \
  --resource-group \x3Crg-name> \
  --template-file \x3Cpath-to-bicep>

Validate Syntax Only (Bicep)

az bicep build --file \x3Cbicep-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 \x3Crg>-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 \x3Crg> --template-file main.bicep --parameters @params/dev.json
安全使用建议
This skill appears to do what it claims: provide guidance and helper scripts for building, validating, and deploying Bicep/ARM templates via the Azure CLI. Before using it: (1) Review templates and parameter files for any hard-coded secrets or unexpected resource changes; (2) don't run the included PowerShell scripts without inspecting them—Invoke-Expression is used to execute constructed commands, which is normal for deploy scripts but can run unexpected commands if inputs are tampered with; (3) perform a 'what-if' first and validate templates locally (az bicep build / az deployment group what-if); (4) use a least-privilege Azure identity (service principal or scoped role) rather than a broad subscription-owner account for automated deploys; (5) verify container images and any referenced registries and avoid placing plaintext credentials in params files. If you need more assurance, provide the exact Bicep templates you plan to deploy and have them reviewed for resource and permission changes.
功能分析
Type: OpenClaw Skill Name: azure-bicep-deploy Version: 2.1.0 The skill bundle contains several PowerShell scripts (`deploy.ps1`, `validate.ps1`, and `bicep-build.ps1`) that utilize the `Invoke-Expression` cmdlet to execute Azure CLI commands. This implementation is highly vulnerable to shell command injection because it concatenates user-provided parameters (such as resource group names and file paths) directly into a command string without sanitization. While the scripts' capabilities are aligned with the stated purpose of Azure Bicep deployment, the use of unsafe execution primitives constitutes a significant security risk.
能力评估
Purpose & Capability
Name/description (Azure Bicep deployment, validation, multi-environment support and Container Apps) match the included SKILL.md, example parameter files, and PowerShell helper scripts. All required functionality is served by az/bicep CLI usage documented in the files; no unrelated services or credentials are requested.
Instruction Scope
Runtime instructions and scripts run az and bicep CLI commands and reference local params/templates only. They include Invoke-Expression to execute constructed PowerShell commands; this is expected for quick deploy scripts but means you should review templates/parameters before running to avoid executing commands built from untrusted input. Scripts reference local files (params/, references/) and standard az endpoints only.
Install Mechanism
No install spec and no code files that download or write binaries; this is instruction-only and therefore low install risk. The scripts may call 'az bicep install' if the user lacks the Bicep CLI, which uses the official Azure CLI mechanism.
Credentials
The skill declares no required environment variables or credentials. It does require the user to have an authenticated Azure CLI session (az login) and appropriate subscription permissions — which is proportional and expected for deployment operations. Parameter files contain placeholders for sensitive values (e.g., registry password) but the skill does not request or store secrets itself.
Persistence & Privilege
Skill is not always-enabled and is user-invocable; it does not attempt to modify other skills or persist credentials. Autonomous invocation is allowed (platform default) but not combined with other privilege escalations in this package.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install azure-bicep-deploy
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /azure-bicep-deploy 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.1.0
Prerequisites are now clearly detailed section for users. - Added an explicit "Prerequisites (Required)" section outlining Azure CLI/bicep installation, authentication, and subscription selection steps. - Moved and expanded prerequisite details from the short description into a new, easy-to-follow setup checklist. - Improved clarity on Azure CLI commands for login and subscription management. - No technical or command changes; documentation only.
v2.0.0
- Major update with new documentation and usage guidance. - SKILL.md rewritten for clarity, covering deployment, validation, multi-environment setup, and Azure Container Apps support. - Quick start section added with CLI command examples. - Step-by-step instructions for both Bicep and ARM templates. - References to scripts and sample patterns for common workloads included.
v1.1.0
- Expanded documentation with detailed usage instructions and best practices. - Added step-by-step guidance for deploying and validating both Azure Bicep and ARM templates. - Introduced sections for multi-environment deployments and Azure Container Apps workloads. - Provided example parameter file structure for dev/staging/prod setups. - Included references to ready-to-use scripts for deployment and validation tasks.
v1.0.1
Version 1.0.1 - No file changes detected in this release. - Functionality and documentation remain unchanged from the previous version.
v1.0.0
Initial release of azure-bicep-deploy. - Deploy and validate Azure Bicep (.bicep) files and ARM (JSON) templates to Azure. - Supports syntax validation, what-if preview, and multi-environment deployments through parameter files. - Includes examples and scripts for deploying Azure Container Apps and other common scenarios. - Provides PowerShell scripts for deployment, validation, and Bicep build workflows. - Documentation and usage examples included for quick startup.
元数据
Slug azure-bicep-deploy
版本 2.1.0
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 5
常见问题

Azure Bicep Deploy 是什么?

Deploy and validate Azure Bicep and ARM templates to manage resources and multi-environment setups, including Azure Container Apps configurations. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 397 次。

如何安装 Azure Bicep Deploy?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install azure-bicep-deploy」即可一键安装,无需额外配置。

Azure Bicep Deploy 是免费的吗?

是的,Azure Bicep Deploy 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Azure Bicep Deploy 支持哪些平台?

Azure Bicep Deploy 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Azure Bicep Deploy?

由 junior-juarez-MSFT(@junior-juarez-msft)开发并维护,当前版本 v2.1.0。

💬 留言讨论