VirtualMachineArgs

data class VirtualMachineArgs(val availabilitySets: Output<List<VirtualMachinePropertiesAvailabilitySetsArgs>>? = null, val checkpointType: Output<String>? = null, val checkpoints: Output<List<CheckpointArgs>>? = null, val cloudId: Output<String>? = null, val extendedLocation: Output<ExtendedLocationArgs>? = null, val generation: Output<Int>? = null, val hardwareProfile: Output<HardwareProfileArgs>? = null, val inventoryItemId: Output<String>? = null, val location: Output<String>? = null, val networkProfile: Output<NetworkProfileArgs>? = null, val osProfile: Output<OsProfileArgs>? = null, val resourceGroupName: Output<String>? = null, val storageProfile: Output<StorageProfileArgs>? = null, val tags: Output<Map<String, String>>? = null, val templateId: Output<String>? = null, val uuid: Output<String>? = null, val virtualMachineName: Output<String>? = null, val vmName: Output<String>? = null, val vmmServerId: Output<String>? = null) : ConvertibleToJava<VirtualMachineArgs>

The VirtualMachines resource definition. API Version: 2020-06-05-preview.

Example Usage

CreateVirtualMachine

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var virtualMachine = new AzureNative.ScVmm.VirtualMachine("virtualMachine", new()
{
CloudId = "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/Clouds/HRCloud",
ExtendedLocation = new AzureNative.ScVmm.Inputs.ExtendedLocationArgs
{
Name = "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso",
Type = "customLocation",
},
HardwareProfile = new AzureNative.ScVmm.Inputs.HardwareProfileArgs
{
CpuCount = 4,
MemoryMB = 4096,
},
Location = "East US",
ResourceGroupName = "testrg",
TemplateId = "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachineTemplates/HRVirtualMachineTemplate",
VirtualMachineName = "DemoVM",
VmmServerId = "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer",
});
});
package main
import (
scvmm "github.com/pulumi/pulumi-azure-native-sdk/scvmm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scvmm.NewVirtualMachine(ctx, "virtualMachine", &scvmm.VirtualMachineArgs{
CloudId: pulumi.String("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/Clouds/HRCloud"),
ExtendedLocation: &scvmm.ExtendedLocationArgs{
Name: pulumi.String("/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso"),
Type: pulumi.String("customLocation"),
},
HardwareProfile: &scvmm.HardwareProfileArgs{
CpuCount: pulumi.Int(4),
MemoryMB: pulumi.Int(4096),
},
Location: pulumi.String("East US"),
ResourceGroupName: pulumi.String("testrg"),
TemplateId: pulumi.String("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachineTemplates/HRVirtualMachineTemplate"),
VirtualMachineName: pulumi.String("DemoVM"),
VmmServerId: pulumi.String("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer"),
})
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.azurenative.scvmm.VirtualMachine;
import com.pulumi.azurenative.scvmm.VirtualMachineArgs;
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 virtualMachine = new VirtualMachine("virtualMachine", VirtualMachineArgs.builder()
.cloudId("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/Clouds/HRCloud")
.extendedLocation(Map.ofEntries(
Map.entry("name", "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso"),
Map.entry("type", "customLocation")
))
.hardwareProfile(Map.ofEntries(
Map.entry("cpuCount", 4),
Map.entry("memoryMB", 4096)
))
.location("East US")
.resourceGroupName("testrg")
.templateId("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachineTemplates/HRVirtualMachineTemplate")
.virtualMachineName("DemoVM")
.vmmServerId("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:scvmm:VirtualMachine DemoVM /subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachines/DemoVM

Constructors

Link copied to clipboard
constructor(availabilitySets: Output<List<VirtualMachinePropertiesAvailabilitySetsArgs>>? = null, checkpointType: Output<String>? = null, checkpoints: Output<List<CheckpointArgs>>? = null, cloudId: Output<String>? = null, extendedLocation: Output<ExtendedLocationArgs>? = null, generation: Output<Int>? = null, hardwareProfile: Output<HardwareProfileArgs>? = null, inventoryItemId: Output<String>? = null, location: Output<String>? = null, networkProfile: Output<NetworkProfileArgs>? = null, osProfile: Output<OsProfileArgs>? = null, resourceGroupName: Output<String>? = null, storageProfile: Output<StorageProfileArgs>? = null, tags: Output<Map<String, String>>? = null, templateId: Output<String>? = null, uuid: Output<String>? = null, virtualMachineName: Output<String>? = null, vmName: Output<String>? = null, vmmServerId: Output<String>? = null)

Properties

Link copied to clipboard

Availability Sets in vm.

Link copied to clipboard
val checkpoints: Output<List<CheckpointArgs>>? = null

Checkpoints in the vm.

Link copied to clipboard
val checkpointType: Output<String>? = null

Type of checkpoint supported for the vm.

Link copied to clipboard
val cloudId: Output<String>? = null

ARM Id of the cloud resource to use for deploying the vm.

Link copied to clipboard

The extended location.

Link copied to clipboard
val generation: Output<Int>? = null

Gets or sets the generation for the vm.

Link copied to clipboard

Hardware properties.

Link copied to clipboard
val inventoryItemId: Output<String>? = null

Gets or sets the inventory Item ID for the resource.

Link copied to clipboard
val location: Output<String>? = null

Gets or sets the location.

Link copied to clipboard
val networkProfile: Output<NetworkProfileArgs>? = null

Network properties.

Link copied to clipboard
val osProfile: Output<OsProfileArgs>? = null

OS properties.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group.

Link copied to clipboard
val storageProfile: Output<StorageProfileArgs>? = null

Storage properties.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags

Link copied to clipboard
val templateId: Output<String>? = null

ARM Id of the template resource to use for deploying the vm.

Link copied to clipboard
val uuid: Output<String>? = null

Unique ID of the virtual machine.

Link copied to clipboard
val virtualMachineName: Output<String>? = null

Name of the VirtualMachine.

Link copied to clipboard
val vmmServerId: Output<String>? = null

ARM Id of the vmmServer resource in which this resource resides.

Link copied to clipboard
val vmName: Output<String>? = null

VMName is the name of VM on the SCVMM server.

Functions

Link copied to clipboard
open override fun toJava(): VirtualMachineArgs