0

Azure DevTest Labs Artifact for Installing PowerShell on Linux

Update: The PowerShell on Linux artifact is now available in official Azure DTL artifact repository.

Bartek and Ben have written a great introduction article on open source PowerShell. I have been experimenting with it ever since and installed it on my lab and Azure VMs. When it comes to Azure, I also use DevTest Labs (DTL) a lot for creating my test setup. Azure DTL supports customization of VMs in the lab using artifacts. Artifacts are used to deploy and configure your application after a VM is provisioned. An artifact consists of an artifact definition file and other script files that are stored in a folder in a Git repository. We can create custom artifacts and achieve what is not supported out of the box with Azure DTL. The following video provides a walk-through of creating custom DTL artifacts.

I quickly created a DTL artifact for installing PowerShell on Linux. I opened a pull request to merge this artifact into the official artifacts repository and you can deploy this from the official artifact repository.

In the official artifact repository, you can find the artifact listed with Linux VM settings in DTL.

DTL-PSL

Once you select the PowerShell on Linux artifact, you will be prompted for the package URL.

addarti

You can obtain this package URL from the PowerShell GitHub repository’s releases page. On this page, you will see links to either .deb or .rpm packages. For Ubuntu, copy the link to .deb package and for CentOS, use the .rpm link.

Enter the copied URL into the Package URL input box and click Add and then click Apply. The artifact installation will take a few minutes and you should be able to use PowerShell in the Linux VM.

DTL-PSL-Ubuntu

Filed in: Articles, Azure, Online Only Tags: , , ,

Leave a Reply

Submit Comment

© 2017 PowerShell Magazine. All rights reserved. XHTML / CSS Valid.
Proudly designed by Theme Junkie.
%d bloggers like this: