Hi @Loc Mai ,
Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I understand that you would like to know about blocking VPN access to remote users based on UPN
I had reached out internally to our Product Group and they have suggested the workaround which you are aware of.
For vWAN, we have a preview feature called Multipools support for User VPN. This allows you to assign users IP addresses from specific address pools based on the P2S Users’ authentication credentials. To restrict certain users from accessing Azure resources, you could perform the following steps:
- Specify which Azure Active Directory Group Object IDs you want to associate to a specific user group
- Specify which IP address pools you want to associate to this user group
- Deploy a Firewall (Azure Firewall or 3rd party NVA Firewall like Check Point/Fortinet) in the hub, and configure this firewall to block access to Azure resources for these IP addresses
Conceptual information and tutorials on how to configure user groups are in the links below:
- About user groups and IP address pools for point-to-site User VPN - Azure Virtual WAN | Microsoft Learn
- Configure user groups and IP address pools for point-to-site User VPNs - Azure Virtual WAN | Microsoft Learn
Though this method has a bit of management overhead, we must note that this method of assigning IP to users provide us with other features, mainly, Routing and allow/block to specific VNet ranges with the help of a NVA or Azure Firewall.
While with direct blocking, we can only allow/block the entire VNet range.
However, should you feel we need this feature for environments with minimal workload, you can always raise a feedback item in Azure Feedback Hub
I hope this helps.
Please let us know should there be any follow-up queries on this, I shall be glad to address them.
Cheers,
Kapil
----------------------------------------------------------------------------------------------------------------
Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.