Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,908 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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'
@Rishabh Tayal Based on this issue, some valid scenarios for this error are
But either of the above aren't you case, you could try either