(SQL) Tip of the Day: Integrated Azure PowerShell into your Default PowerShell prompt


Today’s Tip…

With Windows 10 you will notice that your default PowerShell window now has syntax highlighting! This is great except for the fact that your Azure PowerShell window does not inherit this new feature.

We can get around this by adding the Azure PowerShell Cmdlets to your default PowerShell profile.

To do this, in your default PowerShell prompt:

Test-Path $profile

If this is false:

New-Item -path $profile -type file -force

If it was true (or once you finish the above step):

Notepad $profile

Now assuming you have the most recent version of Azure PowerShell installed, just add

Import-Module "C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ServiceManagement\Azure\Azure.psd1"

To the text file that was opened, close and save it. Now the next time you open PowerShell the Azure PowerShell cmdlets will be automatically added!


Comments (0)

Skip to main content