Using Visual Studio 2017 in Microsoft Azure Germany

(auch verfügbar in Deutsch)

With the release of Visual Studio 2017 the way to deploy to Azure Germany has changed. The good news is that you don't have to change registry keys any more (like for VS2015 described in this german article here). The downside is that there is no way to simultaneously deploy to Azure and Azure Germany. Here is what you have to do to switch between both clouds.

Deploy to Azure Germany

  • Close Visual Studio 2017
  • delete the folder %temp%\servicehub and everything under it (rmdir /S/Q %temp%\servicehub)
  • copy the following lines into your editor and save them in %localappdata%\.IdentityService\AadConfigurations\AadProvider.Configuration.json. If the directory doesn't exist, simply create it.

[code light="true"]

That's it. Now start VS2017 and add an account from Azure Germany.

Deploy to Azure (global)

After you changed the settings to deploy to Azure Germany, the way back to Azure global is simple: Just delete the subdirectory you created in the step above, %localappdata%\.IdentityService\AadConfigurations. In case you plan to switch back and forth between the clouds you might think about renaming the directory instead of deleting it...