DEV Community

Cover image for Automate the installation of the Azure Portal Desktop app
Tidjani Belmansour, Ph.D.
Tidjani Belmansour, Ph.D.

Posted on

Automate the installation of the Azure Portal Desktop app

The Azure Portal Desktop application is great. I love it and I use it!
It avoids me having the open the Azure Portal in different browsers and have to deal with in-private windows and "public" windows.

If you don't know what I'm talking about, you can check out my article (in French) about that desktop app here:
http://espacenuagic.com/2019/05/15/azure-portal-desktop-app/

Why would I want to automate that installation?

If you want to automate the configuration of your dev boxes (for example, if you want to provide a common script to help all you developers to set up their development environment), then you'll certainly look for a way to automate the installation of the Azure Portal desktop application.

Ok... So, how do I do that?

Simple, just use that script:

$url =  'https://portal.azure.com/App/Download?acceptLicense=true'
$outputLocation = $env:USERPROFILE + '\AzurePortalInstaller.exe'

$progresspreference = 'silentlyContinue'
Invoke-WebRequest $url -OutFile $outputLocation
$progressPreference = 'Continue'

& $outputLocation /Q
Enter fullscreen mode Exit fullscreen mode

Basically, all that script does is to download the installation package and runs it in quiet mode.

As a conclusion...

Today, we've learned that we can automate the installation of the Azure portal desktop app. This might be useful if you want to automate the configuration of your dev boxes.

Keep the discussion

You can reach me on Twitter or LinkedIn.

See you soon!

Top comments (0)