Microsoft Azure logo

How to refresh all Az CLI subscriptions?

This article explains how to “reactivate” all of your accounts stored in your az account by refreshing your sessions. You might need this if you suddenly run into a script that needs to iterate all of your subscriptions without you being there to sign in to each one of them. Having a recently active session for each will help, and you can run your massive script unattended overnight or something…Continue reading How to refresh all Az CLI subscriptions?

Azure Key Vault logo

How to update from deprecated Microsoft.Azure.Services.AppAuthentication to new and shiny Azure.Security.KeyVaults.Secrets?

So, a while ago I posted about a fairly simple way to write your code for fetching secrets (and other confidential stuff) from Azure Key Vault in such a way, that it would work the same way both in Azure and on your local dev box. I find this pretty important, as it reduces the need for weird workarounds and fallbacks in your code, and at the same time enables…Continue reading How to update from deprecated Microsoft.Azure.Services.AppAuthentication to new and shiny Azure.Security.KeyVaults.Secrets?

How to add an user or group to multiple Azure resources at once?

This article describes a solution to an age-old question of mine: how can I add an Azure Active Directory object – like a security group – to multiple resource groups at once? I’ve had to do this multiple times, and manual work takes quite a while. And who likes multiple manual steps? To be fair, this article could also be called something like: “Using Azure CLI to spend a lot…Continue reading How to add an user or group to multiple Azure resources at once?

Everything is broken (a delicious lego meme)

How to fix a Logic App deployment that failed with the error “ApiNotFound”?

This article explains a quick and dirty fix when you get an error somewhat like “ApiNotFound” when you’re deploying an Azure Logic App from a template. This seems to be a very typical hurdle to run into when you’re trying to deploy a PowerAutomate Flow you’ve exported. I guess despite being built on the same platform, Flow developers took some liberties and the migration is not quite as painless as…Continue reading How to fix a Logic App deployment that failed with the error “ApiNotFound”?

"This is fine" - a fine meme, I mean.

How to fix “LinkedAuthorizationFailed” when deploying an Azure Logic App?

This article explains one possible fix to “LinkedAuthorizationFailed” when you’re deploying a Logic App from an Azure Automation template. Maybe it’ll apply to other cases, too – but in my case, it helped me fix a broken template I had exported from Power Automate and was bringing into Logic Apps. Problem So, another fun issue to solve! The actual error you run into might be something along these lines: The…Continue reading How to fix “LinkedAuthorizationFailed” when deploying an Azure Logic App?

Elastic Premium plan? It's got potential.

How to change Azure Functions from Consumption to Premium Elastic plan?

Sometimes, you need to change the hosting model (or tier) for your resources on Azure. Maybe you’ve outgrown whatever you’ve originally selected, maybe you’ve got too much cash on your hands, or maybe you’re like me, and you get absolutely and completely fed up with the cold starts for your Azure Function apps on the Consumption plan and want to use the Premium Elastic plan instead. For these situations, you…Continue reading How to change Azure Functions from Consumption to Premium Elastic plan?

Say "Dependency Injection" one more time I DARE YOU

How to inject EF Core DbContext in an Azure Function

Ah, one more on the related topics of different configurations for your Azure Function apps. In this article, I will describe how you can configure the Entity Framework Core database context to be injected into your Azure Functions App. In my experience, this is a very typical and often-needed model to structure your Azure Functions. Therefore, while tooling and templates aren’t quite there, it’s worthwhile to document how to do…Continue reading How to inject EF Core DbContext in an Azure Function

Microsoft Azure logo

Enabling local cache for an Azure App Service

This article explains one easy way for you to improve the performance and uptime of your Azure App Service. I’ll explain a simple but kind-of-hidden and surprisingly badly documented feature – Azure App Service Local Cache, that is – which might make a huge difference. It sure did for me! Since it’s such a no-brainen, I’m kind of half expecting everyone else to already having known about this, but since…Continue reading Enabling local cache for an Azure App Service

Azure Functions runtime throws an "Insufficient memory to continue the execution of the program." error. What do?

How to resolve error “Insufficient memory to continue the execution of the program.” when debugging Azure Functions locally?

This article describes a solution to an error “Insufficient memory to continue the execution of the program.” I was debugging an Azure Function locally and ran into it – it stopped my Azure Function from starting at all. So, this is what I got: Insufficient memory to continue the execution of the program. Ohh… kay..? My development machines have plenty of RAM, surely enough to run an Azure Function! Hell,…Continue reading How to resolve error “Insufficient memory to continue the execution of the program.” when debugging Azure Functions locally?

AppInsights logo

How to fix weird “Production Breakpoints” errors in an Azure App Service?

This article describes a curious fix I found to an issue where Application Insights (seemingly) crashes your Azure App Service, leaving behind interesting, yet non-descriptive errors in the Application Event Logs. The actual symptoms might be your Azure app service just timing out with no errors being surfaced on the front-end. Frustrating. Problem Does your Azure App Service’s event log look like this? Full of “Production Breakpoints” with weird errors…Continue reading How to fix weird “Production Breakpoints” errors in an Azure App Service?