My Profile Photo

${Graham Beer} = blog


System Engineer, PowerShell Developer, WinOps and a huge automation fan!


  1. Building Azure VM's with PowerShell

    To create a virtual machine in Azure requires the configuration of several different components. You need to consider a Resource group, Storage options, a virtual network then the virtual machine itself! To set all these components you need to know what they are; A Location, Storage types, Operating systems… To make this process easier for myself I created my AzureRM.VM.Tools PowerShell Module. I wanted to share this in the hope it might help someone else....…


  2. The Adam Bertram Pester Challenge!

    During September Adam Bertram set a challenge, to learn Pester. Here is what Adam said: Do you want to learn about testing PowerShell with Pester? Have you been putting it off just because you “don’t have time”? I’m formally putting out the challenge to anyone that is willing to dedicate some serious time to learning Pester and is willing to share their story about it. I will send anyone a FREE coupon for the Pester...…


  3. Working with Azure Active Directory part 2

    Following on from part 1, i’m going to delve into creating a custom RBAC (Role-based access control), then assigning this role to the group we created and finally adding our user to the group. Before I start to create a custom role, lets see what is already available. The cmdlet we will use is in the AzureRM.Resources module. Like the other modules we have used in part 1, you can find this module in the...…


  4. Working with Azure Active Directory part 1

    This article, which will be in two parts, is about getting started with Azure Active Directory. So what is Azure Active Directory? Microsoft themselves say: “Azure Active Directory (Azure AD) is Microsoft’s multi-tenant, cloud based directory and identity management service.” These two articles will contain the following content: Workflow Connect to Azure Make connection to Azure Active Directory Create a Security group Create a user Create a new RBAC Assign role to group assign user...…


  5. Generating Complex Passwords

    This is a handy little script to create a single or multiple complex passwords. I found the need on a recent project to generate and pass a list of random complex passwords for many new users to the admin team. By making use of System.Web.Security.Membership class I could call the static method GeneratePassword, which takes two integer parameters. Refering to the MSDN documentation, it explains the usage of both parameters and the output value: Length...…