VirtualMachineTemplate

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

Example Usage

CreateVirtualMachineTemplate

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var virtualMachineTemplate = new AzureNative.ScVmm.VirtualMachineTemplate("virtualMachineTemplate", new()
{
ExtendedLocation = new AzureNative.ScVmm.Inputs.ExtendedLocationArgs
{
Name = "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso",
Type = "customLocation",
},
Location = "East US",
ResourceGroupName = "testrg",
Uuid = "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
VirtualMachineTemplateName = "HRVirtualMachineTemplate",
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/go/azure/scvmm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scvmm.NewVirtualMachineTemplate(ctx, "virtualMachineTemplate", &scvmm.VirtualMachineTemplateArgs{
ExtendedLocation: &scvmm.ExtendedLocationArgs{
Name: pulumi.String("/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso"),
Type: pulumi.String("customLocation"),
},
Location: pulumi.String("East US"),
ResourceGroupName: pulumi.String("testrg"),
Uuid: pulumi.String("aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"),
VirtualMachineTemplateName: pulumi.String("HRVirtualMachineTemplate"),
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.VirtualMachineTemplate;
import com.pulumi.azurenative.scvmm.VirtualMachineTemplateArgs;
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 virtualMachineTemplate = new VirtualMachineTemplate("virtualMachineTemplate", VirtualMachineTemplateArgs.builder()
.extendedLocation(Map.ofEntries(
Map.entry("name", "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso"),
Map.entry("type", "customLocation")
))
.location("East US")
.resourceGroupName("testrg")
.uuid("aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee")
.virtualMachineTemplateName("HRVirtualMachineTemplate")
.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:VirtualMachineTemplate HRVirtualMachineTemplate /subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachineTemplates/HRVirtualMachineTemplate

Properties

Link copied to clipboard
val computerName: Output<String>

Gets or sets computer name.

Link copied to clipboard
val cpuCount: Output<Int>

Gets or sets the desired number of vCPUs for the vm.

Link copied to clipboard

Gets or sets the disks of the template.

Link copied to clipboard

Gets or sets a value indicating whether to enable dynamic memory or not.

Link copied to clipboard
val dynamicMemoryMaxMB: Output<Int>

Gets or sets the max dynamic memory for the vm.

Link copied to clipboard
val dynamicMemoryMinMB: Output<Int>

Gets or sets the min dynamic memory for the vm.

Link copied to clipboard

The extended location.

Link copied to clipboard
val generation: Output<Int>

Gets or sets the generation for the vm.

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

Gets or sets the inventory Item ID for the resource.

Link copied to clipboard
val isCustomizable: Output<String>

Gets or sets a value indicating whether the vm template is customizable or not.

Link copied to clipboard

Gets highly available property.

Link copied to clipboard

Gets or sets a value indicating whether to enable processor compatibility mode for live migration of VMs.

Link copied to clipboard
val location: Output<String>

Gets or sets the location.

Link copied to clipboard
val memoryMB: Output<Int>

MemoryMB is the desired size of a virtual machine's memory, in MB.

Link copied to clipboard
val name: Output<String>

Resource Name

Link copied to clipboard

Gets or sets the network interfaces of the template.

Link copied to clipboard
val osName: Output<String>

Gets or sets os name.

Link copied to clipboard
val osType: Output<String>

Gets or sets the type of the os.

Link copied to clipboard

Gets or sets the provisioning state.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The system data.

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

Resource tags

Link copied to clipboard
val type: Output<String>

Resource Type

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

Unique ID of the virtual machine template.

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

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