azure-native.kusto.ClusterPrincipalAssignment
Explore with Pulumi AI
Class representing a cluster principal assignment. Azure REST API version: 2022-12-29. Prior API version in Azure Native 1.x: 2021-01-01.
Other available API versions: 2023-05-02, 2023-08-15.
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 = "App",
ResourceGroupName = "kustorptest",
Role = "AllDatabasesAdmin",
TenantId = "12345678-1234-1234-1234-123456789123",
});
});
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/kusto/v2"
"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("App"),
ResourceGroupName: pulumi.String("kustorptest"),
Role: pulumi.String("AllDatabasesAdmin"),
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 pulumi
import pulumi_azure_native as azure_native
cluster_principal_assignment = azure_native.kusto.ClusterPrincipalAssignment("clusterPrincipalAssignment",
cluster_name="kustoCluster",
principal_assignment_name="kustoprincipal1",
principal_id="87654321-1234-1234-1234-123456789123",
principal_type="App",
resource_group_name="kustorptest",
role="AllDatabasesAdmin",
tenant_id="12345678-1234-1234-1234-123456789123")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const clusterPrincipalAssignment = new azure_native.kusto.ClusterPrincipalAssignment("clusterPrincipalAssignment", {
clusterName: "kustoCluster",
principalAssignmentName: "kustoprincipal1",
principalId: "87654321-1234-1234-1234-123456789123",
principalType: "App",
resourceGroupName: "kustorptest",
role: "AllDatabasesAdmin",
tenantId: "12345678-1234-1234-1234-123456789123",
});
resources:
clusterPrincipalAssignment:
type: azure-native:kusto:ClusterPrincipalAssignment
properties:
clusterName: kustoCluster
principalAssignmentName: kustoprincipal1
principalId: 87654321-1234-1234-1234-123456789123
principalType: App
resourceGroupName: kustorptest
role: AllDatabasesAdmin
tenantId: 12345678-1234-1234-1234-123456789123
Create ClusterPrincipalAssignment Resource
new ClusterPrincipalAssignment(name: string, args: ClusterPrincipalAssignmentArgs, opts?: CustomResourceOptions);
@overload
def ClusterPrincipalAssignment(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_name: Optional[str] = None,
principal_assignment_name: Optional[str] = None,
principal_id: Optional[str] = None,
principal_type: Optional[Union[str, PrincipalType]] = None,
resource_group_name: Optional[str] = None,
role: Optional[Union[str, ClusterPrincipalRole]] = None,
tenant_id: Optional[str] = None)
@overload
def ClusterPrincipalAssignment(resource_name: str,
args: ClusterPrincipalAssignmentArgs,
opts: Optional[ResourceOptions] = None)
func NewClusterPrincipalAssignment(ctx *Context, name string, args ClusterPrincipalAssignmentArgs, opts ...ResourceOption) (*ClusterPrincipalAssignment, error)
public ClusterPrincipalAssignment(string name, ClusterPrincipalAssignmentArgs args, CustomResourceOptions? opts = null)
public ClusterPrincipalAssignment(String name, ClusterPrincipalAssignmentArgs args)
public ClusterPrincipalAssignment(String name, ClusterPrincipalAssignmentArgs args, CustomResourceOptions options)
type: azure-native:kusto:ClusterPrincipalAssignment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterPrincipalAssignmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ClusterPrincipalAssignmentArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ClusterPrincipalAssignmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterPrincipalAssignmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClusterPrincipalAssignmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ClusterPrincipalAssignment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ClusterPrincipalAssignment resource accepts the following input properties:
- Cluster
Name string The name of the Kusto cluster.
- Principal
Id string The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group name.
- Principal
Type string | Pulumi.Azure Native. Kusto. Principal Type Principal type.
- Resource
Group stringName The name of the resource group containing the Kusto cluster.
- Role
string | Pulumi.
Azure Native. Kusto. Cluster Principal Role Cluster principal role.
- Principal
Assignment stringName The name of the Kusto principalAssignment.
- Tenant
Id string The tenant id of the principal
- Cluster
Name string The name of the Kusto cluster.
- Principal
Id string The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group name.
- Principal
Type string | PrincipalType Principal type.
- Resource
Group stringName The name of the resource group containing the Kusto cluster.
- Role
string | Cluster
Principal Role Cluster principal role.
- Principal
Assignment stringName The name of the Kusto principalAssignment.
- Tenant
Id string The tenant id of the principal
- cluster
Name String The name of the Kusto cluster.
- principal
Id String The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group name.
- principal
Type String | PrincipalType Principal type.
- resource
Group StringName The name of the resource group containing the Kusto cluster.
- role
String | Cluster
Principal Role Cluster principal role.
- principal
Assignment StringName The name of the Kusto principalAssignment.
- tenant
Id String The tenant id of the principal
- cluster
Name string The name of the Kusto cluster.
- principal
Id string The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group name.
- principal
Type string | PrincipalType Principal type.
- resource
Group stringName The name of the resource group containing the Kusto cluster.
- role
string | Cluster
Principal Role Cluster principal role.
- principal
Assignment stringName The name of the Kusto principalAssignment.
- tenant
Id string The tenant id of the principal
- cluster_
name str The name of the Kusto cluster.
- principal_
id str The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group name.
- principal_
type str | PrincipalType Principal type.
- resource_
group_ strname The name of the resource group containing the Kusto cluster.
- role
str | Cluster
Principal Role Cluster principal role.
- principal_
assignment_ strname The name of the Kusto principalAssignment.
- tenant_
id str The tenant id of the principal
- cluster
Name String The name of the Kusto cluster.
- principal
Id String The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group name.
- principal
Type String | "App" | "Group" | "User" Principal type.
- resource
Group StringName The name of the resource group containing the Kusto cluster.
- role
String | "All
Databases Admin" | "All Databases Viewer" Cluster principal role.
- principal
Assignment StringName The name of the Kusto principalAssignment.
- tenant
Id String The tenant id of the principal
Outputs
All input properties are implicitly available as output properties. Additionally, the ClusterPrincipalAssignment resource produces the following output properties:
- Aad
Object stringId The service principal object id in AAD (Azure active directory)
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
The name of the resource
- Principal
Name string The principal name
- Provisioning
State string The provisioned state of the resource.
- Tenant
Name string The tenant name of the principal
- Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Aad
Object stringId The service principal object id in AAD (Azure active directory)
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
The name of the resource
- Principal
Name string The principal name
- Provisioning
State string The provisioned state of the resource.
- Tenant
Name string The tenant name of the principal
- Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- aad
Object StringId The service principal object id in AAD (Azure active directory)
- id String
The provider-assigned unique ID for this managed resource.
- name String
The name of the resource
- principal
Name String The principal name
- provisioning
State String The provisioned state of the resource.
- tenant
Name String The tenant name of the principal
- type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- aad
Object stringId The service principal object id in AAD (Azure active directory)
- id string
The provider-assigned unique ID for this managed resource.
- name string
The name of the resource
- principal
Name string The principal name
- provisioning
State string The provisioned state of the resource.
- tenant
Name string The tenant name of the principal
- type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- aad_
object_ strid The service principal object id in AAD (Azure active directory)
- id str
The provider-assigned unique ID for this managed resource.
- name str
The name of the resource
- principal_
name str The principal name
- provisioning_
state str The provisioned state of the resource.
- tenant_
name str The tenant name of the principal
- type str
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- aad
Object StringId The service principal object id in AAD (Azure active directory)
- id String
The provider-assigned unique ID for this managed resource.
- name String
The name of the resource
- principal
Name String The principal name
- provisioning
State String The provisioned state of the resource.
- tenant
Name String The tenant name of the principal
- type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
ClusterPrincipalRole, ClusterPrincipalRoleArgs
- All
Databases Admin - AllDatabasesAdmin
- All
Databases Viewer - AllDatabasesViewer
- Cluster
Principal Role All Databases Admin - AllDatabasesAdmin
- Cluster
Principal Role All Databases Viewer - AllDatabasesViewer
- All
Databases Admin - AllDatabasesAdmin
- All
Databases Viewer - AllDatabasesViewer
- All
Databases Admin - AllDatabasesAdmin
- All
Databases Viewer - AllDatabasesViewer
- ALL_DATABASES_ADMIN
- AllDatabasesAdmin
- ALL_DATABASES_VIEWER
- AllDatabasesViewer
- "All
Databases Admin" - AllDatabasesAdmin
- "All
Databases Viewer" - AllDatabasesViewer
PrincipalType, PrincipalTypeArgs
- App
- App
- Group
- Group
- User
- User
- Principal
Type App - App
- Principal
Type Group - Group
- Principal
Type User - User
- App
- App
- Group
- Group
- User
- User
- App
- App
- Group
- Group
- User
- User
- APP
- App
- GROUP
- Group
- USER
- User
- "App"
- App
- "Group"
- Group
- "User"
- User
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}
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0