Building and Publishing Reusable PowerShell Tools
summary
Shows how a small reusable module is built and actually used: a concrete Export-LogicAppDefinition function that converts Azure Logic App definitions to JSON files, adds parameter validation, try/catch error handling, pipeline processing and comment‑based help, and becomes a PSM1 + PSD1 module. Uses PS Script Analyzer and platyPS for linting and help, stores an API key and then publishes to PowerShell Gallery via GitHub Actions that build test and release on merge — the exports and CI run successfully.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 3:21Problems solved with PowerShell
- 8:17Reusable functions from CLI
- 11:29Parameter validation and errors
- 17:03Try-catch error handling
- 23:32Pipeline input processing
- 28:37Documentation with comment-based help
- 30:27PowerShell best practices
- 33:19Building PowerShell modules
- 37:35Publishing to PowerShell Gallery
- 39:27Automated module testing
- 41:35Recap and call to action
related talks
01h 29mModularizing PowerShell: Making Code Portable
51mPowerShell module toolbox and templates for Continuous Delivery
45mDon’t Stop at the PowerShell Pipeline. Build a CI/CD Pipeline for your PowerShell
03h 04mMastering Making Modules
49mStop manually publishing your modules. Automate it in 2 minutes!
01h 11mFree Continuous Delivery to the PowerShell Gallery with Azure DevOps
48mThe easy way to an API
31mAzure DevOps for System Engineers
