Insufficient Subnet IPS

Jomon John 0 Reputation points
2025-08-19T08:47:12.09+00:00

Hi,

We have 2 AKS clusters Dev & QA with the same configuration with the same subnet range \22

Both clusters are of the same SKU but QA utilizes more IP than Dev and results in insufficient IP . Max pod size is 60 for both.

Is there a way to check if there are any IP getting orphaned from the subnet and anyway to check this ?

Please let me know if its possible to have a quick call ?

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
{count} votes

2 answers

Sort by: Most helpful
  1. Rajesh Swarnkar 911 Reputation points
    2025-08-19T10:52:52.8033333+00:00

    Is there a way to check if there are any IP getting orphaned from the subnet and anyway to check this ?

    In Azure Vnet, if any Private IPv4 which is not being used or gets released after a resource is destroyed (such as a VM or NIC), becomes available in the Vnet itself.

    You can check the resources connected to Vnet in the Blade menu > VNet > Settings > Connected Devices.

    Note, that Azure Subnet reserves +5 IPv4 for the internal working (per subnet). so plan the number of subnets. The more the subnet more the IPs get wasted.

    0 comments No comments

  2. Ankit Yadav 410 Reputation points Microsoft External Staff Moderator
    2025-08-25T12:03:06.78+00:00

    Hello Jomon John

    You could compare subnet usage from both QA and Dev VNet details to see if there are more IP address assigned to it, this will give you the count of the IPs assigned to QA vs Dev.

    If you want to see the NIC name you can remove wc -l from the below az-cli query and see the resources attached and then compare both results to see what kind of resources QA subnet is having more than the Dev subnet.

    az network vnet subnet show \  
     --resource-group <your_resource-grp_name> \  
     --vnet-name <your_VNet_name> \ 
    --name <your_subnet_name> \ 
    --query "ipConfigurations[].id" 
    -o tsv | wc -l
    

    Reference article: https://learn.microsoft.com/en-in/cli/azure/network/vnet/subnet?view=azure-cli-latest#az-network-vnet-subnet-show

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.