10 Oct 2023

Copy Between Azure File Share and Azure Blob Container with PowerShell


We recently had a requirement to provide a secure SFTP file area for one of our partners to transfer files. These files need to be copied between the SFTP area and an internal only file share for our internal systems to access.

We needed to find a secure way of providing the SFTP service with minimum exposure and risk to the organisation and with minimum configuration and upkeep of the solution. The solution should also be cloud first where possible to fit in with our IT strategy.

My solution to this problem was to use an Azure Functional App running PowerShell for the file copy, an Azure Blob Container to provide a managed SFTP service that has a minimal configuration overhead, and an Azure File Share configured to only allow our internal systems access.

2 Oct 2023

Perl to get Denco Aircon Status for Nagios


In my previous role working within the Infrastructure Team, one of my specialisms was monitoring using Nagios Core. The great thing about Nagios is that many different plugins exist to allow you to monitor just about anything you can think of, and if a plugin doesn't exist for what you want, its a very simple task to create your own plugin to do the job.

This is what I ended up doing in order to monitor the status of our Denco air conditioning units in our datacentre.

I modified some Perl code to scrape the web status information and alert based on the output.

You can get the code from my GitHub repository here.