Connect to a C# WebApi deployed on App Platform

  • Posted December 19, 2020
  • Docker

I’ve been able to deploy a C# .net 5 WebApi using Docker on App platform. At the end of the deployment I get an error but there are no errors in the logs so I think it’s a false alarm as the app shows Healty.

The question is… how can I connect from another app to this WebApi webservices? I understand the App use dynamic Ip but there should be some way and maybe an article describing this Many thanks


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I’m getting through the issues. I believe the WebApi was not configured to listen from I added the following line to configure it in Program.cs .UseUrls(“”, “”) and now I got an error in the deployment logs saying the ssl certificate is not found. I’m going to find now a way to fix also that one somehow. Thanks

In the “Deployments” all attempted deployments had failed. If I look at the details/logs, there are no errors. This is the last deployment log I have

myselflog-api | 22:36:36 2020-12-19 22:36:36.0450| INFO|App start: MySelfLog.Api myselflog-api | 22:36:37 Hosting environment: Production myselflog-api | 22:36:37 Content root path: /app myselflog-api | 22:36:37 Now listening on: http://[::]:80 myselflog-api | 22:36:37 Application started. Press Ctrl+C to shut down.

Once the app has been successfully deployed, the App Platform will display a URL for your application. If App Platform is reporting the build was successful, but the deploy failed that generally means your program either quit immediately or wasn’t reachable on the configured port. The Dockerfile you posted in comments has an EXPOSE directive on port 5001 which App Platform will respect. Verify your application is listening on that port. If that

The Logs tab will display logs for active applications. If your application has failed, try looking at the “Deployments” tab, clicking Details, and scrolling down to deploy logs.

If neither of those provides insight, contact support. They will be able to review your applications and may be able to provide some insight.