azure-native.synapse.KustoPoolPrincipalAssignment
Explore with Pulumi AI
Class representing a cluster principal assignment. API Version: 2021-04-01-preview.
Example Usage
KustoPoolPrincipalAssignmentsCreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var kustoPoolPrincipalAssignment = new AzureNative.Synapse.KustoPoolPrincipalAssignment("kustoPoolPrincipalAssignment", new()
    {
        KustoPoolName = "kustoclusterrptest4",
        PrincipalAssignmentName = "kustoprincipal1",
        PrincipalId = "87654321-1234-1234-1234-123456789123",
        PrincipalType = "App",
        ResourceGroupName = "kustorptest",
        Role = "AllDatabasesAdmin",
        TenantId = "12345678-1234-1234-1234-123456789123",
        WorkspaceName = "synapseWorkspaceName",
    });
});
package main
import (
	synapse "github.com/pulumi/pulumi-azure-native-sdk/synapse"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := synapse.NewKustoPoolPrincipalAssignment(ctx, "kustoPoolPrincipalAssignment", &synapse.KustoPoolPrincipalAssignmentArgs{
			KustoPoolName:           pulumi.String("kustoclusterrptest4"),
			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"),
			WorkspaceName:           pulumi.String("synapseWorkspaceName"),
		})
		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.synapse.KustoPoolPrincipalAssignment;
import com.pulumi.azurenative.synapse.KustoPoolPrincipalAssignmentArgs;
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 kustoPoolPrincipalAssignment = new KustoPoolPrincipalAssignment("kustoPoolPrincipalAssignment", KustoPoolPrincipalAssignmentArgs.builder()        
            .kustoPoolName("kustoclusterrptest4")
            .principalAssignmentName("kustoprincipal1")
            .principalId("87654321-1234-1234-1234-123456789123")
            .principalType("App")
            .resourceGroupName("kustorptest")
            .role("AllDatabasesAdmin")
            .tenantId("12345678-1234-1234-1234-123456789123")
            .workspaceName("synapseWorkspaceName")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const kustoPoolPrincipalAssignment = new azure_native.synapse.KustoPoolPrincipalAssignment("kustoPoolPrincipalAssignment", {
    kustoPoolName: "kustoclusterrptest4",
    principalAssignmentName: "kustoprincipal1",
    principalId: "87654321-1234-1234-1234-123456789123",
    principalType: "App",
    resourceGroupName: "kustorptest",
    role: "AllDatabasesAdmin",
    tenantId: "12345678-1234-1234-1234-123456789123",
    workspaceName: "synapseWorkspaceName",
});
import pulumi
import pulumi_azure_native as azure_native
kusto_pool_principal_assignment = azure_native.synapse.KustoPoolPrincipalAssignment("kustoPoolPrincipalAssignment",
    kusto_pool_name="kustoclusterrptest4",
    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",
    workspace_name="synapseWorkspaceName")
resources:
  kustoPoolPrincipalAssignment:
    type: azure-native:synapse:KustoPoolPrincipalAssignment
    properties:
      kustoPoolName: kustoclusterrptest4
      principalAssignmentName: kustoprincipal1
      principalId: 87654321-1234-1234-1234-123456789123
      principalType: App
      resourceGroupName: kustorptest
      role: AllDatabasesAdmin
      tenantId: 12345678-1234-1234-1234-123456789123
      workspaceName: synapseWorkspaceName
Create KustoPoolPrincipalAssignment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new KustoPoolPrincipalAssignment(name: string, args: KustoPoolPrincipalAssignmentArgs, opts?: CustomResourceOptions);@overload
def KustoPoolPrincipalAssignment(resource_name: str,
                                 args: KustoPoolPrincipalAssignmentArgs,
                                 opts: Optional[ResourceOptions] = None)
@overload
def KustoPoolPrincipalAssignment(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 kusto_pool_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,
                                 workspace_name: Optional[str] = None,
                                 principal_assignment_name: Optional[str] = None,
                                 tenant_id: Optional[str] = None)func NewKustoPoolPrincipalAssignment(ctx *Context, name string, args KustoPoolPrincipalAssignmentArgs, opts ...ResourceOption) (*KustoPoolPrincipalAssignment, error)public KustoPoolPrincipalAssignment(string name, KustoPoolPrincipalAssignmentArgs args, CustomResourceOptions? opts = null)
public KustoPoolPrincipalAssignment(String name, KustoPoolPrincipalAssignmentArgs args)
public KustoPoolPrincipalAssignment(String name, KustoPoolPrincipalAssignmentArgs args, CustomResourceOptions options)
type: azure-native:synapse:KustoPoolPrincipalAssignment
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 KustoPoolPrincipalAssignmentArgs
- 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 KustoPoolPrincipalAssignmentArgs
- 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 KustoPoolPrincipalAssignmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KustoPoolPrincipalAssignmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KustoPoolPrincipalAssignmentArgs
- 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 kustoPoolPrincipalAssignmentResource = new AzureNative.Synapse.KustoPoolPrincipalAssignment("kustoPoolPrincipalAssignmentResource", new()
{
    KustoPoolName = "string",
    PrincipalId = "string",
    PrincipalType = "string",
    ResourceGroupName = "string",
    Role = "string",
    WorkspaceName = "string",
    PrincipalAssignmentName = "string",
    TenantId = "string",
});
example, err := synapse.NewKustoPoolPrincipalAssignment(ctx, "kustoPoolPrincipalAssignmentResource", &synapse.KustoPoolPrincipalAssignmentArgs{
	KustoPoolName:           "string",
	PrincipalId:             "string",
	PrincipalType:           "string",
	ResourceGroupName:       "string",
	Role:                    "string",
	WorkspaceName:           "string",
	PrincipalAssignmentName: "string",
	TenantId:                "string",
})
var kustoPoolPrincipalAssignmentResource = new KustoPoolPrincipalAssignment("kustoPoolPrincipalAssignmentResource", KustoPoolPrincipalAssignmentArgs.builder()
    .kustoPoolName("string")
    .principalId("string")
    .principalType("string")
    .resourceGroupName("string")
    .role("string")
    .workspaceName("string")
    .principalAssignmentName("string")
    .tenantId("string")
    .build());
kusto_pool_principal_assignment_resource = azure_native.synapse.KustoPoolPrincipalAssignment("kustoPoolPrincipalAssignmentResource",
    kusto_pool_name=string,
    principal_id=string,
    principal_type=string,
    resource_group_name=string,
    role=string,
    workspace_name=string,
    principal_assignment_name=string,
    tenant_id=string)
const kustoPoolPrincipalAssignmentResource = new azure_native.synapse.KustoPoolPrincipalAssignment("kustoPoolPrincipalAssignmentResource", {
    kustoPoolName: "string",
    principalId: "string",
    principalType: "string",
    resourceGroupName: "string",
    role: "string",
    workspaceName: "string",
    principalAssignmentName: "string",
    tenantId: "string",
});
type: azure-native:synapse:KustoPoolPrincipalAssignment
properties:
    kustoPoolName: string
    principalAssignmentName: string
    principalId: string
    principalType: string
    resourceGroupName: string
    role: string
    tenantId: string
    workspaceName: string
KustoPoolPrincipalAssignment 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 KustoPoolPrincipalAssignment resource accepts the following input properties:
- KustoPool stringName 
- The name of the Kusto pool.
- PrincipalId string
- The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group name.
- PrincipalType string | Pulumi.Azure Native. Synapse. Principal Type 
- Principal type.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- Role
string | Pulumi.Azure Native. Synapse. Cluster Principal Role 
- Cluster principal role.
- WorkspaceName string
- The name of the workspace
- PrincipalAssignment stringName 
- The name of the Kusto principalAssignment.
- TenantId string
- The tenant id of the principal
- KustoPool stringName 
- The name of the Kusto pool.
- PrincipalId string
- The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group name.
- PrincipalType string | PrincipalType 
- Principal type.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- Role
string | ClusterPrincipal Role 
- Cluster principal role.
- WorkspaceName string
- The name of the workspace
- PrincipalAssignment stringName 
- The name of the Kusto principalAssignment.
- TenantId string
- The tenant id of the principal
- kustoPool StringName 
- The name of the Kusto pool.
- principalId String
- The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group name.
- principalType String | PrincipalType 
- Principal type.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- role
String | ClusterPrincipal Role 
- Cluster principal role.
- workspaceName String
- The name of the workspace
- principalAssignment StringName 
- The name of the Kusto principalAssignment.
- tenantId String
- The tenant id of the principal
- kustoPool stringName 
- The name of the Kusto pool.
- principalId string
- The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group name.
- principalType string | PrincipalType 
- Principal type.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- role
string | ClusterPrincipal Role 
- Cluster principal role.
- workspaceName string
- The name of the workspace
- principalAssignment stringName 
- The name of the Kusto principalAssignment.
- tenantId string
- The tenant id of the principal
- kusto_pool_ strname 
- The name of the Kusto pool.
- 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. The name is case insensitive.
- role
str | ClusterPrincipal Role 
- Cluster principal role.
- workspace_name str
- The name of the workspace
- principal_assignment_ strname 
- The name of the Kusto principalAssignment.
- tenant_id str
- The tenant id of the principal
- kustoPool StringName 
- The name of the Kusto pool.
- principalId String
- The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group name.
- principalType String | "App" | "Group" | "User"
- Principal type.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- role
String | "AllDatabases Admin" | "All Databases Viewer" 
- Cluster principal role.
- workspaceName String
- The name of the workspace
- principalAssignment StringName 
- The name of the Kusto principalAssignment.
- tenantId String
- The tenant id of the principal
Outputs
All input properties are implicitly available as output properties. Additionally, the KustoPoolPrincipalAssignment resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- PrincipalName string
- The principal name
- ProvisioningState string
- The provisioned state of the resource.
- SystemData Pulumi.Azure Native. Synapse. Outputs. System Data Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- TenantName string
- The tenant name of the principal
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- PrincipalName string
- The principal name
- ProvisioningState string
- The provisioned state of the resource.
- SystemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- TenantName string
- The tenant name of the principal
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- principalName String
- The principal name
- provisioningState String
- The provisioned state of the resource.
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- tenantName String
- The tenant name of the principal
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- principalName string
- The principal name
- provisioningState string
- The provisioned state of the resource.
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- tenantName string
- The tenant name of the principal
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- 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.
- system_data SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- 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"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- principalName String
- The principal name
- provisioningState String
- The provisioned state of the resource.
- systemData Property Map
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- tenantName 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      
- AllDatabases Admin 
- AllDatabasesAdmin
- AllDatabases Viewer 
- AllDatabasesViewer
- ClusterPrincipal Role All Databases Admin 
- AllDatabasesAdmin
- ClusterPrincipal Role All Databases Viewer 
- AllDatabasesViewer
- AllDatabases Admin 
- AllDatabasesAdmin
- AllDatabases Viewer 
- AllDatabasesViewer
- AllDatabases Admin 
- AllDatabasesAdmin
- AllDatabases Viewer 
- AllDatabasesViewer
- ALL_DATABASES_ADMIN
- AllDatabasesAdmin
- ALL_DATABASES_VIEWER
- AllDatabasesViewer
- "AllDatabases Admin" 
- AllDatabasesAdmin
- "AllDatabases Viewer" 
- AllDatabasesViewer
PrincipalType, PrincipalTypeArgs    
- App
- App
- Group
- Group
- User
- User
- PrincipalType App 
- App
- PrincipalType Group 
- Group
- PrincipalType 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
SystemDataResponse, SystemDataResponseArgs      
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:synapse:KustoPoolPrincipalAssignment synapseWorkspaceName/kustoclusterrptest4/kustoprincipal1 /subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustoPools/kustoclusterrptest4/PrincipalAssignments/kustoprincipal1 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0