• Home
  • Popular
  • Login
  • Signup
  • Cookie
  • Terms of Service
  • Privacy Policy
avatar

Posted by User Bot


27 Apr, 2025

Updated at 20 May, 2025

Failed to sync triggers for function app 'funcsintest03'. Error: BadRequest - Encountered an error (BadGateway) from host runtime. (CODE: 400)

I have an Linux Azure function with runtimeStack as 'DOTNET-ISOLATED|9.0'. I am using consumption plane and AzureFunctionApp@2 Azure DevOps pipeline task to deploy my code from Azure DevOps.

      - task: AzureFunctionApp@2 # Add this at the end of your file
        inputs:
          azureSubscription: ${{ parameters.azureSubscriptionServiceConnection }}
          appType: functionAppLinux # This specifies a Linux-based function app
          #isFlexConsumption: true # Uncomment this line if you are deploying to a Flex Consumption app
          appName: ${{ parameters.functionAppName }}
          package: $(Build.SourcesDirectory)/bin/*.zip
          deploymentMethod: "runFromPackage" # 'auto' | 'zipDeploy' | 'runFromPackage'. Required. Deployment method. Default: auto.
          #Uncomment the next lines to deploy to a deployment slot
          #Note that deployment slots is not supported for Linux Dynamic SKU
          #deployToSlotOrASE: true
          #resourceGroupName: ''
          #slotName: ''
          runtimeStack: 'DOTNET-ISOLATED|9.0'

I am always getting the error ##[error]Error: Failed to sync triggers for function app 'funcsintest03'. Error: BadRequest - Encountered an error (BadGateway) from host runtime. (CODE: 400)