ClusterPrincipalAssignmentArgs

data class ClusterPrincipalAssignmentArgs(val clusterName: Output<String>? = null, val name: Output<String>? = null, val principalId: Output<String>? = null, val principalType: Output<String>? = null, val resourceGroupName: Output<String>? = null, val role: Output<String>? = null, val tenantId: Output<String>? = null) : ConvertibleToJava<ClusterPrincipalAssignmentArgs>

Manages a Kusto Cluster Principal Assignment.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.CoreFunctions;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.kusto.Cluster;
import com.pulumi.azure.kusto.ClusterArgs;
import com.pulumi.azure.kusto.inputs.ClusterSkuArgs;
import com.pulumi.azure.kusto.ClusterPrincipalAssignment;
import com.pulumi.azure.kusto.ClusterPrincipalAssignmentArgs;
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 current = CoreFunctions.getClientConfig();
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleCluster = new Cluster("exampleCluster", ClusterArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.sku(ClusterSkuArgs.builder()
.name("Standard_D13_v2")
.capacity(2)
.build())
.build());
var exampleClusterPrincipalAssignment = new ClusterPrincipalAssignment("exampleClusterPrincipalAssignment", ClusterPrincipalAssignmentArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.clusterName(exampleCluster.name())
.tenantId(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
.principalId(current.applyValue(getClientConfigResult -> getClientConfigResult.clientId()))
.principalType("App")
.role("AllDatabasesAdmin")
.build());
}
}

Import

Data Explorer Cluster Principal Assignments can be imported using the resource id, e.g.

$ pulumi import azure:kusto/clusterPrincipalAssignment:ClusterPrincipalAssignment example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Kusto/clusters/cluster1/principalAssignments/assignment1

Constructors

Link copied to clipboard
fun ClusterPrincipalAssignmentArgs(clusterName: Output<String>? = null, name: Output<String>? = null, principalId: Output<String>? = null, principalType: Output<String>? = null, resourceGroupName: Output<String>? = null, role: Output<String>? = null, tenantId: Output<String>? = null)

Functions

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

Properties

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

The name of the cluster in which to create the resource. Changing this forces a new resource to be created.

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

The name of the Kusto cluster principal assignment. Changing this forces a new resource to be created.

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

The object id of the principal. Changing this forces a new resource to be created.

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

The type of the principal. Valid values include App, Group, User. Changing this forces a new resource to be created.

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

The name of the resource group in which to create the resource. Changing this forces a new resource to be created.

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

The cluster role assigned to the principal. Valid values include AllDatabasesAdmin and AllDatabasesViewer. Changing this forces a new resource to be created.

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

The tenant id in which the principal resides. Changing this forces a new resource to be created.