Powershell: Invoke-RestMethod vs Invoke-WebRequest

In Powershell, aside from the old school Net objects, we have Invoke-RestMethod and Invoke-WebRequest cmdlets to make HTTP/REST calls. I’ve been exploring both as part of my APIs and Powershell series. So far there are times when one is better than the other at certain things. Like Invoke-RestMethod turning JSON response files directly into Powershell …

Read more

Blog Series: APIs and Powershell

Starting out on helpdesk and moving to systems administration, I never had any exposure to APIs and how to use them. I would be in meetings and people would start talking about APIs and this would be me. Instead of being clueless, I would rather know a little bit when people smarter than me start …

Read more

Creating Custom Azure Log Analytics Logs

azure log analytics

Azure Log Analytics has the ability to monitor a lot of technologies via the many solutions you can add to the service. However, what if you want to log something that isn’t available as a solution? Azure Log Analytics includes a REST API that you can post logs to. Using the the REST API will …

Read more

How to find Azure Log Analytics Keys

azure log analytics

This post is now dated, I have created a new one with the latest information here https://www.systemcenterautomation.com/2020/08/log-analytics-keys/   When using Azure Log Analytics, whether its adding agents to the workspace, or accessing the REST API, you need two things to perform these tasks. The Customer ID, often called the Workspace ID and the Shared Key …

Read more

Getting Started with Powershell: Quick tips

When I first started learning Powershell, like many other technologies, I was self-taught. In this post I’ll share some Powershell quick tips I wish I knew when I was starting out. This first one may seem fairly obvious, but again this is targeted for those just starting to learn Powershell. Often times peoples interest in …

Read more

Visual Studio Code Powershell

Microsoft has knocked it out of the park with Visual Studio Code. I’ve seen a lot of positive feedback for it, even on one of the forums I read that isn’t related to programming or devs or IT Operations. For my purposes I’ve recently started using it for Powershell. And I wanted to share some …

Read more