I need to get a key to access code for HttpTrigger https://mydomain.azurewebsites.net/api/registration?code=Key
. In Azure function 1x, with Url https://$functionAppName.scm.azurewebsites.net/api/functions/admin/masterkey
will return my master key like {"masterKey":"ehp9f***************************"}
but, in Azure Function 2x this way isn't work. How can I connect HttpTrigger in PowerShell with Azure Function 2x. Another SCM Api or syntax instead of (Invoke-RestMethod -Uri https://mydomain.scm.azurewebsites.net/api/functions/admin/masterkey -Headers @{"Authorization"=$accessToken;"If-Match"="*"} ).Masterkey
in Azure function 1x.
Thanks for your support