Hello @Manchukonda Kranthi Kumar ,
Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
I understand that you would like to know which resources in Azure requires dedicated subnets and why. And if it is due to the autoscaling feature, then why virtual machine scale sets(uniform/flex) don't ask for a dedicated subnet.
'Dedicated' implies that only service specific resources can be deployed in this subnet and can't be combined with customer VM/VMSSs.
It is not due to auto-scaling. Auto-scaling is only considered for the subnet size and not if the subnet must be dedicated.
When you deploy a VPN gateway/Application gateway/Bastion/Firewall etc., gateway VMs, VMSS instances and specific services are deployed to their respective subnet. These gateway VMs/VMSS instances/services facilitating connectivity to the respective services are not exposed to the customer and are managed internally by Microsoft. And to avoid any conflict with these internal instances/services, these products impose a restriction on their subnet or requires a dedicated subnet.
You can see the below doc with a list of products/services which needs a dedicated subnet:
Kindly let us know if the above helps or you need further assistance on this issue.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.