Validation subnet address range under vnet address range through c#


  • I have a scenario which is that I have created a virtual network on azure with a address range in CIDR block e.g. then a default subnet needs to be created which have a address range in similar CIDR block e.g. I need to validate that subnet address range should resides in virtual network address range means i need to validate that is in range of or not?

    I search it over the internet but I get only IP address validation under CIDR block but what i want is to validate CIDR block is in range under other CIDR block like the validation done on azure portal while creating virtual networks and subnets. Any help would be appreciated. Thanks

    Thursday, April 20, 2017 4:03 PM