Script failed with exit code: 1

Satish A 6 Reputation points
2022-03-18T01:40:16.977+00:00

I am using the following Azure CLI to deploy a web App
deploy command is timing out with error ##[error]Script failed with exit code: 1

even though I have the following settings have no impact on the execution
`
failOnStandardError: false
ignoreLASTEXITCODE: true
powerShellIgnoreLASTEXITCODE: true

`

- task: AzureCLI@2 displayName: 'Azure Web App Deploy ${<!-- -->{ parameters.env }}: $(azure_app_name) to slot- ${<!-- -->{ parameters.slotname }}' enabled: true inputs: azureSubscription: $(subscription) scriptType: 'bash' scriptLocation: 'inlineScript' failOnStandardError: false ignoreLASTEXITCODE: true powerShellIgnoreLASTEXITCODE: true inlineScript: | echo "updating config" az webapp config appsettings set --resource-group $(azure_resource_group) \ --name $(azure_app_name) $(slot) $(deploy_trace_level) \ --settings SCM_DO_BUILD_DURING_DEPLOYMENT=true \ WEBSITE_SWAP_WARMUP_PING_PATH=/version \ WEBSITE_WARMUP_PATH=/version \ WEBSITE_ENABLE_SYNC_UPDATE_SITE=false \ website_node_default_version=$(node_version) echo "deploying to web app" az webapp deploy --timeout $(deploy_timout) --clean true $(deploy_trace_level) \ --async true --restart true --resource-group $(azure_resource_group) \ --name $(azure_app_name) $(slot) \ --type zip --src-path \ $(System.DefaultWorkingDirectory)/$(app_archive) continueOnError: true

complete error
`
deploying to web app
ERROR: An error occured during deployment. Status Code: 500, Details: <html><head><title>500 - The request timed out.</title></head><body> <font color ="#aa0000"> <h2>500 - The request timed out.</h2></font> The web server failed to respond within the specified time.</body></html>

[debug]Exit code 1 received from tool '/bin/bash'

[debug]STDIO streams have closed for tool '/bin/bash'

[debug]task result: Failed

[error]Script failed with exit code: 1

`

any help is appreciated

Thanks
Satish

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,933 questions
{count} votes