Category: PowerShell

Log Analytics Data Collector API

You can send practically any data to Azure Log Analytics (aka. OMS). As long as you can convert it to JSON format prior to sending it to your Log Analytics workspace. Here’s the official write up on it Data that you upload gets sent to a custom log, with the characters ‘_CL‘ at the end,…

Read more Log Analytics Data Collector API

DSC Troubleshooting

If you want to troubleshoot DSC (Desired State Configuration)… You can easily run a DSC config script locally on your computer, apply the MOF manually on-demand and watch it apply in realtime as per the below. The below are the lines of PowerShell code you need for testing. First though, make sure you run the…

Read more DSC Troubleshooting

Change Azure ARM VM OS disk

Sometimes you would want to create an Azure ARM based Virtual Machine using an existing VHD disk. It used to be much easier in ASM (Classic). However you can easily swap out the OS disk for a VM using PowerShell. Simply create a new (non-managed disk) based VM in Azure with new disks. Then you…

Read more Change Azure ARM VM OS disk