Author: keithbabinec

How to troubleshoot PowerShell scripts not running under a scheduled task

Situation: you have written a PowerShell script that runs fine when you launch it from PowerShell directly, but fails to start or run when you try to plug it into a schedule task. What went wrong? This post is an outline of common reasons that your script fails to run in a scheduled task. Always … Continue reading How to troubleshoot PowerShell scripts not running under a scheduled task

How to enforce PowerShell Remoting (WinRM) settings with Group Policy

Remote connectivity in PowerShell leverages a few different technologies under the hood. For example, cmdlets that provide a -ComputerName parameter usually connect with RPC, WMI, or WinRM. Most of the truly interesting remote capabilities come through WinRM. It allows you to enter and maintain remote console sessions, invoke remote scriptblocks, and more. One drawback is … Continue reading How to enforce PowerShell Remoting (WinRM) settings with Group Policy

Windows event log custom source tips

Good-old Windows event logs are a great location to write events for automation tools and scripts. It may not be flashy, but it provides key functionality for service engineering teams: It's easy to register custom sources for your applications. It has configurable log size and rollover options so you don't need to worry about handling … Continue reading Windows event log custom source tips

PowerShell script module starter kit

Background PowerShell functions are an essential tool for extending the PowerShell ecosystem with your own custom code. Modules are great because they allow you to package a collection of functions into a container for easier distribution and usage. One of the hurdles for starting to write your own modules is finding a good file or … Continue reading PowerShell script module starter kit

Azure WebJobs: Scheduling and Scaling

Why Azure WebJobs? Azure WebJobs are a great resource included in Azure App Service plans. They provide a way for you to run binaries or scripts that perform scheduled or event-triggered job processing for work that isn't suited to be done during a normal web request. Have a monthly cleanup task for your website? Sending a big … Continue reading Azure WebJobs: Scheduling and Scaling

How to configure Azure Web Application settings via PowerShell

Application Settings .NET developers should be familiar with the classic web.config file used for storing web site options, application settings, and connection strings. When you deploy a .NET Web Application to Azure this file can still be used, however a new additional settings layer in Azure is provided. Azure Web Applications have access to an additional key/value … Continue reading How to configure Azure Web Application settings via PowerShell

Book review: Production-Ready Microservices by Susan J. Fowler

Recently, I picked up Susan J. Fowler's book, Production-Ready Microservices. It was a quick read and it provided an excellent outline for implementing standards across a microservice ecosystem in large organizations. I would definitely recommend it for software engineers or site reliability engineers (SRE's) who work with microservices. Production-Ready Microservices starts with a brief explanation of why large organizations … Continue reading Book review: Production-Ready Microservices by Susan J. Fowler