使用CopyIndex()在Azure ARM模板中创建输出

时间:2019-12-24 18:54:10

标签: azure azure-resource-manager arm-template

我想知道是否可以使用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'),'}')]"
        }
}

}

1 个答案:

答案 0 :(得分:0)

我认为这是不可能的,取决于您要实现的目标,您可以做各种事情来获得期望的结果。在这个特定示例中,我看不到要点,您要达到什么目的?

您可以使用this之类的东西来完成您想要达到的目标。