Developer Support

Advocacy and Innovation

Nailing it: Making Sense of Vague PowerShell Errors

This post on troubleshooting PowerShell errors comes to us from Premier Developer consultant Rob Vettor.PowerShell is a “must-know” for Azure cloud development. Yes, it’s a scripting language, but moreover, it’s an automation engine that can execute complex tasks with minimal effort. The vast majority of Azure administrative ...

Automating SQL Azure Server Firewall Rule Creation

For this installment of the Premier Developer Blog, Application Development Manager Herald Gjura shares some PowerShell scripts from his toolbox to help automate Azure SQL DB Server firewall rules. Problem to solve This is the problem I am trying to solve. I usually work with multiple Azure clients, who have granted me access to ...

When using SharePoint, don’t use $

In the latest post on his blog, Senior Premier Developer Consultant Brian Gregor discusses an error when using Distributed Cache PowerShell cmdlets with a user account that includes a $ in the name. https://blogs.msdn.microsoft.com/briangre/2017/01/24/when-using-sharepoint-dont-use...

Install Android SDKs using Powershell

The Android SDK Manager requires a GUI and tedious searching for the SDKs that you want to install. There is a command line android.bat script that lets you install and uninstall these without the GUI but it's based on an ordinal index for each SDK so you have to run the script once, note the index(es) of the SDKs you want to install, then ...

How to sort the console output of a hashtable in PowerShell

Hashtables are inherently unsorted, but when you're printing a hashtable's contents to the console, it can certainly be helpful to sort its contents by key.  Although it's not obvious, the way to do it is pretty easy. Let's start with defining a hashtable and play with it until it's obviously unsorted. Great. Now let's sort it: ...

Getting doskey macros to work in PowerShell

As much as I love to work with PowerShell, it was hard to give up the doskey macros I had defined for CMD.exe.  But I just found out that doskey can work all its magic for PowerShell too, so here's the trick... Doskey defaults to working only with cmd.exe, but by passing the /exename= parameter to it, you can set macros for PowerShell ...