Application Gateway - CanceledAndSupersededDueToAnotherOperation issue
See original GitHub issueWe have an Application Gateway that we’re using with several teams. Obviously, we have setup several CI/CD pipelines (with using the AZ CLI) that deploy our resources and creates our entrypoint for the Application Gateway.
We have started to notice that when we run several commands against the gateway (at the same time), we get the following error:
ERROR: (Canceled) Operation was canceled.
Code: Canceled
Message: Operation was canceled.
Exception Details: (CanceledAndSupersededDueToAnotherOperation) Operation PutApplicationGatewayOperation (6cc97f54-b83d-46cd-83eb-be3b71a87b39) was canceled and superseded by operation PutApplicationGatewayOperation (f1138d5e-3e2c-4592-b178-b9655c5e1033).
Code: CanceledAndSupersededDueToAnotherOperation
Message: Operation PutApplicationGatewayOperation (6cc97f54-b83d-46cd-83eb-be3b71a87b39) was canceled and superseded by operation PutApplicationGatewayOperation (f1138d5e-3e2c-4592-b178-b9655c5e1033).
Returncode: 1
We’ve tested this and it seems to be that indeed, the first request gets cancelled, which ends in a failed pipeline and no entrypoint created for the Application Gateway. This keeps us from being able to run our pipelines at the same time, since it often ends in an error. We’ve been running these pipelines for the last few years, but haven’t noticed this behaviour before.
The az cli commands that we’re using are all part of the az network application-gateway
endpoints, for example:
az network application-gateway address-pool create
az network application-gateway probe create
I would expect that I would be able to add/update several listeners/backend pools/etc for the gateway at the same time, without the first operation being cancelled.
So the question we have is:
Did something change with these calls? Is this the expected behaviour? And could someone explain why this is/should be the case?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:17 (5 by maintainers)
Top GitHub Comments
Any updates on this issue?
I just came across this. I still believe there is an issue. I am trying to create an application gateway using the cli and it runs for about 2 minutes and then gets cancelled. I am running it manually and there are no other operations being sent. When looking at the deployment details in the resource group I find I get the same error posted above. This was a single create request that generated this error.
"statusMessage": "{\"status\":\"Canceled\",\"error\":{\"code\":\"ResourceDeploymentFailure\",\"message\":\"The resource operation completed with terminal provisioning state 'Canceled'.\",\"details\":[{\"code\":\"Canceled\",\"message\":\"Operation was canceled.\",\"details\":[{\"code\":\"CanceledAndSupersededDueToAnotherOperation\",\"message\":\"Operation PutApplicationGatewayOperation (c274d748-3495-4a91-b6d7-0b9d76fc4102) was canceled and superseded by operation PatchApplicationGatewayOperation (236ea644-bb1c-43b8-b915-cd6beb13a31b).\"}]}]}}",