Tweaking your PowerShell profile – Part 2: conditionally loading modules

Introduction In the previous post we saw how to show the progress as PowerShell loads your profile. I spend a lot of time working with the Azure PowerShell cmdlets so I had added them to my profile. However, it turned out that they can be a little slow to load (yes, I know I’m impatient!)….

0

Tweaking your PowerShell profile – Part 1: showing loading progress

Tl;dr In this post we look at adding rotating output at the top of the PowerShell window as shown here: Introduction Recently I realised that PowerShell was taking a while to load on my machine. I’d been adding more and more things to my profile and wanted a way to easily see what was taking…

0

Posh-HumpCompletion–from the ground up

Earlier this year I spent some time with Seth at Channel 9 and we recorded a couple of videos. I’m a little behind on things, but the first video is now up, and covers building posh-HumpCompletion from scratch. It skips over some of the optimisations, but covers the main functionality.

0

Persisting Azure PowerShell logins

With the pre-1.0 Azure PowerShell cmdlets, my Azure login credentials were cached. Since making the switch to the 1.x release I’ve found that I need to execute Login-AzureRmAccount each new PowerShell session. This has been bugging me for a while and today I finally foudnm the time to figure out a way round it. I’m…

1

Working with docker output in PowerShell

Just a quick post today 🙂 These days I find myself working in both PowerShell and bash, and when I’m in PowerShell, I like to have objects that I can work with. With the Azure CLI I can use the –json switch and then use something like jq to process the output, or in PowerShell…

0

Bringing Hump Completion to PowerShell

It can be fun when ideas from different areas combine! I’ve spent quite a lot of time recently working with Azure Resource Manager templates, and the associated PowerShell cmdlets. There are a lot of these cmdlets and the team has done a great job of giving them logical and descriptive names. The result is that…

0

Easily checking Azure Resource Manager deployment status from bash with the Azure CLI

If you’re working with Azure Resource Manager templates on OSX/Linux then there’s a strong probability that you’re using the Azure CLI to deploy them. The CLI works on Windows as well, but if you prefer a PowerShell version of this post then see http://blogs.msdn.com/b/stuartleeks/archive/2015/11/25/easily-checking-azure-resource-manager-deployment-status-from-powershell.aspx. I’ve had a couple of mini-scripts that I’ve found myself using…

0

Easily checking Azure Resource Manager deployment status from PowerShell

If you’re working with Azure Resource Manager templates on Windows then there’s a strong possibility that you’re using the Azure PowerShell cmdlets to deploy them. Note that if you’re on OSX/Linux you can use the Azure CLI. Oh, and it works on Windows as well! For an Azure CLI version of this post see http://blogs.msdn.com/b/stuartleeks/archive/2015/11/26/easily-checking-azure-resource-manager-deployment-status-from-bash-with-the-azure-cli.aspx…

0

Configuration with Environment Variables – With Visual Studio Docker Tools

I posted recently about using environment variables to configuration. I like to use this approach with Docker, too! Visual Studio has some great tool support (in preview) for working with Docker. With the release of Windows Server 2016 Technical Preview 3, there is now a preview of Windows Server Containers. ScottGu has a great post…

0

Posh-AzureCli: Command completion for Azure Cross Platform Command Line in PowerShell

  tl;dr This post discusses adding tab completion to Azure xplat CLI. If you just want to install it, see the notes below. UPDATE 17th December 2015 – Install from PowerShell Gallery Background If you’re working with Azure then you can perform operations via the web portal, use the PowerShell cmdlets, or use the cross…

0