azure-resource-manager - 将 Deployment template.json 和 parameters.json 转换为 AzureRM 对象
问题描述
如果给我一个 template.json 和一个相应的 paramaters.json 文件,有没有办法生成一个 JSON 文件,其中所有引用都已解析并评估了 ARM 函数?
例如,如果我在第一个片段中有类似下面的内容,有没有办法生成一个 JSON 可以完全评估 ARM 函数以获得第二个片段?
{
"apiVersion": "2018-10-01",
"type": "Microsoft.Network/publicIPAddresses",
"name": "[variables('publicIPAddressName')]",
"location": "[parameters('location')]",
"properties": {
"publicIPAllocationMethod": "[variables('publicIPAddressType')]",
"dnsSettings": {
"domainNameLabel": "[parameters('dnsLabelPrefix')]"
}
}
},
{
"apiVersion": "2018-10-01",
"type": "Microsoft.Network/publicIPAddresses",
"name": "ProdPublicIPAddress",
"location": "North Europe",
"properties": {
"publicIPAllocationMethod": "Static",
"dnsSettings": {
"domainNameLabel": "Test"
}
}
},
解决方案
推荐阅读
- javascript - 使用 API 获取未定义的响应
- kubernetes - 如何重命名 HA Kubernetes 集群中的主节点?
- http2 - 启用 HTTP 2 以防止请求走私 - IIS 7 和冷融合 2016
- javascript - 未捕获的 RangeError:超出最大调用堆栈大小。jQuery 错误
- git - Azure devops,如何通过“工作项提及”将工作项链接到 git 提交?
- python - 如何在窗口中创建一个新的 Tkinter 窗口框架?
- spring-batch - Spring Batch removeJobExecutions 失败
- memory-leaks - 循环中的特征提取似乎导致pytorch中的内存泄漏
- python - Python pandas:根据条件从多个数据框中访问数据
- servicestack - 无法用 ormlite 刷新物化视图