Handing down the keys

Bulk Adding Owners to Azure App Registrations and Enterprise Apps with AZ CLI

Managing multiple Azure App Registrations and Enterprise apps can be overwhelming, especially when you need to add owners manually. To save time, I’ve created a PowerShell script that lets you bulk add owners to Azure App Registrations and Enterprise apps. This is useful when you have a list of users to assign as owners across several apps. VERY IMPORTANT SECURITY NOTICE: adding owners to app registrations and enterprise apps is a risky operation....

October 5, 2024 · 3 min · LPains
Image generated by ChatGPT based on post content

Sharp Cooking - How to upgrade Python Azure Functions from v1 to v2

For a while, I’ve been using Python Azure Functions to power the Sharp Cooking Backend API. When I first created the API, the v2 programming model was still in preview and not fully ready. Now that it’s generally available, I finally upgraded. The v2 model reduces boilerplate code and adds features that weren’t previously possible—such as streaming responses, which is great for LLM models. Here’s a quick overview of the process and what changed....

September 10, 2024 · 3 min · LPains
azdiff

Introducing azdiff: Simplifying Azure Environment Comparison

In the realm of cloud infrastructure, Azure offers a robust framework for managing resources through Infrastructure as Code (IaC) methodologies. However, even with the best IaC practices in place, managing and understanding changes across Azure app environments can be a daunting task. This is where the azdiff tool steps in to simplify the comparison process. azdiff is a dotnet global tool, thus, you will need .NET 8 or higher installed. To install azdiff, run the following command:...

December 10, 2023 · 2 min · LPains
Self destruct

Self destructing data with Cosmos DB

I am working on a share feature for Sharp Cooking that will allow users to share recipes online. This is the first time a feature will require storing data outside of the local app context, and Cosmos DB is a great option for implementing it. First, it provides a free tier that should be sufficient for my users. Second, Sharp Cooking already stores recipes as documents in the browser, so it should be easy to send the same data to Cosmos DB....

August 25, 2023 · 2 min · LPains
Cyber Security

Azure App Gateway Deployment with Bicep

Deploying an Azure App Gateway can be a daunting task, especially when creating a reusable template for it due to the verbosity of the template. In this post, I will describe how to create and execute a Bicep template for an externally visible web app with an Application Gateway. By the end of this post, the following requirements will be met: Web app hosted in App Service with Azure-provided certificate for TLS Web Application Firewall (WAF) with OWASP 3....

June 23, 2023 · 4 min · LPains