The 403 error occurs due to a misconfiguration in the Azure Traffic Manager setup. Azure Traffic Manager is a DNS-based load balancer that directs traffic to your services. When using Traffic Manager with a gRPC endpoint, you must ensure that the Traffic Manager endpoint uses the default domain of the container app and not the custom domain.
To resolve this issue: 1. Configure the CNAME record for your gRPC service domain (e.g., grpc.contoso.co) to point to the Traffic Manager domain (e.g., grpc.trafficmanager.net). 2. Set up a TXT record for the container app's custom domain validation. 3. Ensure that the Traffic Manager endpoint is configured with the default domain of the container app, not the custom domain.
By following these steps, you should be able to eliminate the 403 error and successfully use Traffic Manager with your gRPC endpoint.
Resources:
- Azure Traffic Manager Overview
- Configure Traffic Manager with Endpoints
- Custom Domain and SSL in Azure App Service
- Map domains with Traffic Manager
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.