我使用Arm模板部署了Azure功能.我需要在Powershell中部署Azure功能的功能键和主机密钥.目前我正在尝试从ARM模板的输出部分获取密钥
"outputs": {
"FunctionAppName": {
"type": "string",
"value": "[variables('functionAppName')]"
},
"Key": {
"type": "string",
"value": "[listKeys(resourceId('Microsoft.Web/sites', '[variables('functionAppName')]'),'2015-08-01').keys]"
}
Run Code Online (Sandbox Code Playgroud)
}
我尝试了不同的组合,但它失败了.有没有办法在Powershell中检索密钥?