Azure DevOps allows us to run custom scripts to help our software and infrastructure get delivered quickly. There are times that the scripts run without an issue, however, sometimes there is a need to invoke the Azure DevOps Rest API in the release pipeline to get our scripts running. Sure, you can create a script invoking the API, authenticating with Azure DevOps with your personal access token and should work, but there is a better solution.
So laying on the sofa, sick, bored out of my mind, what better way to spend my time then writing a blog post about
Get-Command . The
Get-Command Cmdlet is apart of the Microsoft.PowerShell.Core module, it was introduced in PowerShell version 1.0 and is one of the most useful Cmdlets to find a command you are looking for. It has a variety of parameters that allow you to search for a command by using a combination of parameters or just using
Topics include DSC, Pester, validation attributes, and Azure AD.
I’m going to file this under “Either I’m a genius, or there’s a much better way and everyone knows it except for me.”
I recently began adding a suite of Pester tests to one of my projects and I found myself needing to mock some unit tests against a particular function that would modify a variable based on the parameter specified. Since all the functions I write nowadays are considered advanced functions (and yours should be too, they’re free!), I discovered a nice way to test the function’s actions using the
Topics include splatting, PSRemoting to Azure VMs, and honey users.
Topics include remoting with SSH, sending SMS alerts, some live stream coding, and keybinds that you may not have known about.
Topics include an update to PSScriptAnalyzer, Pester, and customizing SharePoint menus.
Index
What is a constrained endpoint and why would I need one?
Powershell constrained endpoints are a means of interacting with powershell in a manner consistent with the principal of least privilege. In Powershell terms, this is referred to as Just-Enough-Administration, or JEA.
JEA is very well documented, so this won’t simply be repeating everything those references detail. Instead, we’ll go through a simple, real-world use-case of when and why you might need to deploy one.
Rambling
I’m a huge fan of lightning demos. From the community and PowerShell Team lightning demos we get at the summit, to PSPowerHour, to various local groups and conferences using the format.
At the 2019 PowerShell + DevOps Global Summit, we’ll have about 90 minutes for these demos - now we just need proposals from you!
So! Why might you be interested in lightning demos?
Why Lightning Demos
Lightning demos are great for the audience and speakers alike.
Topics include PowerShell IoT, Nmap in PS, and some livestreamed contributions to PSHTML.