Virtual Machine Manager Server
Manages a System Center Virtual Machine Manager Server.
Note: By request of the service team the provider no longer automatically registering the
Microsoft.ScVmmResource Provider for this resource. To register it you can runaz provider register --namespace Microsoft.ScVmm. Note: This resource depends on an existingSystem Center Virtual Machine Manager Host Machine,Arc Resource BridgeandCustom Location. Installing and configuring these dependencies is outside the scope of this document. See Virtual Machine Manager documentation and Install VMM for more details ofSystem Center Virtual Machine Manager Host Machine. See What is Azure Arc resource bridge and Overview of Arc-enabled System Center Virtual Machine Manager for more details ofArc Resource Bridge/Appliance. See Create and manage custom locations on Azure Arc-enabled Kubernetes for more details ofCustom Location. If you encounter issues while configuring, we'd recommend opening a ticket with Microsoft Support.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const exampleVirtualMachineManagerServer = new azure.systemcenter.VirtualMachineManagerServer("example", {
name: "example-scvmmms",
resourceGroupName: example.name,
location: example.location,
customLocationId: "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.ExtendedLocation/customLocations/customLocation1",
fqdn: "example.labtest",
username: "testUser",
password: "H@Sh1CoR3!",
});import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_virtual_machine_manager_server = azure.systemcenter.VirtualMachineManagerServer("example",
name="example-scvmmms",
resource_group_name=example.name,
location=example.location,
custom_location_id="/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.ExtendedLocation/customLocations/customLocation1",
fqdn="example.labtest",
username="testUser",
password="H@Sh1CoR3!")using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var exampleVirtualMachineManagerServer = new Azure.SystemCenter.VirtualMachineManagerServer("example", new()
{
Name = "example-scvmmms",
ResourceGroupName = example.Name,
Location = example.Location,
CustomLocationId = "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.ExtendedLocation/customLocations/customLocation1",
Fqdn = "example.labtest",
Username = "testUser",
Password = "H@Sh1CoR3!",
});
});package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/systemcenter"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
_, err = systemcenter.NewVirtualMachineManagerServer(ctx, "example", &systemcenter.VirtualMachineManagerServerArgs{
Name: pulumi.String("example-scvmmms"),
ResourceGroupName: example.Name,
Location: example.Location,
CustomLocationId: pulumi.String("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.ExtendedLocation/customLocations/customLocation1"),
Fqdn: pulumi.String("example.labtest"),
Username: pulumi.String("testUser"),
Password: pulumi.String("H@Sh1CoR3!"),
})
if err != nil {
return err
}
return nil
})
}package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.systemcenter.VirtualMachineManagerServer;
import com.pulumi.azure.systemcenter.VirtualMachineManagerServerArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var exampleVirtualMachineManagerServer = new VirtualMachineManagerServer("exampleVirtualMachineManagerServer", VirtualMachineManagerServerArgs.builder()
.name("example-scvmmms")
.resourceGroupName(example.name())
.location(example.location())
.customLocationId("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.ExtendedLocation/customLocations/customLocation1")
.fqdn("example.labtest")
.username("testUser")
.password("H@Sh1CoR3!")
.build());
}
}resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleVirtualMachineManagerServer:
type: azure:systemcenter:VirtualMachineManagerServer
name: example
properties:
name: example-scvmmms
resourceGroupName: ${example.name}
location: ${example.location}
customLocationId: /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.ExtendedLocation/customLocations/customLocation1
fqdn: example.labtest
username: testUser
password: H@Sh1CoR3!Import
System Center Virtual Machine Manager Servers can be imported using the resource id, e.g.
$ pulumi import azure:systemcenter/virtualMachineManagerServer:VirtualMachineManagerServer example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.ScVmm/vmmServers/vmmServer1Properties
The ID of the Custom Location for the System Center Virtual Machine Manager Server. Changing this forces a new resource to be created.
The name of the Resource Group where the System Center Virtual Machine Manager should exist. Changing this forces a new resource to be created.