We recommend using Azure Native.
azure.kusto.DatabasePrincipalAssignment
Explore with Pulumi AI
Manages a Kusto (also known as Azure Data Explorer) Database Principal Assignment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const current = azure.core.getClientConfig({});
const example = new azure.core.ResourceGroup("example", {
name: "KustoRG",
location: "West Europe",
});
const exampleCluster = new azure.kusto.Cluster("example", {
name: "kustocluster",
location: example.location,
resourceGroupName: example.name,
sku: {
name: "Standard_D13_v2",
capacity: 2,
},
});
const exampleDatabase = new azure.kusto.Database("example", {
name: "KustoDatabase",
resourceGroupName: example.name,
location: example.location,
clusterName: exampleCluster.name,
hotCachePeriod: "P7D",
softDeletePeriod: "P31D",
});
const exampleDatabasePrincipalAssignment = new azure.kusto.DatabasePrincipalAssignment("example", {
name: "KustoPrincipalAssignment",
resourceGroupName: example.name,
clusterName: exampleCluster.name,
databaseName: exampleDatabase.name,
tenantId: current.then(current => current.tenantId),
principalId: current.then(current => current.clientId),
principalType: "App",
role: "Viewer",
});
import pulumi
import pulumi_azure as azure
current = azure.core.get_client_config()
example = azure.core.ResourceGroup("example",
name="KustoRG",
location="West Europe")
example_cluster = azure.kusto.Cluster("example",
name="kustocluster",
location=example.location,
resource_group_name=example.name,
sku={
"name": "Standard_D13_v2",
"capacity": 2,
})
example_database = azure.kusto.Database("example",
name="KustoDatabase",
resource_group_name=example.name,
location=example.location,
cluster_name=example_cluster.name,
hot_cache_period="P7D",
soft_delete_period="P31D")
example_database_principal_assignment = azure.kusto.DatabasePrincipalAssignment("example",
name="KustoPrincipalAssignment",
resource_group_name=example.name,
cluster_name=example_cluster.name,
database_name=example_database.name,
tenant_id=current.tenant_id,
principal_id=current.client_id,
principal_type="App",
role="Viewer")
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/kusto"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
current, err := core.GetClientConfig(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("KustoRG"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleCluster, err := kusto.NewCluster(ctx, "example", &kusto.ClusterArgs{
Name: pulumi.String("kustocluster"),
Location: example.Location,
ResourceGroupName: example.Name,
Sku: &kusto.ClusterSkuArgs{
Name: pulumi.String("Standard_D13_v2"),
Capacity: pulumi.Int(2),
},
})
if err != nil {
return err
}
exampleDatabase, err := kusto.NewDatabase(ctx, "example", &kusto.DatabaseArgs{
Name: pulumi.String("KustoDatabase"),
ResourceGroupName: example.Name,
Location: example.Location,
ClusterName: exampleCluster.Name,
HotCachePeriod: pulumi.String("P7D"),
SoftDeletePeriod: pulumi.String("P31D"),
})
if err != nil {
return err
}
_, err = kusto.NewDatabasePrincipalAssignment(ctx, "example", &kusto.DatabasePrincipalAssignmentArgs{
Name: pulumi.String("KustoPrincipalAssignment"),
ResourceGroupName: example.Name,
ClusterName: exampleCluster.Name,
DatabaseName: exampleDatabase.Name,
TenantId: pulumi.String(current.TenantId),
PrincipalId: pulumi.String(current.ClientId),
PrincipalType: pulumi.String("App"),
Role: pulumi.String("Viewer"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var current = Azure.Core.GetClientConfig.Invoke();
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "KustoRG",
Location = "West Europe",
});
var exampleCluster = new Azure.Kusto.Cluster("example", new()
{
Name = "kustocluster",
Location = example.Location,
ResourceGroupName = example.Name,
Sku = new Azure.Kusto.Inputs.ClusterSkuArgs
{
Name = "Standard_D13_v2",
Capacity = 2,
},
});
var exampleDatabase = new Azure.Kusto.Database("example", new()
{
Name = "KustoDatabase",
ResourceGroupName = example.Name,
Location = example.Location,
ClusterName = exampleCluster.Name,
HotCachePeriod = "P7D",
SoftDeletePeriod = "P31D",
});
var exampleDatabasePrincipalAssignment = new Azure.Kusto.DatabasePrincipalAssignment("example", new()
{
Name = "KustoPrincipalAssignment",
ResourceGroupName = example.Name,
ClusterName = exampleCluster.Name,
DatabaseName = exampleDatabase.Name,
TenantId = current.Apply(getClientConfigResult => getClientConfigResult.TenantId),
PrincipalId = current.Apply(getClientConfigResult => getClientConfigResult.ClientId),
PrincipalType = "App",
Role = "Viewer",
});
});
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.Database;
import com.pulumi.azure.kusto.DatabaseArgs;
import com.pulumi.azure.kusto.DatabasePrincipalAssignment;
import com.pulumi.azure.kusto.DatabasePrincipalAssignmentArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("KustoRG")
.location("West Europe")
.build());
var exampleCluster = new Cluster("exampleCluster", ClusterArgs.builder()
.name("kustocluster")
.location(example.location())
.resourceGroupName(example.name())
.sku(ClusterSkuArgs.builder()
.name("Standard_D13_v2")
.capacity(2)
.build())
.build());
var exampleDatabase = new Database("exampleDatabase", DatabaseArgs.builder()
.name("KustoDatabase")
.resourceGroupName(example.name())
.location(example.location())
.clusterName(exampleCluster.name())
.hotCachePeriod("P7D")
.softDeletePeriod("P31D")
.build());
var exampleDatabasePrincipalAssignment = new DatabasePrincipalAssignment("exampleDatabasePrincipalAssignment", DatabasePrincipalAssignmentArgs.builder()
.name("KustoPrincipalAssignment")
.resourceGroupName(example.name())
.clusterName(exampleCluster.name())
.databaseName(exampleDatabase.name())
.tenantId(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
.principalId(current.applyValue(getClientConfigResult -> getClientConfigResult.clientId()))
.principalType("App")
.role("Viewer")
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: KustoRG
location: West Europe
exampleCluster:
type: azure:kusto:Cluster
name: example
properties:
name: kustocluster
location: ${example.location}
resourceGroupName: ${example.name}
sku:
name: Standard_D13_v2
capacity: 2
exampleDatabase:
type: azure:kusto:Database
name: example
properties:
name: KustoDatabase
resourceGroupName: ${example.name}
location: ${example.location}
clusterName: ${exampleCluster.name}
hotCachePeriod: P7D
softDeletePeriod: P31D
exampleDatabasePrincipalAssignment:
type: azure:kusto:DatabasePrincipalAssignment
name: example
properties:
name: KustoPrincipalAssignment
resourceGroupName: ${example.name}
clusterName: ${exampleCluster.name}
databaseName: ${exampleDatabase.name}
tenantId: ${current.tenantId}
principalId: ${current.clientId}
principalType: App
role: Viewer
variables:
current:
fn::invoke:
Function: azure:core:getClientConfig
Arguments: {}
Create DatabasePrincipalAssignment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DatabasePrincipalAssignment(name: string, args: DatabasePrincipalAssignmentArgs, opts?: CustomResourceOptions);
@overload
def DatabasePrincipalAssignment(resource_name: str,
args: DatabasePrincipalAssignmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DatabasePrincipalAssignment(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_name: Optional[str] = None,
database_name: Optional[str] = None,
principal_id: Optional[str] = None,
principal_type: Optional[str] = None,
resource_group_name: Optional[str] = None,
role: Optional[str] = None,
tenant_id: Optional[str] = None,
name: Optional[str] = None)
func NewDatabasePrincipalAssignment(ctx *Context, name string, args DatabasePrincipalAssignmentArgs, opts ...ResourceOption) (*DatabasePrincipalAssignment, error)
public DatabasePrincipalAssignment(string name, DatabasePrincipalAssignmentArgs args, CustomResourceOptions? opts = null)
public DatabasePrincipalAssignment(String name, DatabasePrincipalAssignmentArgs args)
public DatabasePrincipalAssignment(String name, DatabasePrincipalAssignmentArgs args, CustomResourceOptions options)
type: azure:kusto:DatabasePrincipalAssignment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DatabasePrincipalAssignmentArgs
- 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 DatabasePrincipalAssignmentArgs
- 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 DatabasePrincipalAssignmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DatabasePrincipalAssignmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DatabasePrincipalAssignmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var databasePrincipalAssignmentResource = new Azure.Kusto.DatabasePrincipalAssignment("databasePrincipalAssignmentResource", new()
{
ClusterName = "string",
DatabaseName = "string",
PrincipalId = "string",
PrincipalType = "string",
ResourceGroupName = "string",
Role = "string",
TenantId = "string",
Name = "string",
});
example, err := kusto.NewDatabasePrincipalAssignment(ctx, "databasePrincipalAssignmentResource", &kusto.DatabasePrincipalAssignmentArgs{
ClusterName: pulumi.String("string"),
DatabaseName: pulumi.String("string"),
PrincipalId: pulumi.String("string"),
PrincipalType: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
Role: pulumi.String("string"),
TenantId: pulumi.String("string"),
Name: pulumi.String("string"),
})
var databasePrincipalAssignmentResource = new DatabasePrincipalAssignment("databasePrincipalAssignmentResource", DatabasePrincipalAssignmentArgs.builder()
.clusterName("string")
.databaseName("string")
.principalId("string")
.principalType("string")
.resourceGroupName("string")
.role("string")
.tenantId("string")
.name("string")
.build());
database_principal_assignment_resource = azure.kusto.DatabasePrincipalAssignment("databasePrincipalAssignmentResource",
cluster_name="string",
database_name="string",
principal_id="string",
principal_type="string",
resource_group_name="string",
role="string",
tenant_id="string",
name="string")
const databasePrincipalAssignmentResource = new azure.kusto.DatabasePrincipalAssignment("databasePrincipalAssignmentResource", {
clusterName: "string",
databaseName: "string",
principalId: "string",
principalType: "string",
resourceGroupName: "string",
role: "string",
tenantId: "string",
name: "string",
});
type: azure:kusto:DatabasePrincipalAssignment
properties:
clusterName: string
databaseName: string
name: string
principalId: string
principalType: string
resourceGroupName: string
role: string
tenantId: string
DatabasePrincipalAssignment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DatabasePrincipalAssignment resource accepts the following input properties:
- Cluster
Name string - The name of the cluster in which to create the resource. Changing this forces a new resource to be created.
- Database
Name string - The name of the database in which to create the resource. Changing this forces a new resource to be created.
- Principal
Id string - The object id of the principal. Changing this forces a new resource to be created.
- Principal
Type string - The type of the principal. Valid values include
App
,Group
,User
. Changing this forces a new resource to be created. - Resource
Group stringName - The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- Role string
- The database role assigned to the principal. Valid values include
Admin
,Ingestor
,Monitor
,UnrestrictedViewer
,User
andViewer
. Changing this forces a new resource to be created. - Tenant
Id string - The tenant id in which the principal resides. Changing this forces a new resource to be created.
- Name string
- The name of the kusto principal assignment. Changing this forces a new resource to be created.
- Cluster
Name string - The name of the cluster in which to create the resource. Changing this forces a new resource to be created.
- Database
Name string - The name of the database in which to create the resource. Changing this forces a new resource to be created.
- Principal
Id string - The object id of the principal. Changing this forces a new resource to be created.
- Principal
Type string - The type of the principal. Valid values include
App
,Group
,User
. Changing this forces a new resource to be created. - Resource
Group stringName - The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- Role string
- The database role assigned to the principal. Valid values include
Admin
,Ingestor
,Monitor
,UnrestrictedViewer
,User
andViewer
. Changing this forces a new resource to be created. - Tenant
Id string - The tenant id in which the principal resides. Changing this forces a new resource to be created.
- Name string
- The name of the kusto principal assignment. Changing this forces a new resource to be created.
- cluster
Name String - The name of the cluster in which to create the resource. Changing this forces a new resource to be created.
- database
Name String - The name of the database in which to create the resource. Changing this forces a new resource to be created.
- principal
Id String - The object id of the principal. Changing this forces a new resource to be created.
- principal
Type String - The type of the principal. Valid values include
App
,Group
,User
. Changing this forces a new resource to be created. - resource
Group StringName - The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- role String
- The database role assigned to the principal. Valid values include
Admin
,Ingestor
,Monitor
,UnrestrictedViewer
,User
andViewer
. Changing this forces a new resource to be created. - tenant
Id String - The tenant id in which the principal resides. Changing this forces a new resource to be created.
- name String
- The name of the kusto principal assignment. Changing this forces a new resource to be created.
- cluster
Name string - The name of the cluster in which to create the resource. Changing this forces a new resource to be created.
- database
Name string - The name of the database in which to create the resource. Changing this forces a new resource to be created.
- principal
Id string - The object id of the principal. Changing this forces a new resource to be created.
- principal
Type string - The type of the principal. Valid values include
App
,Group
,User
. Changing this forces a new resource to be created. - resource
Group stringName - The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- role string
- The database role assigned to the principal. Valid values include
Admin
,Ingestor
,Monitor
,UnrestrictedViewer
,User
andViewer
. Changing this forces a new resource to be created. - tenant
Id string - The tenant id in which the principal resides. Changing this forces a new resource to be created.
- name string
- The name of the kusto principal assignment. Changing this forces a new resource to be created.
- cluster_
name str - The name of the cluster in which to create the resource. Changing this forces a new resource to be created.
- database_
name str - The name of the database in which to create the resource. Changing this forces a new resource to be created.
- principal_
id str - The object id of the principal. Changing this forces a new resource to be created.
- principal_
type str - The type of the principal. Valid values include
App
,Group
,User
. Changing this forces a new resource to be created. - resource_
group_ strname - The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- role str
- The database role assigned to the principal. Valid values include
Admin
,Ingestor
,Monitor
,UnrestrictedViewer
,User
andViewer
. Changing this forces a new resource to be created. - tenant_
id str - The tenant id in which the principal resides. Changing this forces a new resource to be created.
- name str
- The name of the kusto principal assignment. Changing this forces a new resource to be created.
- cluster
Name String - The name of the cluster in which to create the resource. Changing this forces a new resource to be created.
- database
Name String - The name of the database in which to create the resource. Changing this forces a new resource to be created.
- principal
Id String - The object id of the principal. Changing this forces a new resource to be created.
- principal
Type String - The type of the principal. Valid values include
App
,Group
,User
. Changing this forces a new resource to be created. - resource
Group StringName - The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- role String
- The database role assigned to the principal. Valid values include
Admin
,Ingestor
,Monitor
,UnrestrictedViewer
,User
andViewer
. Changing this forces a new resource to be created. - tenant
Id String - The tenant id in which the principal resides. Changing this forces a new resource to be created.
- name String
- The name of the kusto principal assignment. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the DatabasePrincipalAssignment resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Principal
Name string - The name of the principal.
- Tenant
Name string - The name of the tenant.
- Id string
- The provider-assigned unique ID for this managed resource.
- Principal
Name string - The name of the principal.
- Tenant
Name string - The name of the tenant.
- id String
- The provider-assigned unique ID for this managed resource.
- principal
Name String - The name of the principal.
- tenant
Name String - The name of the tenant.
- id string
- The provider-assigned unique ID for this managed resource.
- principal
Name string - The name of the principal.
- tenant
Name string - The name of the tenant.
- id str
- The provider-assigned unique ID for this managed resource.
- principal_
name str - The name of the principal.
- tenant_
name str - The name of the tenant.
- id String
- The provider-assigned unique ID for this managed resource.
- principal
Name String - The name of the principal.
- tenant
Name String - The name of the tenant.
Look up Existing DatabasePrincipalAssignment Resource
Get an existing DatabasePrincipalAssignment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DatabasePrincipalAssignmentState, opts?: CustomResourceOptions): DatabasePrincipalAssignment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_name: Optional[str] = None,
database_name: Optional[str] = None,
name: Optional[str] = None,
principal_id: Optional[str] = None,
principal_name: Optional[str] = None,
principal_type: Optional[str] = None,
resource_group_name: Optional[str] = None,
role: Optional[str] = None,
tenant_id: Optional[str] = None,
tenant_name: Optional[str] = None) -> DatabasePrincipalAssignment
func GetDatabasePrincipalAssignment(ctx *Context, name string, id IDInput, state *DatabasePrincipalAssignmentState, opts ...ResourceOption) (*DatabasePrincipalAssignment, error)
public static DatabasePrincipalAssignment Get(string name, Input<string> id, DatabasePrincipalAssignmentState? state, CustomResourceOptions? opts = null)
public static DatabasePrincipalAssignment get(String name, Output<String> id, DatabasePrincipalAssignmentState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cluster
Name string - The name of the cluster in which to create the resource. Changing this forces a new resource to be created.
- Database
Name string - The name of the database in which to create the resource. Changing this forces a new resource to be created.
- Name string
- The name of the kusto principal assignment. Changing this forces a new resource to be created.
- Principal
Id string - The object id of the principal. Changing this forces a new resource to be created.
- Principal
Name string - The name of the principal.
- Principal
Type string - The type of the principal. Valid values include
App
,Group
,User
. Changing this forces a new resource to be created. - Resource
Group stringName - The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- Role string
- The database role assigned to the principal. Valid values include
Admin
,Ingestor
,Monitor
,UnrestrictedViewer
,User
andViewer
. Changing this forces a new resource to be created. - Tenant
Id string - The tenant id in which the principal resides. Changing this forces a new resource to be created.
- Tenant
Name string - The name of the tenant.
- Cluster
Name string - The name of the cluster in which to create the resource. Changing this forces a new resource to be created.
- Database
Name string - The name of the database in which to create the resource. Changing this forces a new resource to be created.
- Name string
- The name of the kusto principal assignment. Changing this forces a new resource to be created.
- Principal
Id string - The object id of the principal. Changing this forces a new resource to be created.
- Principal
Name string - The name of the principal.
- Principal
Type string - The type of the principal. Valid values include
App
,Group
,User
. Changing this forces a new resource to be created. - Resource
Group stringName - The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- Role string
- The database role assigned to the principal. Valid values include
Admin
,Ingestor
,Monitor
,UnrestrictedViewer
,User
andViewer
. Changing this forces a new resource to be created. - Tenant
Id string - The tenant id in which the principal resides. Changing this forces a new resource to be created.
- Tenant
Name string - The name of the tenant.
- cluster
Name String - The name of the cluster in which to create the resource. Changing this forces a new resource to be created.
- database
Name String - The name of the database in which to create the resource. Changing this forces a new resource to be created.
- name String
- The name of the kusto principal assignment. Changing this forces a new resource to be created.
- principal
Id String - The object id of the principal. Changing this forces a new resource to be created.
- principal
Name String - The name of the principal.
- principal
Type String - The type of the principal. Valid values include
App
,Group
,User
. Changing this forces a new resource to be created. - resource
Group StringName - The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- role String
- The database role assigned to the principal. Valid values include
Admin
,Ingestor
,Monitor
,UnrestrictedViewer
,User
andViewer
. Changing this forces a new resource to be created. - tenant
Id String - The tenant id in which the principal resides. Changing this forces a new resource to be created.
- tenant
Name String - The name of the tenant.
- cluster
Name string - The name of the cluster in which to create the resource. Changing this forces a new resource to be created.
- database
Name string - The name of the database in which to create the resource. Changing this forces a new resource to be created.
- name string
- The name of the kusto principal assignment. Changing this forces a new resource to be created.
- principal
Id string - The object id of the principal. Changing this forces a new resource to be created.
- principal
Name string - The name of the principal.
- principal
Type string - The type of the principal. Valid values include
App
,Group
,User
. Changing this forces a new resource to be created. - resource
Group stringName - The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- role string
- The database role assigned to the principal. Valid values include
Admin
,Ingestor
,Monitor
,UnrestrictedViewer
,User
andViewer
. Changing this forces a new resource to be created. - tenant
Id string - The tenant id in which the principal resides. Changing this forces a new resource to be created.
- tenant
Name string - The name of the tenant.
- cluster_
name str - The name of the cluster in which to create the resource. Changing this forces a new resource to be created.
- database_
name str - The name of the database in which to create the resource. Changing this forces a new resource to be created.
- name str
- The name of the kusto principal assignment. Changing this forces a new resource to be created.
- principal_
id str - The object id of the principal. Changing this forces a new resource to be created.
- principal_
name str - The name of the principal.
- principal_
type str - The type of the principal. Valid values include
App
,Group
,User
. Changing this forces a new resource to be created. - resource_
group_ strname - The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- role str
- The database role assigned to the principal. Valid values include
Admin
,Ingestor
,Monitor
,UnrestrictedViewer
,User
andViewer
. Changing this forces a new resource to be created. - tenant_
id str - The tenant id in which the principal resides. Changing this forces a new resource to be created.
- tenant_
name str - The name of the tenant.
- cluster
Name String - The name of the cluster in which to create the resource. Changing this forces a new resource to be created.
- database
Name String - The name of the database in which to create the resource. Changing this forces a new resource to be created.
- name String
- The name of the kusto principal assignment. Changing this forces a new resource to be created.
- principal
Id String - The object id of the principal. Changing this forces a new resource to be created.
- principal
Name String - The name of the principal.
- principal
Type String - The type of the principal. Valid values include
App
,Group
,User
. Changing this forces a new resource to be created. - resource
Group StringName - The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- role String
- The database role assigned to the principal. Valid values include
Admin
,Ingestor
,Monitor
,UnrestrictedViewer
,User
andViewer
. Changing this forces a new resource to be created. - tenant
Id String - The tenant id in which the principal resides. Changing this forces a new resource to be created.
- tenant
Name String - The name of the tenant.
Import
Kusto Database Principal Assignment can be imported using the resource id
, e.g.
$ pulumi import azure:kusto/databasePrincipalAssignment:DatabasePrincipalAssignment example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Kusto/clusters/cluster1/databases/database1/principalAssignments/assignment1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.