1. Home
  2. Training Library
  3. Microsoft Azure
  4. Courses
  5. Managing Azure Virtual Desktop Session Host Images

Installing Teams


Course Introduction
Imaging Basics
1m 44s
4m 53s
Session Hosts and Images
Course Conclusion
Start course

This course covers imaging in Azure to show you how you can build Azure Virtual Desktop session hosts as well as prepare for the AVD Specialty exam. This is going to cover a lot of information on the Windows OS, imaging tools, and how we work with images in Azure. Then we'll look at how to manage, maintain, and update those images. Finally, we'll cover how you can automate the whole process so you can scale as well as generate a new image each month or when a zero-day patch comes out, so you can stay secure.

Learning Objectives

  • Create a custom image
  • Deploy a session host with a custom image
  • Modify a session host image
  • Install language packs
  • Plan for image update and management
  • Create and use Azure Compute Gallery image
  • Automate custom images with Azure Image Builder

Intended Audience

  • Azure administrators with subject matter expertise in planning, delivering, and managing virtual desktop experiences and remote apps, for any device, on Azure
  • Anyone looking to learn more about Azure Virtual Desktop


  • Windows operating system
  • Imaging a Windows OS
  • Azure Virtual Machines
  • VM snapshots
  • Azure Compute Gallery 
  • Azure Image Builder

The Teams installation is not only going to install our application but also set up the AV redirection features, which are necessary to make Teams audio and video performance function just as it would on a local machine. This is done by first adding the registry key and then installing the WebRTC executable, followed by installing Teams for all users. Back on our VM, let's open the registry editor and navigate to HKEY_LOCAL_MACHINE, Software, Microsoft. Then right click on Microsoft, go to new and select a new key. The name for this key will be Teams. Right click on the new Teams key, go to new and select DWORD. And the name, this should be ISWVDEnvironment as one word. Then click on that DWORD and give it a value of one.

Now you can close the registry editor. We now can run the WebRTC Installer. And just note that if you have a problem with this installer, back in the docs, there is a link to download the Visual C Redistributable package. Then try to install WebRTC again. And this will just take a moment. With that complete, open a Command Prompt as administrator, and you'll want to use the per machine installation command, found in the docs. This is calling the msiexec command to install Teams using the parameter for all users and we'll store the results in a Teams-Install.log file.

Once complete, in the setup.log file, you'll see at the bottom the Teams Machine-Wide Installer was completed successfully. And under the Start menu, we can see Microsoft Teams is present. Now, on your own, go back to the Azure portal and take another snapshot before we move on to the next app.

About the Author
Dean Cefola
Principal Azure Engineer

Dean Cefola is a Principal Azure Engineer at Microsoft and has worked in the IT industry for over 20 years. Dean has been supporting Azure Virtual Desktop from the beginning and is the Microsoft FastTrack Global Leader for AVD.