VirtualMachine

class VirtualMachine : KotlinCustomResource

Define the virtualMachine. API Version: 2020-10-01-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.ConnectedVMwarevSphere.VirtualMachine("virtualMachine", new()
{
ExtendedLocation = new AzureNative.ConnectedVMwarevSphere.Inputs.ExtendedLocationArgs
{
Name = "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso",
Type = "customLocation",
},
HardwareProfile = new AzureNative.ConnectedVMwarevSphere.Inputs.HardwareProfileArgs
{
MemorySizeMB = 4196,
NumCPUs = 4,
},
Location = "East US",
ResourceGroupName = "testrg",
ResourcePoolId = "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/ResourcePools/HRPool",
TemplateId = "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachineTemplates/WebFrontEndTemplate",
VCenterId = "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/ContosoVCenter",
VirtualMachineName = "DemoVM",
});
});
package main
import (
connectedvmwarevsphere "github.com/pulumi/pulumi-azure-native-sdk/connectedvmwarevsphere"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := connectedvmwarevsphere.NewVirtualMachine(ctx, "virtualMachine", &connectedvmwarevsphere.VirtualMachineArgs{
ExtendedLocation: &connectedvmwarevsphere.ExtendedLocationArgs{
Name: pulumi.String("/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso"),
Type: pulumi.String("customLocation"),
},
HardwareProfile: &connectedvmwarevsphere.HardwareProfileArgs{
MemorySizeMB: pulumi.Int(4196),
NumCPUs: pulumi.Int(4),
},
Location: pulumi.String("East US"),
ResourceGroupName: pulumi.String("testrg"),
ResourcePoolId: pulumi.String("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/ResourcePools/HRPool"),
TemplateId: pulumi.String("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachineTemplates/WebFrontEndTemplate"),
VCenterId: pulumi.String("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/ContosoVCenter"),
VirtualMachineName: pulumi.String("DemoVM"),
})
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.VirtualMachine;
import com.pulumi.azurenative.connectedvmwarevsphere.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()
.extendedLocation(Map.ofEntries(
Map.entry("name", "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso"),
Map.entry("type", "customLocation")
))
.hardwareProfile(Map.ofEntries(
Map.entry("memorySizeMB", 4196),
Map.entry("numCPUs", 4)
))
.location("East US")
.resourceGroupName("testrg")
.resourcePoolId("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/ResourcePools/HRPool")
.templateId("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachineTemplates/WebFrontEndTemplate")
.vCenterId("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/ContosoVCenter")
.virtualMachineName("DemoVM")
.build());
}
}

Import

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

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

Properties

Link copied to clipboard

Gets the name of the corresponding resource in Kubernetes.

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 vm.

Link copied to clipboard

Guest agent status properties.

Link copied to clipboard

Hardware properties.

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

The identity of the resource.

Link copied to clipboard
val instanceUuid: Output<String>

Gets or sets the instance uuid of the vm.

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

Gets or sets the inventory Item ID for the virtual machine.

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 moName: Output<String>

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

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

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

Link copied to clipboard
val name: Output<String>

Gets or sets the name.

Link copied to clipboard

Network properties.

Link copied to clipboard

OS properties.

Link copied to clipboard

Placement properties.

Link copied to clipboard
val powerState: Output<String>

Gets the power state of the virtual machine.

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
val resourcePoolId: Output<String>?

Gets or sets the ARM Id of the resourcePool resource on which this virtual machine will deploy.

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

Gets or sets the SMBIOS UUID of the vm.

Link copied to clipboard

The resource status information.

Link copied to clipboard

Storage properties.

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 templateId: Output<String>?

Gets or sets the ARM Id of the template resource to deploy the virtual machine.

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 resource pool resides.

Link copied to clipboard
val vmId: Output<String>

Gets or sets a unique identifier for the vm resource.