A new Powershell experience with Visual Studio Code

PowerShell is an amazing tool used heavily to manage a plethora of Windows and Microsoft services. With the release of the latest PowerShell as a cross-platform tool, this experience has been extended to Linux and MacOS as well. You can use PowerShell to do pretty much anything, from managing Windows OS features, to configuring SharePoint and SQL to executing maintenance tasks and even run code (.NET). Yes, that's right. Because PowerShell was built with code execution and extensibility in mind, you can easily import any .NET Framework APIs and work directly with them embedding C# code inside your scripts. In …[read more]


Introduction to Azure Functions Deployment Slots

Deployment slots have been an invaluable feature for Azure Web Apps for a long time. To find out how to create slots for Azure Web Apps, you can visit the official documentation here. So what makes deployment slots so useful? I summarize some of the benefits below but this is by no means the exhaustive list: Testing in Production - A/B Testing Hot deployments that allow deployment to production with no downtime UAT testing targeting a near live environment Easy roll out and roll back Full or incremental swapping DevOps integration with slots (VSTS deployment directly to slot) many …[read more]


DDD South West Retrospect

This is going to be a short post since I only managed to experience only part of the overall conference. Life and work commitments meant that I had to fly to Bristol later in the day, missing out on the speakers dinner. The dinner is way more than just food. In fact, I've noticed that I rarely pay any attention to the, otherwise tasty, food. That's because the speaker's dinner is an excellent opportunity to meet up with new speakers and catch up with old friends. These dinners also tend to run late in the night with the conversation moved …[read more]


Introducing the Serverless Framework for Azure Functions

The Serverless Framework is a new Open Source initiative that allows you to deploy auto-scaling, pay-per-execution, event-driven functions to some of the biggest cloud providers. At moment it only support AWS Lamda, Azure Functions and Apache OpenWhisk. However, this list is due to grow fast so watch this space. In this post, I'll show you how to us the Serverless Framework with Azure Functions so that you can create, run and deploy Functions easily, in effect providing an alternative 'DevOps story' around Functions. Install the Serverless Framework Fire up your command line of choice and install Serverless npm install -g …[read more]


Resolve NPM Access Denied Errors (Error: EACCES) in WSL

I came this issue (Error: EACCES) while I was trying to install an NPM package on my Windows Subsystem for Linux (WSL). It has to do with the way Node is installed on WSL so if you try to install NPM packages on the global level. To resolve this, you can remap the location that NPM modules are installed to one that you have full permission. This can easily be done by firing up you Bash window and typing the following: mkdir ~/.npm-new npm config set prefix '~/.npm-new' export PATH=~/.npm-new/bin:$PATH source ~/.profile You can now go …[read more]


Monitor Azure Web Application backups with Azure Functions

For most of your monitoring and alerting needs, Azure Monitor should be the tool of choice. It's made the whole process so much easier and streamlined while, for the first time, providing management through the portal. I've already blogged about various monitoring options here. However, there are a still few edge cases (not for long) for which Azure Monitor can't be the solution. In this instance, I needed a way to monitor and alert on failed backups on Azure Web Apps Azure Web Apps have this awesome feature that allows you to run backups on a schedule to ensure that …[read more]