In adding the built-in Authentication support to an Azure App Services, I ran into a challenge where I kept getting a 401 Status Code whenever I called an API endpoint. The first thing after setting up Azure Active Directory as my Identity Provider, I used Postman to call the oauth2 token endpoint to get a…
Category: App Services
Adventures with Bicep: How to Create an App Service for Containers
I wanted to create the following Azure resources: Azure Container Registry App Service Plan App Service The App Service would need to support Linux containers. I have been doing a lot with Bicep, with the following bicep file as my first attempt: When I ran my script the first time, it wasn’t setup for containers,…
Adventures in Azure: Imperative Deployment of an App Service and Authentication with Azure Active Directory
I am a big fan of deploying Azure resources using an imperative approach. In this example I wanted to create an App Service that used Azure Active Directory, without having to add any code, e.g. Startup.cs. I will use both Azure PowerShell and Azure CLI. This raises a good question, why mix Azure PowerShell and…
Adventures with Azure: Security, Azure App Services and Azure API Management
In previous article we looked at how to secure an Azure Function with Azure API Management, in an effort to only allow resources within the Azure tenant access. Could the same thing be done with a Web Api hosted in App Services? Surprisingly, it was just as easy to implement. You setup Express Auth through…