小编giv*_*p__的帖子

为什么在二头肌中不推荐使用“dependsOn”?

Microsoft记录了隐式和显式依赖关系的目的。其中显式依赖项使用“dependsOn”。但有人提到这种方法的用例很少。

可以对以下内容进行一些澄清:

MS 的示例

resource dnsZone 'Microsoft.Network/dnszones@2018-05-01' = {
  name: 'demoeZone1'
  location: 'global'
}

resource otherZone 'Microsoft.Network/dnszones@2018-05-01' = {
  name: 'demoZone2'
  location: 'global'
  dependsOn: [
    dnsZone
  ]
}
Run Code Online (Sandbox Code Playgroud)

引用

部署后,您无法查询在dependsOn元素中定义了哪些资源。

假设“otherZone”是一个dependsOn元素,它仍然可以使用符号名称进行查询。

我错了吗?如果是的话,这意味着什么the dependsOn element

azure azure-deployment azure-bicep

5
推荐指数
1
解决办法
5062
查看次数

标签 统计

azure ×1

azure-bicep ×1

azure-deployment ×1