Introducing the Azure Environment Selector Visual Studio extension

Steve Michelotti

Visual Studio has many tools that enable developers to easily interact with Azure. These are tools like the Cloud Explorer for Visual Studio 2017, Visual Studio Server Explorer, the main Visual Studio login, and even being able to right-click in the Visual Studio Solution Explorer to deploy a web project to Azure.  However, by default, these tools connect directly to the Azure commercial cloud. What about Azure Government developers?

In the Azure Government documentation, we show how you can place an Azure Active Directory configuration file in a directory that enables Visual Studio to point to Azure Government instead of Azure commercial. However, this process is somewhat manual and, if you’re a developer that often needs to switch between working with Azure Government and Azure commercial, this process can be cumbersome.

To solve this, we are pleased to introduce the Azure Environment Selector Visual Studio extension! This extension enables you to quickly and easily switch between Azure environments. You install this like any other extension in Visual Studio: Tools – Extension and Updates…

Then click the “Online” tab on the left to search for extensions online and search for “azure environment selector”. Then click to Download or Install:

1

Once you restart Visual Studio, the extension will be installed. When you click the “Tools” menu item, you will find an “Azure Environment Selector” item in the menu:

2

Click the menu item and you will see the Azure Environment Selector dialog:

3

Use the dropdown to select a different environment such as Azure Government:

4

From here you can restart Visual Studio and the change will take effect. Once Visual Studio restarts, you will now be able to connect to other environments with VS tools such as the Cloud Explorer (shown below connected to Azure Government), Server Explorer, the main Visual Studio login, and the Visual Studio Solution Explorer.

5

The code is open source on GitHub. We welcome any feedback or issues.

This short video shows the extension in action – walking you through installation and showing how easy it is to connect to Azure Government:

We welcome your comments and suggestions to help us continually improve your Azure Government experience. To stay up to date on all things Azure Government, be sure to subscribe to our RSS feed and to receive emails, click “Subscribe by Email!” on the Azure Government Blog. To experience the power of Azure Government for your organization, sign up for an Azure Government Trial.

0 comments

Discussion is closed.

Feedback usabilla icon