How to upload files to Azure Blob Storage using Powershell via the REST API

When I need to upload files on Azure Blog Storage the tools that I generally use are Storage Explorer (installed on my workstation or the web version included in the portal) or AzCopy, but within a script, I would prefer using Azure RestAPI.
Before writing this article I searched similar blogs around this topic, the most interesting one was written by Roger Zander’s blog, the only difference is that I’ve defined a function and validated the parameters, using splatting it is a bit more elegant to read in my opinion. Continue reading “How to upload files to Azure Blob Storage using Powershell via the REST API”

PowerShell: When and Where Writing Logs Matters

powershell-when-and-where-writing-logs-matters

In the early days of my career, I had the epiphany that “Best Practices” really do not exist or apply to most scenarios. It should be all driven by logic and common sense in the end. What makes much more sense is to find the standard /common practice compares to the mythological unicorn of “best practices” and see if has value and benefit in a specific case. Continue reading “PowerShell: When and Where Writing Logs Matters”