32 bit container app in Azure

How to deploy Windows x86 .NET 8 app as a container in Azure

If you’re deploying a Windows x86 (32-bit) .NET app, you’re probably used to hosting it on a VM with IIS. While deploying the same app as a container is possible, it’s not straightforward. This post will walk you through deploying a 32-bit .NET 8 app as a container in Azure using Azure App Service. TLDR; Find the code here: github. Creating the Dockerfile The first step is to create a Docker image for the app....

December 8, 2024 · 5 min · LPains
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