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

PowerShell for IT Professionals [#20] – Next Steps with PowerShell

Congratulations! This is 20th and last lesson in the course – and my aim here is to show you various paths you can take your PowerShell journey to. I’m going to show what else you can do within PowerShell itself, as well how to keep up-to-day plus – what other doors writing code has opened for you – I’d love to hear back about this! I hope you’ve enjoyed the course so far and it will be helped you in some way – either solve a problem, got promotion, or simply learnt something new....

26 November 2020 · 2 min · 239 words · Kamil

PowerShell for IT Professionals [#8] – Manage everything with PowerShell

Exercises Can you uninstall module that was installed with Install-Module? Confirm your answer with Get-Module -ListAvaiable Can you update the installed module? Perhaps, you’d like to install version 1.0.0.0 of SNMP module, how can you force Install-Module to do so? Install-Module error If you encounter the issue with downloading modules, run this commandlet as a temporary workaround (it must be applied every time the shell is restarted): Source of solution, and also permanent solution can be found at:...

14 August 2020 · 1 min · 142 words · Kamil