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]

Deep dive into Azure Blob Storage

SimpleTalk invited me once again to write about Azure and this time the focus was on Storage. Azure Storage is a vital piece for most operations on Azure and it supports a wide variety of services such as VMs, Azure SQL Service etc. In this post, I do a deep dive into Azure Blob Storage, its different components and the various way you can interact with it. You can read all about it here: …[read more]

Monitoring applications and infrastructure on Microsoft Azure

Microsoft's cloud service, Azure, provides a plethora of services to choose from when it comes to running your solutions on the cloud. By now, most of us are aware of the PaaS, IaaS and SaaS variances. The image below provides a good summary, in case you're new to this. The trick with the cloud is how to choose the right service or combination of services to make your solution as flexible, scalable and performant as possible while cutting down on costs. However, if there's one thing you need to be careful about is that you should avoid the "lift and …[read more]

Exploring the Azure CLI 2.0 with Windows Subsystem for Linux

The new Azure CLI 2.0 was released a few weeks ago so it was time for me to upgrade and take it for a spin. I blogged a while ago on how to install the "old" CLI which was based on Node.js but this is a whole new beast so let's get started. This is a true 2.0 in so may ways! Installing I decided to install it on my WSL because I can take advantage of my very limited Linux skills and showcase to customers the capabilities of W10 and Linux in one box. Unlike its …[read more]

Azure Functions improvements with WebPack

Azure Functions are great for creating solutions built on top of serverless architecture. In the past I've talked about the various deployment options but today I want to focus on performance improvements. The team recently introduced pre-compiled Functions which, in my mind, is a fantastic enhancement. Because it promotes good design by allowing you to decouple your implementation from the Function call itself and make your code a lot more testable. Some may digress because this may also cause Function code to explode in size. My answer to this is that you need to show restrain and keep your functions …[read more]