Cluster
Cluster details. API Version: 2020-10-01.
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",
ClusterName = "myCluster",
Location = "East US",
ResourceGroupName = "test-rg",
});
});
Content copied to clipboard
package main
import (
azurestackhci "github.com/pulumi/pulumi-azure-native-sdk/azurestackhci"
"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"),
ClusterName: pulumi.String("myCluster"),
Location: pulumi.String("East US"),
ResourceGroupName: pulumi.String("test-rg"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
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")
.clusterName("myCluster")
.location("East US")
.resourceGroupName("test-rg")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:azurestackhci:Cluster myCluster /subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster
Content copied to clipboard
Properties
Link copied to clipboard
App id of cluster AAD identity.
Link copied to clipboard
Tenant id of cluster AAD identity.
Link copied to clipboard
Type of billing applied to the resource.
Link copied to clipboard
The type of identity that created the resource.
Link copied to clipboard
Most recent billing meter timestamp.
Link copied to clipboard
The timestamp of resource last modification (UTC)
Link copied to clipboard
The identity that last modified the resource.
Link copied to clipboard
The type of identity that last modified the resource.
Link copied to clipboard
Most recent cluster sync timestamp.
Link copied to clipboard
Provisioning state.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
First cluster sync timestamp.
Link copied to clipboard
Properties reported by cluster agent.
Link copied to clipboard
Number of days remaining in the trial period.