microsoft / azure-pipelines-tasks

Tasks for Azure Pipelines
https://aka.ms/tfbuild
MIT License
3.43k stars 2.59k forks source link

[Question]: Increase request timeout for ARM validation #19659

Open scrocquesel-ml150 opened 4 months ago

scrocquesel-ml150 commented 4 months ago

Task name

AzureResourceManagerTemplateDeployment

Task version

3.236.1

Environment type (Please select at least one enviroment where you face this issue)

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

ubuntu-latest

Question

Since a few days we are experiencing a lot of error in our pipeline ending with a request timeout after 5 seconds. It fails both in Validate and Deployment mode (because deployment does a validation first)

Is it possible to increase this timeout ? 5 seconds seems to be too short

2024-03-19T16:24:50.2258507Z Starting template validation.
2024-03-19T16:24:50.2295092Z Deployment name is azuredeploy-xxx
2024-03-19T16:24:55.2437546Z ##[error]Check out the troubleshooting guide to see if your issue is addressed: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/azure-resource-group-deployment?view=azure-devops#troubleshooting
2024-03-19T16:24:55.2450903Z ##[error]Template validation failed. Error: "Request timeout: /subscriptions/xxx/resourcegroups/xxx/providers/Microsoft.Resources/deployments/azuredeploy-xxx/validate?api-version=2021-04-01".
sivetic commented 3 months ago

@scrocquesel-ml150 We have a similar issue with another task (kubectl) and have a case escalated with Microsoft. Can you try using ubuntu-20 agents, in our testing that seems to have resolved the issue. It seems to have suddenly started with ubuntu-22 v20240310 agents, though details have yet to be confirmed.

ETA: Alternately, the issue may be related to task update to Node v20.