I am using devops pipeline to build and deploy my java azure function project to azure portal. The build is successful in pipeline. However the deployment to azure fails with following error.
The pipeline script is as follows:
variables: serviceConnectionToAzure: AzServiceConnection appName: shopifysmsapphook trigger: - main pool: vmImage: ubuntu-16.04 steps: - task: Maven@3 inputs: mavenPomFile: "pom.xml" publishJUnitResults: true testResultsFiles: "**/surefire-reports/TEST-*.xml" javaHomeOption: "JDKVersion" jdkVersionOption: "1.11" mavenVersionOption: "Default" mavenAuthenticateFeed: false effectivePomSkip: false sonarQubeRunAnalysis: false - task: PublishPipelineArtifact@1 inputs: targetPath: "$(Pipeline.Workspace)" publishLocation: "pipeline" - task: AzureFunctionApp@1 displayName: Azure Function App deploy inputs: azureSubscription: '$(serviceConnectionToAzure)' appType: 'functionApp' appName: '$(appName)' package: '$(Pipeline.Workspace)' deploymentMethod: 'zipDeploy'