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

Using Postman to Hit an API Management Endpoint with Subscription

In our previous posts, we created an App Service and an API Management in Azure. Let’s now use Postman to send a request to the Azure API Management endpoint. Go to the APIM and select the API. Under Settings, copy the Base URL: Now, in our case, we have /api/Customers to get all customers: So our URL is https://crmdevapim.azure-api.net/api/customers. Let’s open Postman and create this request. Click Send: We get a … Continue reading Using Postman to Hit an API Management Endpoint with Subscription

Backend service URL is not defined in Azure App Service

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 … Continue reading Backend service URL is not defined in Azure App Service

Adding Swagger OpenAPI to an ASP.NET Web API

In this post, we will add Swagger OpenAPI to an ASP.NET Web API project. Swagger OpenAPI is a way to document the capabilities of your API. We can do this in .NET by adding the Swashbuckle NuGet package. Let’s continue with our Web Api project we created earlier. We will open the project in Visual Studio and add the Swashbuckle.AspNetCore package: Click OK: Now open Startup.cs and go to ConfigureServices: We … Continue reading Adding Swagger OpenAPI to an ASP.NET Web API

How to Add API Management (APIM) to an Azure App Service

In this post, we will look at how to add Azure API Management (APIM) to an Azure App Service. We will follow on from our previous post where we created an Azure App Service. There are a couple of ways to create an APIM. First, browse out to your App Service. We will use the one we created earlier using ASP.NET Core. Under API, select API Management: Click Create New: … Continue reading How to Add API Management (APIM) to an Azure App Service

How to Check the Status of Azure Services and Regions

Microsoft publishes the status of its different Azure services and regions online. Let’s look at a couple of places to check. To check the status of Azure, go to: https://azure.microsoft.com/en-us/status/ From here, select your region and scroll to the type of service you would like a status on: To see a history of statuses, click on Status History: Another place to check is https://status.dev.azure.com/: Click to see Status History:  

How to Change the Theme in Azure Portal

To change the theme in Azure Portal, log into the portal at https://portal.azure.com and select the Settings icon in the top right: Here you will see the options to choose a theme, and the high contrast theme settings: Selecting a theme will change it right away: