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
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.
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.
I’ve actually had an excavator take out my network. I’ve also had networks taken out by forklift, train, and a semi-truck towing three other semi-trucks.
Basically every Windows sysadmin is indebted to Mark Russinovich and SysInternals. Fortunetly, PowerToys has come a long way because I’m pretty sure sysinternals haven’t been updated since Windows XP.
Been there. I’ve written some slick code in a weekend that has run great for years. I’ve also spent 2 hours trying to get a button lined up properly.
Nice write up, and a great primer for someone coming from the Linux/Bash world.