I have a bicep template that creates a function app in a dedicated module. I would like out the function app key from the module. Anyone know how I can get the function key?
I can't find it in the list of properties:
I have a bicep template that creates a function app in a dedicated module. I would like out the function app key from the module. Anyone know how I can get the function key?
I can't find it in the list of properties:
If you would like to retrieve the default host key, you can use the listkeys function:
param functionAppName string
resource functionApp 'Microsoft.Web/sites@2018-11-01' = {
name: functionAppName
...
}
output defaultHostKey string = listkeys('${functionApp.id}/host/default', '2016-08-01').functionKeys.default