Configure Azure Cloud Shell to use a profile hosted on GitHub

CLI

You may have noticed that you can run the Azure Cloud Shell without the portal as a separate component on https://shell.azure.com/ The shell is really handy since it can be used from everywhere. Today I want to show you how you can load a remote profile that is hosted on GitHub in the Azure Cloud Shell.… Continue reading Configure Azure Cloud Shell to use a profile hosted on GitHub

Rename Azure Storage Blob using PowerShell

CLI

At the time of writing this, there is no API to rename an Azure Storage blob in one operation. You have to copy the blob and delete the original one after the copy process completes. You can vote for the feature here: Rename blobs without needing to copy them Until then you can use my convenience Rename-AzureStorageBlob… Continue reading Rename Azure Storage Blob using PowerShell

Using Azure Key Vault in ASP.NET Core 2.0 with the options pattern

The best way to store secrets in your app is not to store secrets in your app Almost every web application needs some kind of secrets like a SQL Database connection string or the primary key of a Storage Account to communicate with external services. Certainly, we don't store these secrets within our source code… Continue reading Using Azure Key Vault in ASP.NET Core 2.0 with the options pattern

Web.config for hosting an Angular application on Azure Web App

If you host an Angular application on Microsoft Azure you probably want to define a mime map for .json and .woff / .woff2 files to get rid of the console errors. Also to enable client-side routing we have to add a rewrite rule. This is how my web.config looks like: <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer>… Continue reading Web.config for hosting an Angular application on Azure Web App

Determine whats wrong with your Azure Web / API App deployment

Azure

Sometimes a deployment goes wrong and instead of the actual app you get a message like this: An error occurred while starting the application. .NET Core 4.6.26020.03 X86 v4.0.0.0 | Microsoft.AspNetCore.Hosting version 2.0.1-rtm-125 | Microsoft Windows 10.0.14393 | Need help? To see whats going wrong we have to enable logging: Go to the Kudu environment… Continue reading Determine whats wrong with your Azure Web / API App deployment