News

The methods described in this section are referred to as the input processing methods. For functions, these three methods are represented by the begin, process, and end blocks of the function.
Designing PowerShell functions, like coding, is an art. There are lots of shortcuts and best practices that you will come up with yourself to make your coding easier over the long run.
In Part 1 of this series, I showed you an example of PowerShell's native validation capabilities. In that installment, I wrote a function that accepted a text string as input. The function then ...
If you've been using PowerShell, then you know that one of the great things about it is the ability to take objects outputted from one cmdlet, easily send it to another cmdlet and have it know how to ...
The sample includes examples of: Running a scheduler (using a logic app recurrence trigger). Triggering PowerShell functions from a logic app. Fan-out of multiple functions running in parallel, and ...
DevOps Practices: Integrating with CI/CD pipelines and infrastructure-as-code tools. Functions in PowerShell PowerShell functions are reusable blocks of code that can accept input, process it, and ...
For example, you can set commands, set environment variables, set aliases, import modules, and add functions, among others. Simply put, you can customize the tasks and environments that suit you.
Posey's Tips & Tricks How To Validate Input in PowerShell Functions, Part 1 If your automated script takes action based on a value, it's critical to make sure the value is correct. Good thing ...