ClusterArgs

data class ClusterArgs(val aadApplicationObjectId: Output<String>? = null, val aadClientId: Output<String>? = null, val aadServicePrincipalObjectId: Output<String>? = null, val aadTenantId: Output<String>? = null, val cloudManagementEndpoint: Output<String>? = null, val clusterName: Output<String>? = null, val desiredProperties: Output<ClusterDesiredPropertiesArgs>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val softwareAssuranceProperties: Output<SoftwareAssurancePropertiesArgs>? = null, val tags: Output<Map<String, String>>? = null, val type: Output<Either<String, ManagedServiceIdentityType>>? = null, val userAssignedIdentities: Output<List<String>>? = null) : ConvertibleToJava<ClusterArgs>

Cluster details. Uses Azure REST API version 2023-03-01. In version 1.x of the Azure Native provider, it used API version 2020-10-01. Other available API versions: 2022-01-01, 2022-09-01, 2022-12-15-preview, 2023-06-01, 2023-08-01, 2023-08-01-preview, 2023-11-01-preview, 2024-01-01, 2024-02-15-preview, 2024-04-01, 2024-09-01-preview, 2024-12-01-preview.

Example Usage

Create cluster

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var cluster = new AzureNative.AzureStackHCI.Cluster("cluster", new()
{
AadClientId = "24a6e53d-04e5-44d2-b7cc-1b732a847dfc",
AadTenantId = "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94",
CloudManagementEndpoint = "https://98294836-31be-4668-aeae-698667faf99b.waconazure.com",
ClusterName = "myCluster",
Location = "East US",
ResourceGroupName = "test-rg",
Type = AzureNative.AzureStackHCI.ManagedServiceIdentityType.SystemAssigned,
});
});
package main
import (
azurestackhci "github.com/pulumi/pulumi-azure-native-sdk/azurestackhci/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := azurestackhci.NewCluster(ctx, "cluster", &azurestackhci.ClusterArgs{
AadClientId: pulumi.String("24a6e53d-04e5-44d2-b7cc-1b732a847dfc"),
AadTenantId: pulumi.String("7e589cc1-a8b6-4dff-91bd-5ec0fa18db94"),
CloudManagementEndpoint: pulumi.String("https://98294836-31be-4668-aeae-698667faf99b.waconazure.com"),
ClusterName: pulumi.String("myCluster"),
Location: pulumi.String("East US"),
ResourceGroupName: pulumi.String("test-rg"),
Type: pulumi.String(azurestackhci.ManagedServiceIdentityTypeSystemAssigned),
})
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.azurestackhci.Cluster;
import com.pulumi.azurenative.azurestackhci.ClusterArgs;
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 cluster = new Cluster("cluster", ClusterArgs.builder()
.aadClientId("24a6e53d-04e5-44d2-b7cc-1b732a847dfc")
.aadTenantId("7e589cc1-a8b6-4dff-91bd-5ec0fa18db94")
.cloudManagementEndpoint("https://98294836-31be-4668-aeae-698667faf99b.waconazure.com")
.clusterName("myCluster")
.location("East US")
.resourceGroupName("test-rg")
.type("SystemAssigned")
.build());
}
}

Import

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

$ pulumi import azure-native:azurestackhci:Cluster myCluster /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}

Constructors

Link copied to clipboard
constructor(aadApplicationObjectId: Output<String>? = null, aadClientId: Output<String>? = null, aadServicePrincipalObjectId: Output<String>? = null, aadTenantId: Output<String>? = null, cloudManagementEndpoint: Output<String>? = null, clusterName: Output<String>? = null, desiredProperties: Output<ClusterDesiredPropertiesArgs>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, softwareAssuranceProperties: Output<SoftwareAssurancePropertiesArgs>? = null, tags: Output<Map<String, String>>? = null, type: Output<Either<String, ManagedServiceIdentityType>>? = null, userAssignedIdentities: Output<List<String>>? = null)

Properties

Link copied to clipboard
val aadApplicationObjectId: Output<String>? = null

Object id of cluster AAD identity.

Link copied to clipboard
val aadClientId: Output<String>? = null

App id of cluster AAD identity.

Link copied to clipboard
val aadServicePrincipalObjectId: Output<String>? = null

Id of cluster identity service principal.

Link copied to clipboard
val aadTenantId: Output<String>? = null

Tenant id of cluster AAD identity.

Link copied to clipboard
val cloudManagementEndpoint: Output<String>? = null

Endpoint configured for management from the Azure portal.

Link copied to clipboard
val clusterName: Output<String>? = null

The name of the cluster.

Link copied to clipboard

Desired properties of the cluster.

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard

Software Assurance properties of the cluster.

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

Resource tags.

Link copied to clipboard
val type: Output<Either<String, ManagedServiceIdentityType>>? = null

Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).

Link copied to clipboard
val userAssignedIdentities: Output<List<String>>? = null

The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.

Functions

Link copied to clipboard
open override fun toJava(): ClusterArgs