Configure and manage VMs with System Center Virtual Machine Manager (SCVMM)

Last Update: 6/13/2017

Team Services | TFS 2017 | TFS 2015 | Previous versions: XAML Build, Release

Also check out the new release definition editor.

This example shows how you can integrate System Center Virtual Machine Manager (SCVMM) with Release Management in Visual Studio Team Services or Team Foundation Server.

Prepare

You need SCVMM.

  1. Install the Virtual Machine Manager (VMM) console by following these instructions. Supported version: System Center 2012 R2 Virtual Machine Manager.

  2. Install an agent on the agent machine:

  3. Install the System Center Virtual Machine Manager (SCVMM) extension from Visual Studio Marketplace into your server or account:

    • If you are using Visual Studio Team Services, install the extension from this location in Visual Studio Marketplace.
    • If you are using Team Foundation Server, download the extension from this location in Visual Studio Marketplace, upload it to your Team Foundation Server, and install it.

  4. Create an SCVMM service endpoint in your team project:

    • Open your Team Services or TFS team project in your web browser. Choose the Settings icon in the menu bar and select Services.

    • In the Services tab, choose New Service Endpoint, and select SCVMM.

    • In the Add new SCVMM Connection dialog, enter the values required to connect to the SCVMM Server:

      • Connection Name: Enter a user-friendly name for the service endpoint such as MySCVMMServer.
      • SCVMM Server Name: Enter the fully qualified domain name and port number of the SCVMM server, in the form machine.domain.com:port.
      • Username and Password: Enter the credentials required to connect to the vCenter Server. Username formats such as username, domain\username, machine-name\username, and .\username are supported. UPN formats such as username@domain.com and built-in system accounts such as NT Authority\System are not supported.

  5. Choose OK to save the settings and create the connection.

Deploy

  1. Open the Releases tab of the Build & Release hub and choose the "+" icon to create a new release definition.

  2. In the Create release definition dialog, select the Empty template and choose Next.

  3. In the next page, select Choose Later and then choose Create. This creates a new release definition with one default environment and no linked artifacts.

  4. Choose + Add tasks and add an SCVMM task from the Deploy section of the Task catalog dialog to the environment.

  5. You can select the action from the list of actions available in the task. See SCVMM task actions for details.

  6. You can now add other tasks to the environment, such as PowerShell on Target Machines and then deploy to the newly provisioned machines.

    In the future, we plan for the SCVMM task to provide an output variable that you set in the task and then use as input to subsequent tasks. Until then, if you want to run additional tasks, you must specify the fully-qualified domain names of the virtual machines that are provisioned in SCVMM.

  7. Type a name for the new release definition and save it.

  8. Create a new release from the release definition and deploy it to the environment.

Q&A

I use Team Foundation Server on-premises and I don't see some of these features. Why not?

Some of these features are available only on Visual Studio Team Services and not yet available on-premises. Some features are available on-premises if you have upgraded to the latest version of TFS.

Help and support