Cluster Principal Assignment Args
Class representing a cluster principal assignment. Uses Azure REST API version 2024-04-13. In version 2.x of the Azure Native provider, it used API version 2022-12-29. Other available API versions: 2019-11-09, 2020-02-15, 2020-06-14, 2020-09-18, 2021-01-01, 2021-08-27, 2022-02-01, 2022-07-07, 2022-11-11, 2022-12-29, 2023-05-02, 2023-08-15. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native kusto [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
KustoClusterPrincipalAssignmentsCreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var clusterPrincipalAssignment = new AzureNative.Kusto.ClusterPrincipalAssignment("clusterPrincipalAssignment", new()
{
ClusterName = "kustoCluster",
PrincipalAssignmentName = "kustoprincipal1",
PrincipalId = "87654321-1234-1234-1234-123456789123",
PrincipalType = AzureNative.Kusto.PrincipalType.App,
ResourceGroupName = "kustorptest",
Role = AzureNative.Kusto.ClusterPrincipalRole.AllDatabasesAdmin,
TenantId = "12345678-1234-1234-1234-123456789123",
});
});
package main
import (
kusto "github.com/pulumi/pulumi-azure-native-sdk/kusto/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := kusto.NewClusterPrincipalAssignment(ctx, "clusterPrincipalAssignment", &kusto.ClusterPrincipalAssignmentArgs{
ClusterName: pulumi.String("kustoCluster"),
PrincipalAssignmentName: pulumi.String("kustoprincipal1"),
PrincipalId: pulumi.String("87654321-1234-1234-1234-123456789123"),
PrincipalType: pulumi.String(kusto.PrincipalTypeApp),
ResourceGroupName: pulumi.String("kustorptest"),
Role: pulumi.String(kusto.ClusterPrincipalRoleAllDatabasesAdmin),
TenantId: pulumi.String("12345678-1234-1234-1234-123456789123"),
})
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.kusto.ClusterPrincipalAssignment;
import com.pulumi.azurenative.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) {
var clusterPrincipalAssignment = new ClusterPrincipalAssignment("clusterPrincipalAssignment", ClusterPrincipalAssignmentArgs.builder()
.clusterName("kustoCluster")
.principalAssignmentName("kustoprincipal1")
.principalId("87654321-1234-1234-1234-123456789123")
.principalType("App")
.resourceGroupName("kustorptest")
.role("AllDatabasesAdmin")
.tenantId("12345678-1234-1234-1234-123456789123")
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:kusto:ClusterPrincipalAssignment kustoCluster/kustoprincipal1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/principalAssignments/{principalAssignmentName}
Constructors
Properties
The name of the Kusto cluster.
The name of the Kusto principalAssignment.
The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group name.
Principal type.
The name of the resource group. The name is case insensitive.
Cluster principal role.