VirtualMachineTemplate

class VirtualMachineTemplate : KotlinCustomResource

Define the virtualMachineTemplate. Uses Azure REST API version 2022-07-15-preview. In version 1.x of the Azure Native provider, it used API version 2020-10-01-preview. Other available API versions: 2023-03-01-preview, 2023-10-01, 2023-12-01.

Example Usage

CreateVirtualMachineTemplate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var virtualMachineTemplate = new AzureNative.ConnectedVMwarevSphere.VirtualMachineTemplate("virtualMachineTemplate", new()
{
ExtendedLocation = new AzureNative.ConnectedVMwarevSphere.Inputs.ExtendedLocationArgs
{
Name = "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso",
Type = "customLocation",
},
Location = "East US",
MoRefId = "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
ResourceGroupName = "testrg",
VCenterId = "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/ContosoVCenter",
VirtualMachineTemplateName = "WebFrontEndTemplate",
});
});
package main
import (
connectedvmwarevsphere "github.com/pulumi/pulumi-azure-native-sdk/connectedvmwarevsphere/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := connectedvmwarevsphere.NewVirtualMachineTemplate(ctx, "virtualMachineTemplate", &connectedvmwarevsphere.VirtualMachineTemplateArgs{
ExtendedLocation: &connectedvmwarevsphere.ExtendedLocationArgs{
Name: pulumi.String("/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso"),
Type: pulumi.String("customLocation"),
},
Location: pulumi.String("East US"),
MoRefId: pulumi.String("aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"),
ResourceGroupName: pulumi.String("testrg"),
VCenterId: pulumi.String("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/ContosoVCenter"),
VirtualMachineTemplateName: pulumi.String("WebFrontEndTemplate"),
})
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.connectedvmwarevsphere.VirtualMachineTemplate;
import com.pulumi.azurenative.connectedvmwarevsphere.VirtualMachineTemplateArgs;
import com.pulumi.azurenative.connectedvmwarevsphere.inputs.ExtendedLocationArgs;
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(ExtendedLocationArgs.builder()
.name("/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso")
.type("customLocation")
.build())
.location("East US")
.moRefId("aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee")
.resourceGroupName("testrg")
.vCenterId("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/ContosoVCenter")
.virtualMachineTemplateName("WebFrontEndTemplate")
.build());
}
}

Import

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

$ pulumi import azure-native:connectedvmwarevsphere:VirtualMachineTemplate WebFrontEndTemplate /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/{virtualMachineTemplateName}

Properties

Link copied to clipboard

Gets the name of the corresponding resource in Kubernetes.

Link copied to clipboard

Gets or sets the disks the template.

Link copied to clipboard

Gets or sets the extended location.

Link copied to clipboard
val firmwareType: Output<String>

Firmware type

Link copied to clipboard
val folderPath: Output<String>

Gets or sets the folder path of the template.

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 virtual machine template.

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

Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.

Link copied to clipboard
val location: Output<String>

Gets or sets the location.

Link copied to clipboard
val memorySizeMB: Output<Int>

Gets or sets memory size in MBs for the template.

Link copied to clipboard
val moName: Output<String>

Gets or sets the vCenter Managed Object name for the virtual machine template.

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

Gets or sets the vCenter MoRef (Managed Object Reference) ID for the virtual machine template.

Link copied to clipboard
val name: Output<String>

Gets or sets the name.

Link copied to clipboard

Gets or sets the network interfaces of the template.

Link copied to clipboard
val numCoresPerSocket: Output<Int>

Gets or sets the number of cores per socket for the template. Defaults to 1 if unspecified.

Link copied to clipboard
val numCPUs: Output<Int>

Gets or sets the number of vCPUs for 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
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The resource status information.

Link copied to clipboard

The system data.

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

Gets or sets the Resource tags.

Link copied to clipboard
val toolsVersion: Output<String>

Gets or sets the current version of VMware Tools.

Link copied to clipboard

Gets or sets the current version status of VMware Tools installed in the guest operating system.

Link copied to clipboard
val type: Output<String>

Gets or sets the type of the resource.

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

Gets or sets a unique identifier for this resource.

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

Gets or sets the ARM Id of the vCenter resource in which this template resides.