From 08d43e4eb4a45e94eb0c5d655ffe7534733a98ad Mon Sep 17 00:00:00 2001 From: Heng Lu <79895375+ms-henglu@users.noreply.github.com> Date: Wed, 16 Oct 2024 15:35:17 +0800 Subject: [PATCH] `azurerm_kubernetes_cluster` - remove subnet lock (#27583) --- .../containers/kubernetes_cluster_node_pool_resource.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/internal/services/containers/kubernetes_cluster_node_pool_resource.go b/internal/services/containers/kubernetes_cluster_node_pool_resource.go index 2d7338158ea7..48a7a6304563 100644 --- a/internal/services/containers/kubernetes_cluster_node_pool_resource.go +++ b/internal/services/containers/kubernetes_cluster_node_pool_resource.go @@ -26,7 +26,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/locks" computeValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/compute/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containers/migration" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containers/parse" @@ -418,12 +417,6 @@ func resourceKubernetesClusterNodePoolCreate(d *pluginsdk.ResourceData, meta int if err != nil { return err } - - locks.ByName(subnetID.VirtualNetworkName, network.VirtualNetworkResourceName) - defer locks.UnlockByName(subnetID.VirtualNetworkName, network.VirtualNetworkResourceName) - - locks.ByName(subnetID.SubnetName, network.SubnetResourceName) - defer locks.UnlockByName(subnetID.SubnetName, network.SubnetResourceName) } id := agentpools.NewAgentPoolID(clusterId.SubscriptionId, clusterId.ResourceGroupName, clusterId.ManagedClusterName, d.Get("name").(string))