Quantcast
Channel: Stuart Leeks
Browsing all 21 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

PowerShell script to clean and zip a directory

As part of my role I’m often sending sample code to customers. Sometimes this is a small snippet inline in an email, but often it will be a zipped up Visual Studio solution. Simply zipping up the...

View Article


Image may be NSFW.
Clik here to view.

Finding files in your path environment

Occasionally I’m working at the command prompt and have a utility that is in the path environment, but need to find where the file actually is. So, I wrote a little batch file that does exactly...

View Article


Image may be NSFW.
Clik here to view.

Setting the window title for a command prompt

Very quick tip in what seems to have become a mini-series (Part 1, Part 2). I often find myself with a number of command windows open and switching between them can be problematic. To address this I...

View Article

Image may be NSFW.
Clik here to view.

PowerShell ISE Theme – Visual Studio Code style

I’ve been spending quite a bit of time in Visual Studio Code recently, and even doing some PowerShell work in it with posh-dnvm. For posh-dnvm it has been working really nicely: whilst Code doesn’t...

View Article

Image may be NSFW.
Clik here to view.

Finding files in the PATH with PowerShell

Just a quick post this time! I frequently find myself wanting to know where a command in my PATH is. Earlier today it was to work out why DNVM beta4 was being loaded despite installing DNVM beta6. (It...

View Article


Image may be NSFW.
Clik here to view.

Azure API Apps – Configuration with Environment Variables

I’ve been digging into API Apps (and Logic Apps) in Azure App Service recently. If you’ve not looked at API Apps, they build on top of Web Apps (formerly known as Web Sites) but add a few extra bits of...

View Article

Image may be NSFW.
Clik here to view.

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

  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...

View Article

Image may be NSFW.
Clik here to view.

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...

View Article


Image may be NSFW.
Clik here to view.

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...

View Article


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

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...

View Article

Image may be NSFW.
Clik here to view.

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...

View Article

Image may be NSFW.
Clik here to view.

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...

View Article

Image may be NSFW.
Clik here to view.

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...

View Article


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...

View Article

Image may be NSFW.
Clik here to view.

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...

View Article


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....

View Article

Image may be NSFW.
Clik here to view.

IntelliSense for Marathon Application and Group JSON in Visual Studio Code

tl;dr – You can get IntelliSense for Marathon applications and groups in Visual Studio Code by adding a $schema property The Problem I’ve been having quite a lot of fun with Docker Containers recently,...

View Article


Including Headers for Request Events with Application Insights

When working with Application Insights recently in an ASP.NET application, I suddenly realised that the HTTP request and response headers weren’t included in the request data that is automatically...

View Article

Image may be NSFW.
Clik here to view.

Azure Functions and App Service Authentication

Azure App Service has a handy authentication integration that takes away the work of integrating with various identity providers (currently: Azure Active Directory, Facebook, Google, Twitter and...

View Article

Image may be NSFW.
Clik here to view.

posh-HumpCompletion in Azure Cloud Shell

Azure Cloud Shell is an in-browser shell experience that you can launch from the Azure portal or on its own at shell.azure.com. You can choose between bash and PowerShell, and both come with a nice...

View Article
Browsing all 21 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>