Java azure function project with spring boot deployment to azure portal

Rishabh Tayal 21 Reputation points
2021-02-23T20:25:23.547+00:00

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.

71249-screen-shot-2021-02-23-at-15408-pm.png

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'  
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,908 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pramod Valavala 20,656 Reputation points Microsoft Employee Moderator
    2021-02-24T05:31:55.037+00:00

    @Rishabh Tayal Based on this issue, some valid scenarios for this error are

    1. If there are multiple deployments happening at the same time
    2. If you are on the free tier and are running out of space

    But either of the above aren't you case, you could try either

    1. Restart the Web App (if possible)
    2. Scale Up/Down (if possible)
    3. Try Web Deploy (with the Azure App Service Deploy Task)
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.