我正在尝试使用Azure ARM模板进行部署。具体来说,我正在将地图添加到集成帐户。我能够使用下面的模板成功部署架构(注意,该行的内容为“ uri”:“ URL To schema file”):
{
"comments": "Generalized from resource: '/subscriptions/e9cf2aa0-e157-48aa-b8b6-556da88ab8f8/resourceGroups/iNovaLogicAppsDev/providers/Microsoft.Logic/integrationAccounts/NewDevIntegrationAccount/schemas/sap_IDocOperation.ORDERS05.740.3.Receive'.",
"type": "Microsoft.Logic/integrationAccounts/schemas",
"name": "[concat(parameters('integrationAccount_name'), '/sap_IDocOperation.ORDERS05.740.3.Receive')]",
"apiVersion": "2016-06-01",
"scale": null,
"properties": {
"schemaType": "Xml",
"targetNamespace": "http://Microsoft.LobServices.Sap/2007/03/Idoc/3/ORDERS05//740/Receive",
"documentName": "Receive",
"contentLink": {
"uri": "URL To schema file",
"contentVersion": "\"0x8D62FD7300A25A5\"",
"contentSize": 2819,
"contentHash": {
"algorithm": "md5",
"value": "7AFgnaeT9yAPq/WpnV7TiA=="
}
},
"metadata": {
"fileName": null
},
"contentType": "application/xml"
},
"dependsOn": [
"[resourceId('Microsoft.Logic/integrationAccounts', parameters('integrationAccount_name'))]"
]
},
但是,相同的方法不适用于集成帐户映射。如果我尝试部署此(请注意,该行显示为“ uri”:“ URL到xsd文件”):
{
"comments": "Generalized from resource: '/subscriptions/e9cf2aa0-e157-48aa-b8b6-556da88ab8f8/resourceGroups/iNovaLogicAppsDev/providers/Microsoft.Logic/integrationAccounts/NewDevIntegrationAccount/schemas/sap_IDocOperation.MBGMCR03.740.3.ReceiveResponse'.",
"type": "Microsoft.Logic/integrationAccounts/schemas",
"name": "[concat(parameters('integrationAccount_name'), '/sap_IDocOperation.MBGMCR03.740.3.ReceiveResponse')]",
"apiVersion": "2016-06-01",
"scale": null,
"properties": {
"schemaType": "Xml",
"targetNamespace": "http://Microsoft.LobServices.Sap/2007/03/Idoc/3/MBGMCR03//740/Receive",
"documentName": "ReceiveResponse",
"contentLink": {
"uri": "URL to xsd file",
"contentVersion": "\"0x8D62F1873ED03FE\"",
"contentSize": 972,
"contentHash": {
"algorithm": "md5",
"value": "IH2gYZA2aR61SNZIrxOlZA=="
}
},
"contentType": "application/xml"
},
"dependsOn": [
"[resourceId('Microsoft.Logic/integrationAccounts', parameters('integrationAccount_name'))]"
]
},
我收到一条错误消息,指出地图[name]必须将'content'属性设置为有效字符串。我看了提供的示例,它们都在ARM temaplte中传递了映射文件的内容。一个例子在这里:
由于这些文件的大小,我不想在我的ARM模板中包含maps文件的内容。我宁愿通过我提供给脚本的uri来引用文件。有没有办法做到这一点?