Connect to a SCVMM server and perform actions on VMs like create/restore/delete checkpoint, start/stop VMs, create new VM using Template, StoredVM and VHD and enable network virtualization.
System Center Virtual Machine Manager (SCVMM) Integration
Connect to a SCVMM server from Azure DevOps or Team Foundation Server to provision and manage your virtual machines from your SCVMM cloud or host group. Following are the available actions:
Create, Restore and Delete a Checkpoint your Virtual Machines.
Create New Virtual Machines using VM Templates, Stored VMs and VHDs and enable network virtualization.
Save virtual machines as VM templates.
Start, Stop Virtual Machines.
Delete Virtual Machines
Run custom PowerShell Script for SCVMM.
The extension installs the following components:
A service connection for connecting to SCVMM Server.
A task that is available in both build and release definitions to provision and manage your virtual machines from SCVMM. It uses the System Center VMM Console PowerShell commandlets to perform the actions.
Install System Center VMM console on the Automation Agent machine
To install VMM Console follow the instruction here
Open the 'service connections' page in your Azure DevOps / Team Foundation Server Control Panel. In the New Service connection list, choose SCVMM.
Enter the SCVMM Server Name (fully qualified domain name with port), and the username and password to access the SCVMM Server
Add SCVMM Task to your Build/Release definition
Create new build or release pipeline and add the SCVMM task. The task can be found in the Deploy category of the Add Tasks section.
To Create, Restore and Delete Checkpoint on your Virtual Machines fill in the task parameters as below:
SCVMM Service Connection : Select the SCVMM service connection defined above from the drop down.
Action : Select any one of the checkpoint actions among Create Checkpoint, Restore Checkpoint and Delete Checkpoint.
Virtual Machines Name: Provide the name of the Virtual Machine or a comma separated list of the Virtual Machines, like FabrikamDevVM, FabrikamTestVM etc.
Checkpoint Name: For 'Create CheckPoint', enter the name of the checkpoint that will be applied to the Virtual Machines. In case of 'Delete Checkpoint' or 'Restore Checkpoint' ensure that the Checkpoint name is valid.
Description for Checkpoint: Provide the description you want for checkpoint.
Select VMs From: You can scope the source for Virtual Machines from either SCVMM cloud or host machine.
Host Name/Cloud Name: Based on the above selection you need to provide either a cloud name or host machine name.