HciClusterArgs

data class HciClusterArgs(val automanageConfigurationId: Output<String>? = null, val clientId: Output<String>? = null, val identity: Output<HciClusterIdentityArgs>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val tenantId: Output<String>? = null) : ConvertibleToJava<HciClusterArgs>

Manages an Azure Stack HCI Cluster.

Example Usage

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",
},
});
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={
"type": "SystemAssigned",
})
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",
},
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/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, map[string]interface{}{}, 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
})
}
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(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
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.applicationId())
.tenantId(current.tenantId())
.identity(HciClusterIdentityArgs.builder()
.type("SystemAssigned")
.build())
.build());
}
}
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: {}

API Providers

This resource uses the following Azure API Providers:

  • Microsoft.AutoManage: 2022-05-04

  • Microsoft.AzureStackHCI: 2024-01-01, 2022-05-04

Import

Azure Stack HCI Clusters can be imported using the resource id, e.g.

$ pulumi import azure:stack/hciCluster:HciCluster example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AzureStackHCI/clusters/cluster1

Constructors

Link copied to clipboard
constructor(automanageConfigurationId: Output<String>? = null, clientId: Output<String>? = null, identity: Output<HciClusterIdentityArgs>? = null, location: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null, tenantId: Output<String>? = null)

Properties

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

The ID of the Automanage Configuration assigned to the Azure Stack HCI Cluster.

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

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.

Link copied to clipboard
val identity: Output<HciClusterIdentityArgs>? = null

An identity block as defined below.

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

The Azure Region where the Azure Stack HCI Cluster should exist. Changing this forces a new resource to be created.

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

The name which should be used for this Azure Stack HCI Cluster. Changing this forces a new resource to be created.

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

The name of the Resource Group where the Azure Stack HCI Cluster should exist. Changing this forces a new resource to be created.

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

A mapping of tags which should be assigned to the Azure Stack HCI Cluster.

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

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.

Functions

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