Building PowerShell module on Azure DevOps pipeline - step by step guide

The World talks constantly about DevOps, CI/CI pipelines, automation - which great, but where to actually start? Especially when you’ve been writing PowerShell which is often used as automation language, but not actually as programming language? In this video I’ll show you how to create a build pipeline for PowerShell module, from scratch. We will start from creating a project, creating new Git repository, pushing code to repository to finally create a pipeline which takes care of building the module, versioning it and finally publishing....

1 June 2022 · 1 min · 200 words · Kamil

Building PowerShell Module - how to organise your source files and build with ease

Organising all files, scripts and functions required to build a module might give one a headache. PowerShell doesn’t come with native way of building the module, which doesn’t make our job easier. Hence, we’re going to use ModuleBuilder from PowerShell community so that the way we organise the code is predictable and used widely across other PowerShell projects. In this video I’ll walk you through the process of preparing, organising and finally building the module....

14 March 2022 · 1 min · 79 words · Kamil

PowerShell Module and Manifest- create and configure your tools

The more PowerShell code you write results in more and more scripts. Often you have multiple scripts managing one domain or application. What in situation when scripts start to use other scripts to work, creating so called dependency? PowerShell module is the answer - it’s the native way of bundling in multiple functions together as a single file. And the best comes with Module’s Manifest, a file that describes things like version of your module, requirements for it to run, author’s details etc....

23 February 2022 · 4 min · 828 words · Kamil