Retrieve the host keys from an azure function app

后端 未结 6 1697
梦如初夏
梦如初夏 2020-12-01 19:03

I am trying to script an environment using the Azure cli. I have created a few function apps and would like to add a host key or at least retrieve the default one that is cr

6条回答
  •  时光取名叫无心
    2020-12-01 19:50

    If you just want to get the keys and don't need to automate the authentication process:

    Get-AzResource -Name RESOURCE-NAME | Invoke-AzResourceAction -Action host/default/listkeys -Force
    

提交回复
热议问题