AGENT SKILL

bicep-best-practices

Designs and reviews Azure Bicep modules for safe, parameterized, reusable infrastructure. Use when adding or changing `.bicep` files.

License 许可
Apache-2.0
最近更新
2026-07-13
Stars
★ 0
Forks
0

01 前言 Front Matter

name
bicep-best-practices
description
Designs and reviews Azure Bicep modules for safe, parameterized, reusable infrastructure. Use when adding or changing `.bicep` files.

03 SKILL.md 正文

Bicep Best Practices

Principles

  • Use modules for reusable resource groups of responsibility.
  • Parameterize environment-specific values.
  • Use explicit allowed values for environment and SKU where practical.
  • Keep secrets in Key Vault or deployment-time secure parameters.
  • Avoid hard-coded subscription/resource identifiers.
  • Use outputs only for non-secret values needed by later stages.
  • Add diagnostics, identity, network and RBAC deliberately.
  • Prefer least privilege.

Structure

  • main.bicep composes modules.
  • modules/ contains focused modules.
  • parameters/ or .bicepparam files hold environment inputs.
  • Naming and tags should use the azure-naming skill.

Review checks

  • [ ] No secrets in source.
  • [ ] Parameters are typed and constrained.
  • [ ] Modules are cohesive.
  • [ ] Existing resources are referenced explicitly.
  • [ ] RBAC/network changes are intentional and documented.
  • [ ] Deployment is safe for the target environment.

04 同仓库更多 Skills