Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Dynamic Access to Azure Functions Host Keys without KUDU
$functionAppBaseUri = "https://$functionAppName.azurewebsites.net/admin"
$functionName = "test1"
$functionKeysEndpoint = "/functions/$functionName/keys"
$functionKeysUri = $functionAppBaseUri + $functionKeysEndpoint
$adminTokenHeader = @{ "Authorization" = "Bearer " + $adminBearerToken }
$functionKeys = Invoke-RestMethod -Method Get -Uri $functionKeysUri -Headers $adminTokenHeader
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment