Error AnotherOperationInProgress during vNet creation with NSG and subnets

Porsche Me 131 Reputation points
2021-02-05T01:36:40.273+00:00

We are getting AnotherOperationInProgress when deploying our vNet that has couple of Subnets & NSGs.
This isn't a consistent repro, attached is our ARM template 64302-phivnetazuredeploytemplate.txt

Any help is appreciated.

az deployment group create --parameters .\Parameters\Demo2\WUS2\phi.azuredeploy.parameters.json --template-file .\Phi\Templates\PHI.vnet.azuredeploy.template.json  
  
  
Deployment failed. Correlation ID: 813a1d21-99c0-4c97-99f5-71946c65f77a. {  
  "error": {  
    "code": "AnotherOperationInProgress",  
    "message": "Another operation on this or dependent resource is in progress. To retrieve status of the operation use uri: https://management.azure.com/subscriptions/914dfbe2-db05-4c67-a75e-df16481f9ecb/providers/Microsoft.Network/locations/westus2/operations/9350c5b7-b384-41e1-9b92-d624427c61e0?api-version=2020-05-01.",  
    "details": []  
  }  
}  
Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,130 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,167 questions
Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
1,942 questions
{count} vote

2 answers

Sort by: Most helpful
  1. Bechir Gharbi 301 Reputation points
    2021-02-05T08:20:01.687+00:00

    Hi,
    Check the order of resources deployment in your ARM template to avoid any conflict, ie you've to create your private link before KeyVault.

    1 person found this answer helpful.

  2. SaiKishor-MSFT 17,201 Reputation points
    2021-02-11T19:47:27.567+00:00

    @Porsche Me Please refer to this link with similar issue- https://stackoverflow.com/questions/62424299/anotheroperationinprogress-when-deploying-multiple-azure-virtual-networks-and-su

    Resolution- Stumbled on this one when creating a set of subnets with the copy learn.microsoft.com/en-us/azure/azure-resource-manager/templates/… syntax, one has to use serial mode otherwise the conflict will arise - you cannot deploy multiple subnets in parallel.

    1 person found this answer helpful.