My python file is in Azure devops repository. I am trying to deploy it to the azure function app and execute the py file. I already building up an service connection "testing" to connect the resource group. My code is following.
steps:
- task: AzureFunctionApp@1 displayName: 'Azure Function App Deploy: api' inputs: azureSubscription: testing appType: functionAppLinux appName: api package: '$(System.DefaultWorkingDirectory)' runtimeStack: 'DOCKER|microsoft/azure-functions-dotnet-core3.0:3.0' startUpCommand: 'func azure functionapp publish $(functionAppName) --no-bundler'
However, i encounter error ##[error]Error: Failed to sync triggers for function app 'api'. Error: BadRequest - Encountered an error (ServiceUnavailable) from host runtime. (CODE: 400)