Build and Publish Your PowerShell Modules to Azure Container Registry using Azure DevOps

Gijs Reijn
6 min readApr 6, 2024

In the latest PowerShell community call, there was a new interesting feature demoed by Sydney Smith, the Product Manager of PowerShell.

Version 1.1.0-preview1 from the Microsoft.PowerShell.PSResourceGet provides the ability to install and publish modules through Azure Container Registry (also known as ACR).

While most of you might be familiar with ACR in the “Docker” or Azure Bicep world, it’s interesting to see the investment made by the PowerShell team to include support for ACR.

Having ACR now added to the caliber, it’s nice for enterprises to have another option available to publish their precious modules to a private repository.

Let’s dive into how you can build and publish your PowerShell modules to ACR. Before you get your hands going, make sure the following prerequisites are in-place

Prerequisites

To follow along, you are going to need the following prerequisites in-place:

  • Azure DevOps Services
  • Azure Subscription
  • Bicep CLI (v0.26.54 is used)
  • Az module
  • Azure CLI with Azure DevOps extension installed

--

--

Gijs Reijn
Gijs Reijn

Written by Gijs Reijn

Providing tips, tricks, best practices, solutions, and nonsense that might help your IT workday thrive. Follow my newsletter at: http://eepurl.com/i1hSUw

No responses yet