創建模板時,是否可以使用常量字符串連接數組的每個元素?以下是我創建的參數和我嘗試創建的資源。Arm模板:使用常量值連接數組中的每個元素
"parameters": {
"servicesNames": {
"type": "array",
"defaultValue": [
"test-api-content",
"test-svc-content"
]
}
}
{
"apiVersion": "2016-03-30",
"type": "Microsoft.Network/publicIPAddresses",
"name": "[concat(parameters('servicesNames'),'pip')]",
"location": "[resourceGroup().location]",
"copy": {
"name": "PIPaddresscopy",
"count": "[length(parameters('servicesNames'))]"
},
"tags": {
"displayName": "PublicIPAddress"
}
}
我想資源名稱的輸出與
「測試API-contentpip」
我如何過收到以下錯誤
創建語言函數'concat'提供的參數無效。 或者都不參數必須是一個數組
請建議我如何可以連接元素的每個值