All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.systemcenter.kotlin.VirtualMachineManagerServerArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.systemcenter.kotlin

import com.pulumi.azure.systemcenter.VirtualMachineManagerServerArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages a System Center Virtual Machine Manager Server.
 * > **Note:** By request of the service team the provider no longer automatically registering the `Microsoft.ScVmm` Resource Provider for this resource. To register it you can run `az provider register --namespace Microsoft.ScVmm`.
 * > **Note:** This resource depends on an existing `System Center Virtual Machine Manager Host Machine`, `Arc Resource Bridge` and `Custom Location`. Installing and configuring these dependencies is outside the scope of this document. See [Virtual Machine Manager documentation](https://learn.microsoft.com/en-us/system-center/vmm/?view=sc-vmm-2022) and [Install VMM](https://learn.microsoft.com/en-us/system-center/vmm/install?view=sc-vmm-2022) for more details of `System Center Virtual Machine Manager Host Machine`. See [What is Azure Arc resource bridge](https://learn.microsoft.com/en-us/azure/azure-arc/resource-bridge/overview) and [Overview of Arc-enabled System Center Virtual Machine Manager](https://learn.microsoft.com/en-us/azure/azure-arc/system-center-virtual-machine-manager/overview) for more details of `Arc Resource Bridge/Appliance`. See [Create and manage custom locations on Azure Arc-enabled Kubernetes](https://learn.microsoft.com/en-us/azure/azure-arc/kubernetes/custom-locations) for more details of `Custom Location`. If you encounter issues while configuring, we'd recommend opening a ticket with Microsoft Support.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const exampleVirtualMachineManagerServer = new azure.systemcenter.VirtualMachineManagerServer("example", {
 *     name: "example-scvmmms",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     customLocationId: "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.ExtendedLocation/customLocations/customLocation1",
 *     fqdn: "example.labtest",
 *     username: "testUser",
 *     password: "H@Sh1CoR3!",
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example-resources",
 *     location="West Europe")
 * example_virtual_machine_manager_server = azure.systemcenter.VirtualMachineManagerServer("example",
 *     name="example-scvmmms",
 *     resource_group_name=example.name,
 *     location=example.location,
 *     custom_location_id="/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.ExtendedLocation/customLocations/customLocation1",
 *     fqdn="example.labtest",
 *     username="testUser",
 *     password="H@Sh1CoR3!")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "example-resources",
 *         Location = "West Europe",
 *     });
 *     var exampleVirtualMachineManagerServer = new Azure.SystemCenter.VirtualMachineManagerServer("example", new()
 *     {
 *         Name = "example-scvmmms",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *         CustomLocationId = "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.ExtendedLocation/customLocations/customLocation1",
 *         Fqdn = "example.labtest",
 *         Username = "testUser",
 *         Password = "H@Sh1CoR3!",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/systemcenter"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("example-resources"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = systemcenter.NewVirtualMachineManagerServer(ctx, "example", &systemcenter.VirtualMachineManagerServerArgs{
 * 			Name:              pulumi.String("example-scvmmms"),
 * 			ResourceGroupName: example.Name,
 * 			Location:          example.Location,
 * 			CustomLocationId:  pulumi.String("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.ExtendedLocation/customLocations/customLocation1"),
 * 			Fqdn:              pulumi.String("example.labtest"),
 * 			Username:          pulumi.String("testUser"),
 * 			Password:          pulumi.String("H@Sh1CoR3!"),
 * 		})
 * 		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.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.systemcenter.VirtualMachineManagerServer;
 * import com.pulumi.azure.systemcenter.VirtualMachineManagerServerArgs;
 * 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .location("West Europe")
 *             .build());
 *         var exampleVirtualMachineManagerServer = new VirtualMachineManagerServer("exampleVirtualMachineManagerServer", VirtualMachineManagerServerArgs.builder()
 *             .name("example-scvmmms")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .customLocationId("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.ExtendedLocation/customLocations/customLocation1")
 *             .fqdn("example.labtest")
 *             .username("testUser")
 *             .password("H@Sh1CoR3!")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   exampleVirtualMachineManagerServer:
 *     type: azure:systemcenter:VirtualMachineManagerServer
 *     name: example
 *     properties:
 *       name: example-scvmmms
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *       customLocationId: /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.ExtendedLocation/customLocations/customLocation1
 *       fqdn: example.labtest
 *       username: testUser
 *       password: H@Sh1CoR3!
 * ```
 * 
 * ## Import
 * System Center Virtual Machine Manager Servers can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:systemcenter/virtualMachineManagerServer:VirtualMachineManagerServer example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.ScVmm/vmmServers/vmmServer1
 * ```
 * @property customLocationId The ID of the Custom Location for the System Center Virtual Machine Manager Server. Changing this forces a new resource to be created.
 * @property fqdn The FQDN of the System Center Virtual Machine Manager Server. Changing this forces a new resource to be created.
 * @property location The Azure Region where the System Center Virtual Machine Manager Server should exist. Changing this forces a new resource to be created.
 * @property name The name of the System Center Virtual Machine Manager Server. Changing this forces a new resource to be created.
 * @property password The password that is used to connect to the System Center Virtual Machine Manager Server. Changing this forces a new resource to be created.
 * @property port The port on which the System Center Virtual Machine Manager Server is listening. Possible values are between `1` and `65535`. Changing this forces a new resource to be created.
 * @property resourceGroupName The name of the Resource Group where the System Center Virtual Machine Manager should exist. Changing this forces a new resource to be created.
 * @property tags A mapping of tags which should be assigned to the System Center Virtual Machine Manager Server.
 * @property username The username that is used to connect to the System Center Virtual Machine Manager Server. Changing this forces a new resource to be created.
 */
public data class VirtualMachineManagerServerArgs(
    public val customLocationId: Output? = null,
    public val fqdn: Output? = null,
    public val location: Output? = null,
    public val name: Output? = null,
    public val password: Output? = null,
    public val port: Output? = null,
    public val resourceGroupName: Output? = null,
    public val tags: Output>? = null,
    public val username: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.systemcenter.VirtualMachineManagerServerArgs =
        com.pulumi.azure.systemcenter.VirtualMachineManagerServerArgs.builder()
            .customLocationId(customLocationId?.applyValue({ args0 -> args0 }))
            .fqdn(fqdn?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .password(password?.applyValue({ args0 -> args0 }))
            .port(port?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .username(username?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [VirtualMachineManagerServerArgs].
 */
@PulumiTagMarker
public class VirtualMachineManagerServerArgsBuilder internal constructor() {
    private var customLocationId: Output? = null

    private var fqdn: Output? = null

    private var location: Output? = null

    private var name: Output? = null

    private var password: Output? = null

    private var port: Output? = null

    private var resourceGroupName: Output? = null

    private var tags: Output>? = null

    private var username: Output? = null

    /**
     * @param value The ID of the Custom Location for the System Center Virtual Machine Manager Server. Changing this forces a new resource to be created.
     */
    @JvmName("ntqgcldsuxicvckx")
    public suspend fun customLocationId(`value`: Output) {
        this.customLocationId = value
    }

    /**
     * @param value The FQDN of the System Center Virtual Machine Manager Server. Changing this forces a new resource to be created.
     */
    @JvmName("dxjojacdghdnliln")
    public suspend fun fqdn(`value`: Output) {
        this.fqdn = value
    }

    /**
     * @param value The Azure Region where the System Center Virtual Machine Manager Server should exist. Changing this forces a new resource to be created.
     */
    @JvmName("cuqhyntxmkxrdktl")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The name of the System Center Virtual Machine Manager Server. Changing this forces a new resource to be created.
     */
    @JvmName("lcdrtcoboxcylvtu")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The password that is used to connect to the System Center Virtual Machine Manager Server. Changing this forces a new resource to be created.
     */
    @JvmName("jyxkalateauiytkb")
    public suspend fun password(`value`: Output) {
        this.password = value
    }

    /**
     * @param value The port on which the System Center Virtual Machine Manager Server is listening. Possible values are between `1` and `65535`. Changing this forces a new resource to be created.
     */
    @JvmName("ahhgiepwxfwqfykn")
    public suspend fun port(`value`: Output) {
        this.port = value
    }

    /**
     * @param value The name of the Resource Group where the System Center Virtual Machine Manager should exist. Changing this forces a new resource to be created.
     */
    @JvmName("wwuxkpmaoouriyib")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value A mapping of tags which should be assigned to the System Center Virtual Machine Manager Server.
     */
    @JvmName("rkqnfenjwarawrsg")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The username that is used to connect to the System Center Virtual Machine Manager Server. Changing this forces a new resource to be created.
     */
    @JvmName("ilkbaiubwfynutsp")
    public suspend fun username(`value`: Output) {
        this.username = value
    }

    /**
     * @param value The ID of the Custom Location for the System Center Virtual Machine Manager Server. Changing this forces a new resource to be created.
     */
    @JvmName("xipoiiegduastkuq")
    public suspend fun customLocationId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customLocationId = mapped
    }

    /**
     * @param value The FQDN of the System Center Virtual Machine Manager Server. Changing this forces a new resource to be created.
     */
    @JvmName("bhrabmvavyofcayw")
    public suspend fun fqdn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fqdn = mapped
    }

    /**
     * @param value The Azure Region where the System Center Virtual Machine Manager Server should exist. Changing this forces a new resource to be created.
     */
    @JvmName("swrcdibhvqsioppp")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The name of the System Center Virtual Machine Manager Server. Changing this forces a new resource to be created.
     */
    @JvmName("yidrlsyoqsrmvdoh")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The password that is used to connect to the System Center Virtual Machine Manager Server. Changing this forces a new resource to be created.
     */
    @JvmName("lbdtnhryigwrsfpl")
    public suspend fun password(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.password = mapped
    }

    /**
     * @param value The port on which the System Center Virtual Machine Manager Server is listening. Possible values are between `1` and `65535`. Changing this forces a new resource to be created.
     */
    @JvmName("ldltmnxvlpbwfudw")
    public suspend fun port(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.port = mapped
    }

    /**
     * @param value The name of the Resource Group where the System Center Virtual Machine Manager should exist. Changing this forces a new resource to be created.
     */
    @JvmName("pebloawiafdrxasf")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value A mapping of tags which should be assigned to the System Center Virtual Machine Manager Server.
     */
    @JvmName("vbqwhgqqrdpdmcrf")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A mapping of tags which should be assigned to the System Center Virtual Machine Manager Server.
     */
    @JvmName("ovabvxikudifrvlx")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The username that is used to connect to the System Center Virtual Machine Manager Server. Changing this forces a new resource to be created.
     */
    @JvmName("xuovuyjiwfqhnfxx")
    public suspend fun username(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.username = mapped
    }

    internal fun build(): VirtualMachineManagerServerArgs = VirtualMachineManagerServerArgs(
        customLocationId = customLocationId,
        fqdn = fqdn,
        location = location,
        name = name,
        password = password,
        port = port,
        resourceGroupName = resourceGroupName,
        tags = tags,
        username = username,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy