powershell

Compare Resources From Terraform Plan

February 4, 2024  -   1 mins read time -   158 words -  garrardkitchen

terraform, powershell, azure

Here’s a link to a repo I created today, that will be used to host examples of all challenges I encounter that relate to Terraform. In this particular sample, I need to list out all those resources that will be created using Terraform where we do not have a state file. The product of this will be added to sheets, by Resource Group, in an Excel spreadsheet. Each sheet is an Azure Resource Group. ...

How to Write Clipboard to File

September 26, 2022  -   1 mins read time -   142 words -  garrardkitchen

clipboard, powershell, Microsoft.PowerShell.Management

Have you ever wondered how to persist your clipboard to disk? Wonder no more… To get started, copy a random sentence into your clipboard like so: Set-Clipboard -Value "This is being copied into clipboard" Let’s confirm the contents of the clipboard, like so: Get-Clipboard output: This is being copied into clipboard We’ll now persist the same cliboard to a file, like so: Get-Clipboard | Out-File -FilePath clipboard.txt To confirm the contents of this file, we type: ...