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

问题描述 投票:0回答:1

我想知道是否可以使用Azure ARM模板输出部分创建自定义输出bu

  {
  "$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 azure-resource-manager arm-template
1个回答
0
投票

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

您可能可以用this之类的东西做您想要达到的目标。

© www.soinside.com 2019 - 2024. All rights reserved.