Backend service URL is not defined in Azure App Service

3 Comments

In this post, we will look at the error “Backend service URL is not defined” when making a request to an ASP.NET Web API through API Management.

I have a .NET Core Web Api with Swashbuckle / Swagger. The Web Api is published to an Azure App Service, and an Azure API Management has this API loaded.

We can run a test message using the APIM:

We get a 500 Internal Server Error:

To examine the response, click on Trace and Backend:

We see the message “Backend service URL is not defined”:

To resolve this, in APIM go to the App Service. Under Settings, in the Web Service URL field, enter the URL of the app service:

Now when you run this, you will get a 200 response back:

 

THANKS FOR READING. BEFORE YOU LEAVE, I NEED YOUR HELP.
 

I AM SPENDING MORE TIME THESE DAYS CREATING YOUTUBE VIDEOS TO HELP PEOPLE LEARN THE MICROSOFT POWER PLATFORM.

IF YOU WOULD LIKE TO SEE HOW I BUILD APPS, OR FIND SOMETHING USEFUL READING MY BLOG, I WOULD REALLY APPRECIATE YOU SUBSCRIBING TO MY YOUTUBE CHANNEL.

THANK YOU, AND LET'S KEEP LEARNING TOGETHER.

CARL

https://www.youtube.com/carldesouza

 

ABOUT CARL DE SOUZA

Carl de Souza is a developer and architect focusing on Microsoft Dynamics 365, Power BI, Azure, and AI.

carldesouza.comLinkedIn Twitter | YouTube

 

3 Responses to Backend service URL is not defined in Azure App Service

Leave a Reply

Your email address will not be published. Required fields are marked *