
com.pulumi.azure.stack.kotlin.HciClusterArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.stack.kotlin
import com.pulumi.azure.stack.HciClusterArgs.builder
import com.pulumi.azure.stack.kotlin.inputs.HciClusterIdentityArgs
import com.pulumi.azure.stack.kotlin.inputs.HciClusterIdentityArgsBuilder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Manages an Azure Stack HCI Cluster.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* import * as azuread from "@pulumi/azuread";
* const example = azuread.getApplication({
* displayName: "Allowed resource types",
* });
* const current = azure.core.getClientConfig({});
* const exampleResourceGroup = new azure.core.ResourceGroup("example", {
* name: "example-resources",
* location: "West Europe",
* });
* const exampleHciCluster = new azure.stack.HciCluster("example", {
* name: "example-cluster",
* resourceGroupName: exampleResourceGroup.name,
* location: exampleResourceGroup.location,
* clientId: example.then(example => example.applicationId),
* tenantId: current.then(current => current.tenantId),
* identity: {
* type: "SystemAssigned",
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* import pulumi_azuread as azuread
* example = azuread.get_application(display_name="Allowed resource types")
* current = azure.core.get_client_config()
* example_resource_group = azure.core.ResourceGroup("example",
* name="example-resources",
* location="West Europe")
* example_hci_cluster = azure.stack.HciCluster("example",
* name="example-cluster",
* resource_group_name=example_resource_group.name,
* location=example_resource_group.location,
* client_id=example.application_id,
* tenant_id=current.tenant_id,
* identity=azure.stack.HciClusterIdentityArgs(
* type="SystemAssigned",
* ))
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* using AzureAD = Pulumi.AzureAD;
* return await Deployment.RunAsync(() =>
* {
* var example = AzureAD.GetApplication.Invoke(new()
* {
* DisplayName = "Allowed resource types",
* });
* var current = Azure.Core.GetClientConfig.Invoke();
* var exampleResourceGroup = new Azure.Core.ResourceGroup("example", new()
* {
* Name = "example-resources",
* Location = "West Europe",
* });
* var exampleHciCluster = new Azure.Stack.HciCluster("example", new()
* {
* Name = "example-cluster",
* ResourceGroupName = exampleResourceGroup.Name,
* Location = exampleResourceGroup.Location,
* ClientId = example.Apply(getApplicationResult => getApplicationResult.ApplicationId),
* TenantId = current.Apply(getClientConfigResult => getClientConfigResult.TenantId),
* Identity = new Azure.Stack.Inputs.HciClusterIdentityArgs
* {
* Type = "SystemAssigned",
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/stack"
* "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := azuread.LookupApplication(ctx, &azuread.LookupApplicationArgs{
* DisplayName: pulumi.StringRef("Allowed resource types"),
* }, nil)
* if err != nil {
* return err
* }
* current, err := core.GetClientConfig(ctx, nil, nil)
* if err != nil {
* return err
* }
* exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
* Name: pulumi.String("example-resources"),
* Location: pulumi.String("West Europe"),
* })
* if err != nil {
* return err
* }
* _, err = stack.NewHciCluster(ctx, "example", &stack.HciClusterArgs{
* Name: pulumi.String("example-cluster"),
* ResourceGroupName: exampleResourceGroup.Name,
* Location: exampleResourceGroup.Location,
* ClientId: pulumi.String(example.ApplicationId),
* TenantId: pulumi.String(current.TenantId),
* Identity: &stack.HciClusterIdentityArgs{
* Type: pulumi.String("SystemAssigned"),
* },
* })
* 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.azuread.AzureadFunctions;
* import com.pulumi.azuread.inputs.GetApplicationArgs;
* import com.pulumi.azure.core.CoreFunctions;
* import com.pulumi.azure.core.ResourceGroup;
* import com.pulumi.azure.core.ResourceGroupArgs;
* import com.pulumi.azure.stack.HciCluster;
* import com.pulumi.azure.stack.HciClusterArgs;
* import com.pulumi.azure.stack.inputs.HciClusterIdentityArgs;
* 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) {
* final var example = AzureadFunctions.getApplication(GetApplicationArgs.builder()
* .displayName("Allowed resource types")
* .build());
* final var current = CoreFunctions.getClientConfig();
* var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
* .name("example-resources")
* .location("West Europe")
* .build());
* var exampleHciCluster = new HciCluster("exampleHciCluster", HciClusterArgs.builder()
* .name("example-cluster")
* .resourceGroupName(exampleResourceGroup.name())
* .location(exampleResourceGroup.location())
* .clientId(example.applyValue(getApplicationResult -> getApplicationResult.applicationId()))
* .tenantId(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
* .identity(HciClusterIdentityArgs.builder()
* .type("SystemAssigned")
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* exampleResourceGroup:
* type: azure:core:ResourceGroup
* name: example
* properties:
* name: example-resources
* location: West Europe
* exampleHciCluster:
* type: azure:stack:HciCluster
* name: example
* properties:
* name: example-cluster
* resourceGroupName: ${exampleResourceGroup.name}
* location: ${exampleResourceGroup.location}
* clientId: ${example.applicationId}
* tenantId: ${current.tenantId}
* identity:
* type: SystemAssigned
* variables:
* example:
* fn::invoke:
* Function: azuread:getApplication
* Arguments:
* displayName: Allowed resource types
* current:
* fn::invoke:
* Function: azure:core:getClientConfig
* Arguments: {}
* ```
*
* ## Import
* Azure Stack HCI Clusters can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:stack/hciCluster:HciCluster example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AzureStackHCI/clusters/cluster1
* ```
* @property automanageConfigurationId The ID of the Automanage Configuration assigned to the Azure Stack HCI Cluster.
* @property clientId The Client ID of the Azure Active Directory Application which is used by the Azure Stack HCI Cluster. Changing this forces a new resource to be created.
* @property identity An `identity` block as defined below.
* @property location The Azure Region where the Azure Stack HCI Cluster should exist. Changing this forces a new resource to be created.
* @property name The name which should be used for this Azure Stack HCI Cluster. Changing this forces a new resource to be created.
* @property resourceGroupName The name of the Resource Group where the Azure Stack HCI Cluster should exist. Changing this forces a new resource to be created.
* @property tags A mapping of tags which should be assigned to the Azure Stack HCI Cluster.
* @property tenantId The Tenant ID of the Azure Active Directory which is used by the Azure Stack HCI Cluster. Changing this forces a new resource to be created.
* > **NOTE** If unspecified the Tenant ID of the Provider will be used.
*/
public data class HciClusterArgs(
public val automanageConfigurationId: Output? = null,
public val clientId: Output? = null,
public val identity: Output? = null,
public val location: Output? = null,
public val name: Output? = null,
public val resourceGroupName: Output? = null,
public val tags: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy