AzOps icon indicating copy to clipboard operation
AzOps copied to clipboard

Azure DevOps - first run 'AzOps - Push' pipeline - next first Pull then Push's EVERYTHING

Open daltondhcp opened this issue 3 years ago • 0 comments

Discussed in https://github.com/Azure/AzOps/discussions/667

Originally posted by mikewo-dc July 5, 2022 I have encountered this a few times now - enough to wonder what is happening - Can anyone help explain and/or validate the below?

The scenario is:

I have an Enterprise Scale Landing Zone with management group structure, policy definitions and numerous policies assigned directly or via the ESLZ initiatives.

I deploy AzOps-Accelerator in Azure DevOps - as per https://github.com/azure/azops/wiki/azure-pipelines

I run the "Azure - Push" pipeline first - as per instruction "trigger the first push, which will in turn trigger the first pull to fetch the existing Azure environment"

*** The resulting abovementioned "first pull" triggers ANOTHER Push, and this Push goes on forever, attempting to redeploy everything...

... until the Azure DevOps hosted agent reaches the run time limit of 60 minutes. The pipeline job errors out on the Deploy step.

Is this expected behaviour? And if so why does the first Pull trigger a Push of everything?

Appreciate any help. I am happy to try reproduce and log an issue if this is not expected.

daltondhcp avatar Jul 12 '22 12:07 daltondhcp