Azure DevTest Labs Artifact for Installing PowerShell on Linux

Datetime:2016-08-23 01:30:48          Topic: Windows Azure  PowerShell           Share

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 . At the moment, it is in my repository and I have opened a pull request to merge this artifact into the official artifacts repository . Until this PR is merged, you need to deploy this from your own artifact repository. To be able to do that, you need to first clone my GitHub repository and add it as a repository in your Azure DTL. To add a custom repository, follow the instructions in Azure DTL documentation .

Once you have the custom artifact repository added to your DTL, you can find the artifact listed with Linux VM settings in DTL.

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

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.





About List