I'm using AzureDevops to deploy Azure Function with time trigger. This is deployment yaml section:
- task: AzureFunctionApp@1
displayName: 'Deploy Function App initImporter'
inputs:
azureSubscription: AzureAutomationSP # Azure service connection
appType: functionApp
appName: $(appName)
package: $(System.ArtifactsDirectory)/**/*.zip
deploymentMethod: runFromPackage
Everything is ok, but App deploys directly to /wwwroot of Function App.
I need to manually trigger it according this guide - https://learn.microsoft.com/en-us/azure/azure-functions/functions-manually-run-non-http But, the question is that I don't have a subfolder in /wwwroot/{func name}, so I don't know how to build URL. When i deploy func manually, everything works. But i'm stuck with invoking app from /wwwroot.
az functionapp function show --resource-group MyResourceGroup --name MyFunctionAppName --function-name MyFunctionName also doesn't work, because i don't have "function-name"
P.S. Found quite similar unanswered question - How to change azure web app default deployment directory from WWWROOT to WWWROOT/webapps?
There could be two options, deploy to subfolder or invoke directly from site/wwwroot