I’m Marco, a DevOps engineer and founder working with PowerShell, Ansible and other great technologies to automate my work away!
GitLab Merge Request from the CLI
Speed up your work with git by automatically creating Merge Requests for your git push
Linked: Powershell PSDefaultParameterValues
A deep dive into PowerShell parameter defaults
The Null-Coalescing Operator
Today we take a closer look at the null-coalescing operator and how it can help us in writing smarter, more concise scripts. PS> $userDate ?? (Get-Date -Format "yyyy-MM-dd") 2021-02-14 PS> $userDate = Get-Date -Year 2020 -Format "yyyy-MM-dd" PS> $userDate ?? (Get-Date -Format "yyyy-MM-dd") 2020-02-14 How it works We can write some simple code to visualize what the null-coalescing operator is doing function nullCoalescingOperator ($leftValue, $rightValue) { if ($null -eq $leftValue) { return $rightValue } else { return $leftValue } } Usually we will want to assign the resulting value to a variable....
Filter Arrays
Filter arrays in PowerShell
GumLab
My first ever product
Delete Your Old VMware Snapshots
For the love of Pete, please delete your old snapshots regularly! Old snapshots have caused incidents and even outages more than once in my career and it is really easy to preemptively look for them and get them removed before anything happens. Why To put it plainly, they can cause issues - like 03:00 in the morning pager alert issues and additionally eat up storage space like crazy. Degraded performance of the VM having the snapshot Degraded performance to full outages for other VMs on the same data store due to rapidly increasing snapshot sizes VMware recommends a series of steps to reduce risk when using snapshots:...
Show vCenter On VM Object
Show vCenter on VMs in PowerCLI with this custom property
How To Find With PowerShell
Finding files, do I even need to describe how important this is?
Looking back at 2020, Four Months Of Blogging
A look back on four months of blogging and engaging the PowerShell community
My Stand On Affiliate Links
What I think about affiliate links