【发布时间】:2017-09-01 09:10:18
【问题描述】:
我已经使用 Arm 模板部署了 Azure 功能。我需要在 Powershell 中部署 Azure Function 的 Function Key 和 host Key。 目前我正在尝试从 ARM 模板的输出部分获取密钥
"outputs": {
"FunctionAppName": {
"type": "string",
"value": "[variables('functionAppName')]"
},
"Key": {
"type": "string",
"value": "[listKeys(resourceId('Microsoft.Web/sites', '[variables('functionAppName')]'),'2015-08-01').keys]"
}
}
我尝试了不同的组合,但失败了。 有没有办法在 Powershell 中检索密钥?
【问题讨论】:
-
是的。它将错误请求作为错误抛出
标签: powershell azure