Introduction
When you create a virtual network in Azure, you divide it into smaller parts called subnets. Subnets help organize and secure your network by grouping resources together and controlling traffic between them.
When you want to separate your web servers from your database servers within the same network.
When you need to apply different security rules to different groups of resources.
When you want to control traffic flow between parts of your application.
When you want to allocate IP address ranges efficiently inside your virtual network.
When you want to connect your network to other networks or services securely.