Father, author, blogger, enthusiast of all things PowerShell and automation. http://linktr.ee/mdowst
Thanks! I’d love to hear your thoughts once you’ve watched it.
Thanks! I’m glad to hear you are finding it useful.
Thanks! I’m glad to hear others are finding it useful.
Joel “Jaykul” Bennet is an opinionated DevOps engineer, programmer, speaker, and Microsoft MVP.
I love that description. I can’t wait to listen to it tonight!
Just a heads up, I received confirmation from the product team that the AZUREPS_HOST_ENVIRONMENT environment variable is going away. They are moving the backend to containers. Also, the COMPUTERNAME one that was always “client” is going to change too. The COMPUTERNAME will now be “Sandbox-###” with # being random numbers. I started using the code block below in my runbooks to find if they are running in Azure or hybrid worker/locally. It accounts for the current and the updates that will be rolling out in the near future.
$isHybridWorker = $true
if (($env:computername) -eq "CLIENT") {
$isHybridWorker = $false
}
elseif ($env:USERNAME -eq 'ContainerAdministrator') {
$isHybridWorker = $false
}
``
Typically, when I have a script I need to test locally, I’ll comment out the identity connection command and just authenticate outside of my script. If I’m feeling real fancy, I’ll write a try/catch to attempt to authenticate first as the managed identity then if it fails prompt me for credentials. Not the most elegant solution, but it works.
try {
Add-AzAccount -Identity -SubscriptionId $SubscriptionId -ErrorAction Stop | Out-Null
}
catch {
Add-AzAccount -SubscriptionId $SubscriptionId
}
For some reason their API would not return anything for assembly. I was curious to see where it would rank too,
Apparently it due to an issue with Kotlin - https://github.com/code-golf/code-golf/issues/151#issuecomment-1126266250
Biggest things I’m seeing is CVE-2023-21709 for Exchange requires a PowerShell script to be run after patching. Also, CVE-2023-29328/29330 for Teams affect all devices (Windows, Mac, iOS, and Android).
I love WinGet but I just wish there was support for Windows Server, without having to do a bunch of hacks
Edited to Add: I noticed this community is Powershell, here the powershell version of above:
Nice! You are a person of many talents
Documentation is top notch too.
Nothing will make me love a solution more than it being well documented. Sounds simple, but saves so much time.
The book I wrote. When I first talked with the publisher he asked, “what skills would you look for in someone who wants to do your job?” And that’s the premise I stuck with writing it.
Interesting. As someone who mainly deals in PowerShell, this is very similar to the Where-Object clause and could save me some headaches when I need to work in Python.
From personal experience, it seems like things outside of your normal listening don’t affect too much. At least in my case, my daughter making me play the Encanto soundtrack 250,000 times hasn’t affected my weekly or daily playlists.
That’s pretty similar with what happened with me and the train. Kept getting random drops from a plant. I went out to investigate and everything tested perfect and the network was staying up. That was until a freight train rolled by. Turns out AT&T had run the line by shoving a piece of PVC through the gravel between two cross-ties, then running the cable through it.
Nice write up, and a great primer for someone coming from the Linux/Bash world.