My Profile Photo

${Graham Beer} = 'blog'


Infrastucture Engineer, PowerShell Developer, WinOps and Automation


  1. The PowerShell scriptblock

    The scriptblock is a fundamental feature of the PowerShell language. Understanding the different ways to use scriptblocks is essential to for the advanced PowerShell developer. What is a scriptblock? A scriptblock is a block of script code that exists as an object reference but does not require a name. To write a scriptblock we add a piece of code is encapsulated by curly braces {}. Scriptblocks are effectively containers that hold code and allow us...…


  2. Provision Windows Server 2016 with Vagrant and PowerShell DSC

    If you have not heard of or used Vagrant before, then it’s well worth checking out some of the excellent blogs here on 4sysops by Adam Bertram. What is so good about Vagrant is that there are many ways to provision a machine, Ansible, Chef, Puppet, and shell scripting to name just a few. The ability to provision with shell scripts allows us to use all the PowerShell language, including PowerShell DSC. PowerShell DSC is...…


  3. Using VSCode with VSTS and YAML to build an Azure VM – Part 2

    This is the second part of our two-part series on building a Windows Server in Azure by using a YAML configuration file in Visual Studio Team Services. In the first part of this article, we looked at creating a connection between Azure and VSTS while looking at JSON and YAML files to deploy. 4sysops article continues here… …


  4. Using VSTS and configuration as code to deploy Azure infrastructure – Part 1

    In part one of this two-part series of articles, I will be looking at how to create an account in Azure to create a Service Endpoint in VSTS to allow a connection, Azure Resource Manager templates, and using a YAML configuration file in VSTS to create a build. 4sysops article continues here… …


  5. Generate complex passwords with PowerShell

    My New-ComplexPassword PowerShell function allows you to generate complex passwords of custom length. Optionally, you can add one or several special characters to the passwords. 4sysops article continues here… …