Azure pipeline not waiting for ARM template deployment to complete

Paul Gartner 6 Reputation points
2020-07-14T04:51:44.82+00:00

I have a pipeline task AzureResourceManagerTemplateDeployment@3 configured to deploy an ARM template and output some variables to be used by the next step in the pipeline process.
What's happening is the task completes immediately and the pipeline moves on to the next task which subsequently fails. The AzureResourceManagerTemplateDeployment@3 task is reported complete in azure pipelines in about 5-8 seconds, while the underlying ARM template take more than 45 seconds to complete.
I would not expect the AzureResourceManagerTemplateDeployment@3 task to continue until the ARM template has completed deploying.

Are there any know issue with AzureResourceManagerTemplateDeployment@3, I have also tried AzureResourceGroupDeployment@2 which has the same issue.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,513 questions
{count} votes

3 answers

Sort by: Most helpful
  1. BhargaviAnnadevara-MSFT 5,446 Reputation points
    2020-07-14T07:26:36.447+00:00

    @PaulGartner-4036,

    Thanks for reaching out. Azure DevOps and its services are not supported on the Microsoft Q&A platform.

    Requesting you to post your query on Developer Community instead, where the Azure DevOps Team and community are active and answering questions.

    0 comments No comments

  2. Vladimir Gusarov 81 Reputation points MVP
    2023-04-06T16:14:00.61+00:00

    Can you check Azure deployment status? Depending from deployment scope you specified for the task, it might be in the resource group or subscription deployments.

    0 comments No comments

  3. nguyen xuan hai 101 Reputation points
    2023-08-31T07:53:29.2533333+00:00

    We faced the same issue and we found that it lacks permission related to deployment (Microsoft.Resources/deployments/*).

    After adding this permission to the service principal that is used in DevOps pipeline, the problem was resolved.

    Please try it.

    0 comments No comments