question

RishabhTayal-6850 avatar image
0 Votes"
RishabhTayal-6850 asked ·

Java azure function project with spring boot deployment to azure portal

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
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

PramodValavala-MSFT avatar image
0 Votes"
PramodValavala-MSFT answered ·

@RishabhTayal-6850 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)



·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.