使用 CopyIndex() 在 Azure ARM 模板中创建输出
Create output in Azure ARM template with CopyIndex()
我想知道是否可以使用 Azure ARM 模板输出部分创建自定义输出
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "",
"apiProfile": "",
"parameters": { },
"variables": { },
"functions": [ ],
"resources": [ ],
"outputs": {
"customedata1": {
"type": "string",
"value": "[concat(parameters('NameArray')[copyIndex()],'\"'',', variables('CustomData'),'}')]"
}
}
}
我认为这是不可能的,这取决于你想要实现的目标,你可以做各种事情来获得想要的结果。我看不出这个例子有什么意义,你想达到什么目的?
您也许可以通过 .
之类的方式实现您想要实现的目标
我想知道是否可以使用 Azure ARM 模板输出部分创建自定义输出
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "",
"apiProfile": "",
"parameters": { },
"variables": { },
"functions": [ ],
"resources": [ ],
"outputs": {
"customedata1": {
"type": "string",
"value": "[concat(parameters('NameArray')[copyIndex()],'\"'',', variables('CustomData'),'}')]"
}
}
}
我认为这是不可能的,这取决于你想要实现的目标,你可以做各种事情来获得想要的结果。我看不出这个例子有什么意义,你想达到什么目的?
您也许可以通过