Configuring Virtual Applications with Azure App Services and APIM

In this post, we will look at how to configure virtual applications with App Services and API Management (APIM) in Azure. Let’s continue with the example here, where we created the CarlCRMAPI app service using .NET Core. Go to https://portal.azure.com and select the App Service. Then go to Configuration->Path Settings->Virtual Path: We see the path is set to wwwroot: Under Overview, stop the service: Let’s head over to Kudu: Go … Continue reading Configuring Virtual Applications with Azure App Services and APIM

How to Create a Web API App using ASP.NET Core with App Insights

In this post, we will look at how to create an ASP.NET Core Web Application and host it in Azure with Application Insights. First, let’s open Visual Studio and create a new ASP.NET Core Web Application project: Give the project a name: And select API as the type: We see the project in VS below: Press F5 to run the app. Click Yes if you see the message below: And click … Continue reading How to Create a Web API App using ASP.NET Core with App Insights

How to Install Postman for Windows

The Postman Chrome extension is being deprecated and replaced with Postman for Windows. To install it, head over to https://www.getpostman.com/downloads/ and click Download: We will download the Windows 64-bit app. Click to open the exe: From here, the Windows app will install and open:  

Swagger Error Ambiguous HTTP method for action and Failed to load API definition

In this post, we will look at a Swagger error “System.NotSupportedException: Ambiguous HTTP method for action” and “Failed to load API definition”. These errors can occur when you add are using multiple methods on the same HTTP verb, such as POST. The error looks like this when you browse to Swagger: And in Visual Studio, you will see the error reported in the Output  System.NotSupportedException: Ambiguous HTTP method for action. … Continue reading Swagger Error Ambiguous HTTP method for action and Failed to load API definition

Updating Swagger in an Azure API Management Service

In this post, we will look at how to update Swagger in an Azure API Management service. Let’s continue from this previous example, where we created an Azure App Service. Our Swagger for this app service looks like this: If we go to our APIM in Azure, let’s add in this code. Click on swagger.json: We see the JSON. Get the URL: Paste it into the APIM Open Specification: We see … Continue reading Updating Swagger in an Azure API Management Service

Updating an Azure App Service through Kudu

In this post, we will update an Azure App Service using Kudu. First, go to https://portal.azure.com and select the Azure App Service to update. Then go to Advanced Tools, and Go: You may be prompted to log in. If you are, download the Publish Profile: You are now in the Kudu SCM portal. Go to Debug Console, then CMD: Backup the folder that you are deploying to, e.g. wwwroot: Click … Continue reading Updating an Azure App Service through Kudu

How to Secure an Azure App Service with Azure AD Authentication

In this post, we will look at how to secure an Azure App Service with authentication by using Azure Active Directory. Go to https://portal.azure.com and select an App Service. We will use one we created earlier. Select Authentication / Authorization: Set App Service Authentication to On: Select Azure Active Directory. Note the other options – Facebook, Google, Twitter etc: We see: Let’s use Express setup. We will call our app CarlCRMAPIADApp: … Continue reading How to Secure an Azure App Service with Azure AD Authentication

Adding App Insights to an Azure App Service

In this post, we will look at how to add Azure App Insights into an App Service. Log into the Azure portal at https://portal.azure.com/ and select your App Service, then go to the Application Insights menu option. Click Turn on Application Insights: We see “Your app will be connected to an auto-created Application Insights resource: CarlCRMAPI Instrumentation key will be added to App Settings. This will overwrite any instrumentation key value in … Continue reading Adding App Insights to an Azure App Service

Using the Developer Portal (Legacy) in Azure API Management

In this post, we will look at the Developer Portal (Legacy) for Azure API Management. Browse to your APIM in Azure and click on the link: On selecting this, we get to a developer portal: We see our APIs. Select one: We see our operations. Select one and click Try It: We can select a Subscription Key and click Send to send a request: We get a 200 Response back. … Continue reading Using the Developer Portal (Legacy) in Azure API Management

Using Products in Azure API Management

In this post, we will look at using Products in API Management. Products let you “group APIs, define terms of use, and runtime policies”. To use products, go to APIM and select Products: We see 2 products – Starter and Unlimited: If we open Starter, we see this product has a rate limit of 5 calls per 60 seconds: The Unlimited policy does not contain this: Let’s create a new … Continue reading Using Products in Azure API Management