我正在使用 Azure DevOps Pipeline 在 Azure 监控中部署用于警报和工作簿的 ARM 模板。问题是,每次pipeline运行的时候,很多资源都提到是Pipeline。它们的状态是“被忽略”,因此它们不会改变,但每次都会被提及。我不明白为什么会提到它们,如果有一天它们会被改变,这会破坏整个基础设施怎么办? 我正在使用订阅范围来部署 ARM 模板。 它是这样的:
Resource and property changes are indicated with these symbols:
= Nochange
* Ignore
The deployment will update the following scope:
Scope: /subscriptions/***/resourceGroups/***
= microsoft.insights/metricalerts/***
* Microsoft.Compute/diskEncryptionSets/***
* Microsoft.Compute/sshPublicKeys/***
* Microsoft.ContainerService/managedClusters/***
* Microsoft.Insights/scheduledqueryrules/***
* Microsoft.ManagedIdentity/userAssignedIdentities/***
* Microsoft.Network/privateDnsZones/***
* Microsoft.Network/privateDnsZones/***/virtualNetworkLinks/***
* Microsoft.Network/privateDnsZones/***/virtualNetworkLinks/***
* Microsoft.OperationalInsights/workspaces/***
* Microsoft.OperationsManagement/solutions/ContainerInsights(***)
* microsoft.insights/metricalerts/***
...
* microsoft.insights/scheduledqueryrules/***
* microsoft.insights/scheduledqueryrules/***
* microsoft.insights/workbooks/***
* microsoft.insights/workbooks/***
Resource changes: 1 no change, 21 to ignore.
Finishing: ARM deployment plan
谢谢!
我对提到的 diskEncryptionSets、sshPublicKeys 和 privateDnsZones 特别困惑。它与警报和工作簿有什么关系?
最佳答案
被忽略的资源表示存在于部署范围内(在本例中是目标订阅内)但未在当前 ARM 模板中定义的资源。
请参阅manual page on what-if deployments供引用。
在模板中定义但符合模板的资源将显示为NoChange。
关于azure - ARM 部署提到了 Azure 资源的大范围,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75203567/