![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.scvmm.kotlin.VirtualMachineInstanceArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.scvmm.kotlin
import com.pulumi.azurenative.scvmm.VirtualMachineInstanceArgs.builder
import com.pulumi.azurenative.scvmm.kotlin.inputs.ExtendedLocationArgs
import com.pulumi.azurenative.scvmm.kotlin.inputs.ExtendedLocationArgsBuilder
import com.pulumi.azurenative.scvmm.kotlin.inputs.HardwareProfileArgs
import com.pulumi.azurenative.scvmm.kotlin.inputs.HardwareProfileArgsBuilder
import com.pulumi.azurenative.scvmm.kotlin.inputs.InfrastructureProfileArgs
import com.pulumi.azurenative.scvmm.kotlin.inputs.InfrastructureProfileArgsBuilder
import com.pulumi.azurenative.scvmm.kotlin.inputs.NetworkProfileArgs
import com.pulumi.azurenative.scvmm.kotlin.inputs.NetworkProfileArgsBuilder
import com.pulumi.azurenative.scvmm.kotlin.inputs.OsProfileForVMInstanceArgs
import com.pulumi.azurenative.scvmm.kotlin.inputs.OsProfileForVMInstanceArgsBuilder
import com.pulumi.azurenative.scvmm.kotlin.inputs.StorageProfileArgs
import com.pulumi.azurenative.scvmm.kotlin.inputs.StorageProfileArgsBuilder
import com.pulumi.azurenative.scvmm.kotlin.inputs.VirtualMachineInstancePropertiesAvailabilitySetsArgs
import com.pulumi.azurenative.scvmm.kotlin.inputs.VirtualMachineInstancePropertiesAvailabilitySetsArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Define the virtualMachineInstance.
* Azure REST API version: 2023-04-01-preview.
* Other available API versions: 2023-10-07, 2024-06-01.
* ## Example Usage
* ### CreateVirtualMachine
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var virtualMachineInstance = new AzureNative.ScVmm.VirtualMachineInstance("virtualMachineInstance", new()
* {
* ExtendedLocation = new AzureNative.ScVmm.Inputs.ExtendedLocationArgs
* {
* Name = "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso",
* Type = "customLocation",
* },
* HardwareProfile = new AzureNative.ScVmm.Inputs.HardwareProfileArgs
* {
* CpuCount = 4,
* MemoryMB = 4196,
* },
* InfrastructureProfile = new AzureNative.ScVmm.Inputs.InfrastructureProfileArgs
* {
* CloudId = "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/Clouds/HRCloud",
* TemplateId = "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachineTemplates/HRVirtualMachineTemplate",
* VmmServerId = "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer",
* },
* ResourceUri = "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM",
* });
* });
* ```
* ```go
* package main
* import (
* scvmm "github.com/pulumi/pulumi-azure-native-sdk/scvmm/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := scvmm.NewVirtualMachineInstance(ctx, "virtualMachineInstance", &scvmm.VirtualMachineInstanceArgs{
* ExtendedLocation: &scvmm.ExtendedLocationArgs{
* Name: pulumi.String("/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso"),
* Type: pulumi.String("customLocation"),
* },
* HardwareProfile: &scvmm.HardwareProfileArgs{
* CpuCount: pulumi.Int(4),
* MemoryMB: pulumi.Int(4196),
* },
* InfrastructureProfile: &scvmm.InfrastructureProfileArgs{
* CloudId: pulumi.String("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/Clouds/HRCloud"),
* TemplateId: pulumi.String("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachineTemplates/HRVirtualMachineTemplate"),
* VmmServerId: pulumi.String("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer"),
* },
* ResourceUri: pulumi.String("subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.scvmm.VirtualMachineInstance;
* import com.pulumi.azurenative.scvmm.VirtualMachineInstanceArgs;
* import com.pulumi.azurenative.scvmm.inputs.ExtendedLocationArgs;
* import com.pulumi.azurenative.scvmm.inputs.HardwareProfileArgs;
* import com.pulumi.azurenative.scvmm.inputs.InfrastructureProfileArgs;
* 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 virtualMachineInstance = new VirtualMachineInstance("virtualMachineInstance", VirtualMachineInstanceArgs.builder()
* .extendedLocation(ExtendedLocationArgs.builder()
* .name("/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso")
* .type("customLocation")
* .build())
* .hardwareProfile(HardwareProfileArgs.builder()
* .cpuCount(4)
* .memoryMB(4196)
* .build())
* .infrastructureProfile(InfrastructureProfileArgs.builder()
* .cloudId("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/Clouds/HRCloud")
* .templateId("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VirtualMachineTemplates/HRVirtualMachineTemplate")
* .vmmServerId("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.SCVMM/VMMServers/ContosoVMMServer")
* .build())
* .resourceUri("subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:scvmm:VirtualMachineInstance default /{resourceUri}/providers/Microsoft.ScVmm/virtualMachineInstances/default
* ```
* @property availabilitySets Availability Sets in vm.
* @property extendedLocation Gets or sets the extended location.
* @property hardwareProfile Hardware properties.
* @property infrastructureProfile Gets the infrastructure profile.
* @property networkProfile Network properties.
* @property osProfile OS properties.
* @property resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource to be extended.
* @property storageProfile Storage properties.
*/
public data class VirtualMachineInstanceArgs(
public val availabilitySets: Output>? =
null,
public val extendedLocation: Output? = null,
public val hardwareProfile: Output? = null,
public val infrastructureProfile: Output? = null,
public val networkProfile: Output? = null,
public val osProfile: Output? = null,
public val resourceUri: Output? = null,
public val storageProfile: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.scvmm.VirtualMachineInstanceArgs =
com.pulumi.azurenative.scvmm.VirtualMachineInstanceArgs.builder()
.availabilitySets(
availabilitySets?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.extendedLocation(extendedLocation?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.hardwareProfile(hardwareProfile?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.infrastructureProfile(
infrastructureProfile?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.networkProfile(networkProfile?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.osProfile(osProfile?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.resourceUri(resourceUri?.applyValue({ args0 -> args0 }))
.storageProfile(
storageProfile?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [VirtualMachineInstanceArgs].
*/
@PulumiTagMarker
public class VirtualMachineInstanceArgsBuilder internal constructor() {
private var availabilitySets: Output>? =
null
private var extendedLocation: Output? = null
private var hardwareProfile: Output? = null
private var infrastructureProfile: Output? = null
private var networkProfile: Output? = null
private var osProfile: Output? = null
private var resourceUri: Output? = null
private var storageProfile: Output? = null
/**
* @param value Availability Sets in vm.
*/
@JvmName("hfeqxbfhxuunwder")
public suspend fun availabilitySets(`value`: Output>) {
this.availabilitySets = value
}
@JvmName("yjruymnlbfjfalxx")
public suspend fun availabilitySets(vararg values: Output) {
this.availabilitySets = Output.all(values.asList())
}
/**
* @param values Availability Sets in vm.
*/
@JvmName("iryauodbvcagcwnb")
public suspend fun availabilitySets(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy