When hosting applications on Azure App Service, it’s common to have a Web App (UI) that communicates with an API App (Backend).
In this article, we’ll explore the ways to check if your Azure App Services are communicating. Whether you’re debugging connectivity issues or verifying integration, these methods will help you confirm that your Web App and API are successfully interacting.
Using CURL or Invoke-WebRequest (PowerShell)
You can test the connectivity between the Web App and the API App by executing a request from the Web App’s Kudu Console.
Steps:
- Go to Azure Portal → Navigate to Web App Service.
- Under Development Tools, click Advanced Tools (Kudu) → Click Go.
- Click on Debug Console → CMD.
- Run the following command:
curl -v https://your-api-app.azurewebsites.net/api/test
Using PowerShell:
curl -v https://your-api-app.azurewebsites.net/api/test
If the API responds with a 200 OK, the Web App can communicate with the API. If it fails, check the firewall, networking, or authentication settings.
Keep Following – SharePointCafe.NET