The docs are a little lite on examples of Azure Functions using Azure Storage Blobs, so I took a couple of hours and created a few more examples that I will share in this article. The code can be found at https://github.com/mattruma/MJR061. You will first want to create the resources in Azure, follow the instructions…
Adventures with Blazor: Login and Logout Events
Ever wanted to do something after a user logs in or logs out of your Blazor App? Surprisingly, it fairly simple to do. In VS Code I created a Blazor WebAssembly project that uses Azure ADB2C for authentication. Once scaffolded, I navigated to the Authenticate.razor page in the Pages folder. The RemoteAuthenticatorView component supports two…
Adventures with Logic Apps: Key Vault and Managed Identities
Trying use Key Vault and Managed Identities in your Logic App? Then check out this excellent article by Eldert Grootenboer at https://blog.eldert.net/retrieve-azure-key-vault-secrets-from-logic-apps-using-managed-identity/.
Adventures with Azure API Management: Add JSON Property in Set-Body
I have a policy on all my operations in Azure API Management to validate a JWT Token and extract the sub Claim, which I store in a userId variable that can be used in other policies. I have an operation called Organization Add that calls an Azure Function to add an organization to the database….
Adventures with Azure API Management: Shared Headers and Postman
I use Postman for testing my API calls to Azure API Management. In each of my requests I need to pass a Ocp-Apim-Subscription-Key header. In this header I provide my subscription key for my API provided by Azure API Management. Normally I would do this for each request. What if I need to change the…
Adventures with Blazor: Accessing Claims in a Razor Page
With Blazor Web Assembly officially released I decided to take one of my side projects and write the front end in Blazor. I was able to wire up Azure AD B2C for authentication. What I wanted to do next was to take a look at the Claims that were available, I knew how to do…
Adventures in Azure: Curbside Pickup Sample App
With all that is going on with COVID-19 and the impact that it is having on retailers, I took a couple of days and wrote a curb-side app that would allow customers to notify a retailer, or any vendor for that matter, that they had arrived to pick-up their order. Please note, this is an…
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 DevOps: .azcli Files to .sh
I am building a pipeline for deploying my application, the first thing I needed to do was deploy my Azure resources. I have a tendency to be more imperative with my deployment strategy, using Azure PowerShell and Azure CLI over Azure Resource Management (ARM) templates. I use Visual Studio Code to code my azure-pipelines.yml file,…
Adventures with Cosmos: Get Primary Connection String with PowerShell
When it comes to deploying my infrastructure to Azure I prefer an imperative approach over a declarative approach so I starting to work a lot with Azure CLI and Azure PowerShell. That being said, I am working on an Web App which will be deployed to an App Service in Azure. When I deploy the…