You are encountering the error message "Failed to save virtual network gateway. Error: The number of vpn client root certificates for virtual network gateway exceeds the maximum allowed count 20. Please specify total certificates within limit and retry" because there is a design limitation in Azure that restricts the number of VPN client root certificates to a maximum of 20. This limit is documented in the Azure subscription service limits and is a hard limit which cannot be increased.
To resolve this issue, you need to ensure that the total number of root certificates does not exceed this limit. You can either remove some existing certificates or consolidate them to stay within the allowed number. For more detailed information on the limits and how to manage certificates, please refer to the following documentation:
Resources:
Hope this helps. If you have any follow-up questions, please let me know. I would be happy to help.
Please do not forget to "Accept the answer" and "up-vote" wherever the information provided helps you, as this can be beneficial to other community members.