azure - 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"
},
解决方案
推荐阅读
- java - 我的数组只打印 0s--java
- logstash - 用于 XML 输入 Logstash 的数组时的条件拆分
- c - 返回一个未初始化的、最终未使用的结构是未定义的行为吗?
- php - Row Count 输出 - 在表中的行数前面
- regex - 如何替换与 egrep 匹配的较大字符串中的子字符串?
- python - Foursquare API 在 Python 中返回零 checkinsCount 签入计数,但在在线试用界面中返回非零值
- android - 向 cordova.exec 函数添加额外的参数
- php - PHP - 访问对象属性 $id 时出错
- css - 打印时,Vuetify 应用程序为不可见元素保留空间
- c++ - 带有 tinyobjloader 的 OpenGL 顶点数组对象