An Azure service that provides cloud-scale job scheduling and compute management.
Hey Rahul,
it looks like your pool deletion is stuck in “Resizing” because the Batch service can’t finish tearing down all of the underlying resources. This usually happens when there are resource locks or leftover networking dependencies that block the deletion. Here’s what you can try:
- Check Activity Logs
- Go to your Batch account in the Azure portal → Activity log.
- Look for errors like “ScopeLocked” or messages about load balancers or NSGs being locked or in use.
- Remove Resource Locks
- If you see a “ScopeLocked” error on the resource group or the Batch account itself, remove that lock: • Portal: Resource group → Locks → Delete the lock • Or use Azure CLI/PowerShell to remove the lock.
- If you had a lock on extra networking resources (for example, the Azure-created load balancer), remove it from the virtual network’s resource group.
- Disassociate Batch-Created Networking Dependencies
- If your pool was in a virtual network, Azure automatically created a load balancer, public IP, and NSG.
- If the NSG is still attached to a subnet or another resource, go disassociate it: Virtual network → Subnets → Network security group → None.
- Once disassociated, the Batch service should be able to delete the NSG and finish removing the pool within ~20 minutes.
- Wait and Verify
- After unlocking and disassociating, wait about 20–30 minutes and refresh the portal.
- The pool should move from “Deleting” → “Deleted.”
If none of the above solves it, here are a few follow-up questions so we can drill down further:
• What exact error message do you see in the Activity log when the delete hangs?
• Do you have any locks on the resource group or the Batch account?
• Is the pool connected to a virtual network?
• Have you checked for locks on the load balancer or NSG in that VNet’s resource group?
• Did you try removing/disassociating the NSG from any subnets?
Hope this helps you get that pool fully deleted!
Reference list
- Troubleshoot pool stuck in resizing mode after deletion: https://learn.microsoft.com/en-us/troubleshoot/azure/general/azure-batch-pool-deletion-failure#scenario-2-batch-pool-is-stuck-in-resizing-mode-after-an-attempted-pool-deletion
- Remove resource lock on resource group: https://learn.microsoft.com/en-us/troubleshoot/azure/general/azure-batch-pool-deletion-failure#cause-1a-batch-account-resource-group-is-locked
- Remove resource lock on batch account: https://learn.microsoft.com/en-us/troubleshoot/azure/general/azure-batch-pool-deletion-failure#cause-1b-batch-account-is-locked
- Remove locks on extra networking resources: https://learn.microsoft.com/en-us/troubleshoot/azure/general/azure-batch-pool-deletion-failure#symptom-2a
- Disassociate batch-created dependencies (like NSG): https://learn.microsoft.com/en-us/azure/virtual-network/manage-network-security-group#associate-or-dissociate-a-network-security-group-to-or-from-a-subnet-or-network-interface
Note: This content was drafted with the help of an AI system. Please verify the information before relying on it for decision-making.