我想读取部署在 Azure 中的资源的元数据,例如:template.json 并创建 Azure 策略定义以遍历每个正在部署的资源的元数据,以对所有部署执行飞行前检查
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.4.63.48766",
"templateHash": "16811656036359979319"
}
},
"parameters": {
"tagNames": {
"type": "array"
}
}