Azure Bicep 与 ARM 模板的比较

标签 azure azure-bicep

我读到了一些关于 Azure Bicep 的内容,我觉得这是新的东西 -

Azure 资源管理器和 ARM 模板采用 JSON 语法编写,使用起来可能很麻烦。 Azure Bicep 是一种域特定语言 (DSL),它提供了对 Azure 资源管理器和 ARM 模板的透明抽象,支持更清晰的代码语法,更好地支持模块化和代码重用。 Azure Bicep 为使用 ARM 模板 JSON 编写 Azure IaC 提供了一些改进。

我想了解 ARM 模板和 Azure Bicep 之间的比较,例如这两者的优点和缺点、局限性和用例。

最佳答案

我认为official GitHub repository因为二头肌几乎有您在问题中提到的所有答案。

一些摘录:

Bicep is a Domain Specific Language (DSL) for deploying Azure resources declaratively. It aims to drastically simplify the authoring experience with a cleaner syntax, improved type safety, and better support for modularity and code re-use. Bicep is a transparent abstraction over ARM and ARM templates

How is life better with Bicep?

  • Simpler syntax when compared to equivalent JSON
  • [...]

Known limitations

  • No support for single-line object and arrays (i.e. ['a', 'b', 'c'])
  • [...]

FAQ

Is this ready for production use? Yes. As of v0.3, Bicep is now supported by Microsoft Support Plans and Bicep has 100% parity with what can be accomplished with ARM Templates. As of this writing, there are no breaking changes currently planned, but it is still possible they will need to be made in the future.

更新:更新了摘录,因为它现已准备好投入生产。

关于Azure Bicep 与 ARM 模板的比较,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63866449/

相关文章:

azure - 如何为 Azure 媒体服务 v3 编码空音轨?

使用 Azure 网站和类似网站托管 iOS 企业应用程序

Azure 突触 : Merge command with the identity column in target table is not working

azure - 在 Bicep 部署中的 AppService 上设置 `customDomainVerificationId` 属性没有效果

Azure 应用程序配置 - 使用二头肌有条件地创建功能标志

c# - 尝试向 Azure 通知中心注册 Xamarin 应用程序时出现未经授权的异常

azure - 宇宙数据库 : Find the index of an item in an array

azure - 为 Application Insights 设置诊断设置

azure - 我在 ADO 管道中使用 Azure Bicep 生成了资源。需要创建一个新的管道,用代码填充资源。不知道如何

azure - 将 Azure 中二头肌上的资源的自动缩放设置为自动(预览)