Hi @AJO JOY ,
Thanks for reaching out to Microsoft Q&A.
“Connection to management endpoint failed with WebException: ConnectFailure: Unable to connect to the remote server,”
The error often stems from misconfigured network settings.
Here are a few things you can check:
- NSG Rules: Ensure that your Network Security Group (NSG) is allowing inbound traffic on port 3443 from the IP addresses encompassed by the ApiManagement service tag. This is crucial for the management traffic.
- Service Endpoints: Make sure that service endpoints for necessary Azure services (Azure SQL, Azure Storage, Azure Event Hubs, and Azure Key Vault) are enabled on the APIM subnet at the time of deployment.
- User-Defined Routes (UDRs): If you're using user-defined routes, verify that they are correctly set up to direct connectivity back to Azure by allowing the appropriate IP prefixes for the control plane traffic.
- Forced Tunneling: If forced tunneling is configured, it may be blocking the management traffic's symmetric route. You should consider setting up UDRs for the inbound IPs with the next hop type set to Internet to bypass any on-premises firewalls.
- Resource Provider Registration: Confirm that the Microsoft.Web resource provider is registered for your subscription. You can check this in the Azure Portal under your subscription settings.
- Deployment Validation: It can also be beneficial to deploy a VM inside the APIM subnet and test connectivity to the respective Azure services (like Azure Storage, SQL DB, etc.) to ensure everything is functioning as expected.
You can check out the relevant documentation for further reading:
- Common network configuration issues
- Connect to a virtual network using Azure API Management
- Troubleshooting API Management deployment
- IP addresses of API Management service in VNet
Hope this helps!
If the resolution was helpful, kindly take a moment to click on
and click on Yes for was this answer helpful. And, if you have any further query do let us know.