Unable to delete resource / resource group

Vinit Kumar 0 Reputation points Microsoft Employee
2023-04-06T09:58:11.73+00:00

I am using free subscription and I recently created 2 resource in a resource group. Now I am trying to delete the resource it doesnt delete. I also tried deleting resource group, it doesnt delete. I tried from command prompt also but no help. Here is the log

Executed delete command on 1 selected items
Succeeded: 0, Failed: 1, Canceled: 0.
Error details
CassandraDemo: Gateway authentication failed for 'Microsoft.DocumentDB'. Diagnostic information: timestamp '20230406T092734Z', tracking id '369b57bc-01c7-4d71-8504-707c692ac2cf', request correlation id '645ba680-32c3-44fb-a7d0-361ff0083b5f'. (Code: GatewayAuthenticationFailed)
28 minutes ago
Failed to delete subnet
Failed to delete subnet 'default'. Error: Subnet default is in use by nc-CassandraDemo-9a3ea7422f394ab39ed9daddf8315742/providers/Microsoft.Network/networkInterfaces/|providers|Microsoft.Compute|virtualMachineScaleSets|cassandra-jump|virtualMachines|0|networkInterfaces|cassandra-jump-nic/ipConfigurations/cassandra-jump-ipconfig and cannot be deleted. In order to delete the subnet, delete all the resources within the subnet. See aka.ms/deletesubnet.
28 minutes ago
Delete resource group krutam failed
Failed to delete resource group krutam: Deletion of resource group 'krutam' did not finish within the allowed time as resources with identifiers 'Microsoft.Network/virtualNetworks/demoVN,Microsoft.DocumentDB/cassandraClusters/CassandraDemo' could not be deleted. The provisioning state of the resource group will be rolled back. The tracking Id is '618c231c-1224-4669-bef6-760f68eda143'. Please check audit logs for more details. (Code: ResourceGroupDeletionTimeout) Subnet default is in use by /subscriptions/cceb9ea7-6d29-4bc5-9606-dea18740fc25/resourceGroups/nc-CassandraDemo-9a3ea7422f394ab39ed9daddf8315742/providers/Microsoft.Network/networkInterfaces/|providers|Microsoft.Compute|virtualMachineScaleSets|cassandra-jump|virtualMachines|0|networkInterfaces|cassandra-jump-nic/ipConfigurations/cassandra-jump-ipconfig and cannot be deleted. In order to delete the subnet, delete all the resources within the subnet. See aka.ms/deletesubnet. (Code: InUseSubnetCannotBeDeleted, Target: /subscriptions/5f4cfb26-d43c-4bf2-9780-6664e36ff164/resourceGroups/krutam/providers/Microsoft.Network/virtualNetworks/demoVN)
See more
35 minutes ago
Executed delete command on 1 selected items
Succeeded: 0, Failed: 1, Canceled: 0.
Error details
CassandraDemo: Gateway authentication failed for 'Microsoft.DocumentDB'. Diagnostic information: timestamp '20230406T085616Z', tracking id 'efce9f4f-1bc4-4751-a77b-d5adb740b729', request correlation id '3a295f49-66a4-468d-8ee5-94b409d5391d'. (Code: GatewayAuthenticationFailed)
59 minutes ago
Experiencing authentication issues
The portal is having issues getting an authentication token. The experience rendered may be degraded.

Additional information from the call to get a token:
Extension: Microsoft_Azure_Billing
Resource: signup.portal
Details: code: 503, statusText: error, message: ajaxExtended call failed, stack: AjaxError: ajaxExtended call failed
    at r.t (https://portal.azure.com/Content/Dynamic/5WwZNpAbPkRe.js:73:895)
    at new r (https://portal.azure.com/Content/Dynamic/yG0vZcNYZQiY.js:18:1270)
    at t.reject (https://portal.azure.com/Content/Dynamic/yG0vZcNYZQiY.js:41:16652)
    at Object.
See more

Azure Resource Mover
Azure Resource Mover
An Azure service used for moving multiple resources between Azure regions.
212 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Bhardwaj, Rajeev 105 Reputation points
    2023-04-06T20:59:16.5+00:00
    • sign out
    • clear browser cache
    • signin
    • try deleting now

    It should help

    0 comments No comments

  2. Ryan Hill 26,241 Reputation points Microsoft Employee
    2023-04-12T03:08:28.61+00:00

    Hi @Vinit Kumar ,

    I really think the long operation just timed out. The long operation was more than likely caused by the resources that could not be deleted due to dependencies. This line here is what I"m referring to Failed to delete resource group krutam: Deletion of resource group 'krutam' did not finish within the allowed time as resources with identifiers 'Microsoft.Network/virtualNetworks/demoVN,Microsoft.DocumentDB/cassandraClusters/CassandraDemo' could not be deleted. The provisioning state of the resource group will be rolled back. The tracking Id is '618c231c-1224-4669-bef6-760f68eda143'. Please check audit logs for more details. (Code: ResourceGroupDeletionTimeout) Subnet default is in use by /subscriptions/cceb9ea7-6d29-4bc5-9606-dea18740fc25/resourceGroups/nc-CassandraDemo-9a3ea7422f394ab39ed9daddf8315742/providers/Microsoft.Network/networkInterfaces/|providers|Microsoft.Compute|virtualMachineScaleSets|cassandra-jump|virtualMachines|0|networkInterfaces|cassandra-jump-nic/ipConfigurations/cassandra-jump-ipconfig and cannot be deleted. In order to delete the subnet, delete all the resources within the subnet. See aka.ms/deletesubnet. (Code: InUseSubnetCannotBeDeleted, Target: /subscriptions/5f4cfb26-d43c-4bf2-9780-6664e36ff164/resourceGroups/krutam/providers/Microsoft.Network/virtualNetworks/demoVN) Your VNet can't be deleted because it's still associated with a NIC that's tied to a VM. Refer to aka.ms/deletesubnet for more information. The appliance/resource that's associated with cassandra-jump-nic, start by deleting the IP address associated with the NIC and any other VMs that may be attached. Remove the VNet integration of CassandraDemo. Once that's removed, then you can try deleting the entire resource group.


  3. Vinit Kumar 0 Reputation points Microsoft Employee
    2023-04-12T03:49:13.1633333+00:00

    I think the issue I still dont understand. My balance/limit of this subscription was exhausted and I tried multiple ways to delete the resource group / individual resource but nothing worked. I was even not able to open my resources. The moment credit got added to my account, I was able to open the resource and delete them. It sounds weird, but resource group is deleted now. Thanks everyone

    0 comments No comments