首页 > 解决方案 > Azure ARM 模板 - 如何引用更改的资源参数

问题描述

这是我的代码示例,现在我的存储帐户的资源名称已从参数更改并添加了 -SA。我现在如何使用参数和 -SA 引用这个新值以在我的代码的其他地方重新使用?谢谢。

"resources": [{
        "name": "[concat(toLower(parameters('VNET-NAME')), '-SA')]",
        "type": "Microsoft.Storage/storageAccounts",
        "apiVersion": "2019-06-01",
        "location": "[resourceGroup().location]",
        "tags": {
            "displayName": "[variables('sa-name')]"
        },
        "sku": {
            "name": "Standard_LRS"
        },
        "kind": "Storage"
    },

标签: azureazure-template

解决方案


推荐阅读