Configure and manage VMs with System Center Virtual Machine Manager (SCVMM)
VSTS | TFS 2018 | TFS 2017 | TFS 2015
This example shows how you can integrate System Center Virtual Machine Manager (SCVMM) with Release Management in VSTS or Team Foundation Server.
You need SCVMM. If you want to create an isolated virtual network using SCVMM, see this topic.
Install an agent on the agent machine:
Install the System Center Virtual Machine Manager (SCVMM) extension from Visual Studio Marketplace into your server or account:
Create an SCVMM service endpoint in your team project:
Open your VSTS 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 email@example.com and built-in system accounts such as NT Authority\System are not supported.
Choose OK to save the settings and create the connection.
Open the Releases tab of the Build & Release hub and choose the "+" icon to create a new release definition.
In the Create release definition dialog, select the Empty template and choose Next.
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.
Choose + Add tasks and add an SCVMM task from the Deploy section of the Task catalog dialog to the environment.
You can select the action from the list of actions available in the task. See SCVMM task actions for details.
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.
Type a name for the new release definition and save it.
Create a new release from the release definition and deploy it to the environment.
- Create a virtual network isolated environment for build-deploy-test scenarios
- Task actions for managing VMs using SCVMM