Back to Basics: Understanding the PowerShell Switch Statement

The concept of conditional logic in programming is not anything new. Conditional logic is a fancy term for first checking for a condition (if something happened) and then doing something as a result of that condition.

June Castillote Avatar June Castillote

10 min. read

How to Up your Game with PowerShell Try Catch Blocks

Have you ever run a script or a PowerShell cmdlet and get confronted with a screaming wall of text - in red - like the one shown below?

June Castillote Avatar June Castillote

9 min. read

3 Tips to Build a 150,000-Reader/Month Technical Blog

Many engineers have blogs. If you're like me, you probably started up a blog to document the goings on in your job. Many of us start blogs for our own purposes as a way to record that obscure fix that worked in production or an interesting way to set up the latest software.

Adam Bertram Avatar Adam Bertram

3 min. read

Resolve-DnsName: Monitoring DNS Records using PowerShell

If you're managing web or mail servers, you know how heavily these servers rely on adequately configured DNS records. Missing DNS records can cause all sorts of problems, including users not being able to find your website or non-delivery of emails. It is a good thing that the PowerShell Resolve-DnsName cmdlet exists, and with it, monitoring DNS records can be automated through scripting.

June Castillote Avatar June Castillote

7 min. read

How to Write a Technical Blog Post People Actually Want to Read

Blogging. Many of us in the technical community do it. It's a way we can document our successes (and failures), prevent others from making the same mistakes we did and become an important part of our resume repetoire.

Adam Bertram Avatar Adam Bertram

5 min. read

The Curse of Knowledge is Worse Than You Think

When you show someone how to solve a problem, acquire a new skill or accomplish a task, you're teaching. You're teaching that random Internet blog reader how to create a database, a coworker casually stopping by with that coding problem she can't figure out or even your son how to ride a bike.

Adam Bertram Avatar Adam Bertram

4 min. read

Infrastructure as Code: Where Continuous Delivery All Begins

If you've ever created kind of cloud or virtual infrastructure on-prem manually, you'd know there's either a lot of clicking or a lot of typing going on. To provision anything in requires remembering which screen to go to or what command to run. If you're just playing around trying to learn Azure that's fine but once that playing turns into business-critical, production processes where time is money, something has to change.

Adam Bertram Avatar Adam Bertram

3 min. read

Building Your First AWS Lambda Python Function

Learn how to create a working Lambda function and how to write the Python code necessary to make the Lambda function work.

Michael Levan Avatar Michael Levan

10 min. read

Getting Started using SSH with PowerShell

Once upon a time, you were limited in the kind of computers you could connect to with Windows PowerShell using PowerShell Remoting. Since PowerShell Remoting only supported the WsMan provider, your chances of connecting to computers running Linux, for example, were nil.

Adam Bertram Avatar Adam Bertram

5 min. read

Back to Basics: Conditional Logic with PowerShell If-Else

Scripts can make decisions. How? By using a concept called conditional logic. This concept is important to understand clearly when writing PowerShell scripts.

June Castillote Avatar June Castillote

9 min. read

How to Create an AWS IAM User and Role

Everything needs permission to perform tasks in AWS. If you don't already understand IAM users and roles, you're missing an important part of AWS. In this article, you will learn, step-by-step, how to create an Identity and Access Management (IAM) user and an IAM role to control permissions.

Michael Levan Avatar Michael Levan

6 min. read

How to Become a DevOps Engineer: My Story

Do you want to know how to become a DevOps engineer? It's possible and even probable if you stick to a few key areas.

Chris Blackden Avatar Chris Blackden

7 min. read

Deploying Infrastructure with AWS CLI and CloudFormation

In the dark past of physical servers, infrastructure was provisioned using screwdrivers and cables in humid basements. These dark times became lighter when public cloud solutions started taking over from on-premises infrastructure as the preferred way to provision and run servers. All was well, right?

Adam Bertram Avatar Adam Bertram

5 min. read

How to Create an AWS EC2 Instance

AWS is the most popular public cloud provider on the planet with dozens of services. EC2, a service of AWS, is one of the most popular. If you're just starting to kick the tires of EC2 and want to know how to create an EC2 instance, you've come to the right place.

Michael Levan Avatar Michael Levan

5 min. read

Back to Basics: The PowerShell For Loop

When you use PowerShell scripts to manage systems or process bulk tasks, you'll undoubtedly encounter the need to use a loop construct as part of your scripts. There are many types of loops available in PowerShell, and one of them is the for loop.  The PowerShell for loop can make running the same set of commands on multiple items quickly and produce consistent results.

June Castillote Avatar June Castillote

8 min. read

The PowerShell Block Comment (And Creating Descriptive Comments)

When a newcomer to PowerShell begins to write scripts, they typically focus on the code. After all, the code is what makes things happen! Executable code is obviously important, but what happens when you write so much code, you forget what it does? This is when PowerShell comments can come in.

June Castillote Avatar June Castillote

8 min. read

Running PowerShell Scripts in Azure DevOps Pipelines (2 of 2)

No one product will ever provide all of the built-in tools you need to get the job done. Scripts are like the glue that brings workflows together and the shims that make solutions work. in Azure DevOps (AzDo) Pipelines, PowerShell and Bash scripts are your best friends.

Adam Bertram Avatar Adam Bertram

11 min. read

Running PowerShell Scripts in Azure DevOps Pipelines (1 of 2)

Did you know you can natively run scripts like PowerShell in Azure DevOps (AzDo) pipelines? By using the tips and techniques you’ll learn in this article, you’ll be well on your way to scripting your way to automation greatness.

Adam Bertram Avatar Adam Bertram

7 min. read

Getting Started with GitHub Actions and Terraform: A Hands-On Tutorial

In the world of DevOps, it's critical to ensure consistent and repeatable builds, testing and deployment. Continuous Integration (CI) and Continuous Delivery (CD) (CI/CD) should be an important goal to strive for. In this article, you're going to learn about one of those platforms, GitHub Actions. You will learn from both a theoretical and hands-on approach to working with GitHub Actions.

Michael Levan Avatar Michael Levan

11 min. read

How to Apply DSC Configurations to VMs in Azure ARM Templates

If you're deploying Azure Windows virtual machines (VMs) via ARM templates and need to configure Windows, this article is for you. In this tutorial, you're going to learn how to use the Desired State Configuration (DSC) extension for ARM templates to seamlessly deploy and configure an Azure VM Scale Set with a single template.

Adam Bertram Avatar Adam Bertram

6 min. read

Subscribe to Adam the Automator

Get the latest posts delivered right to your inbox