az kusto database-principal-assignment

Kusto database-principal-assignment.

Commands

az kusto database-principal-assignment create

Creates a Kusto cluster database principalAssignment.

az kusto database-principal-assignment delete

Deletes a Kusto principalAssignment.

az kusto database-principal-assignment list

Lists all Kusto cluster database principalAssignments.

az kusto database-principal-assignment show

Gets a Kusto cluster database principalAssignment.

az kusto database-principal-assignment update

Creates a Kusto cluster database principalAssignment.

az kusto database-principal-assignment wait

Place the CLI in a waiting state until a condition of the kusto database-principal-assignment is met.

az kusto database-principal-assignment create

Creates a Kusto cluster database principalAssignment.

az kusto database-principal-assignment create --cluster-name
                                              --database-name
                                              --principal-assignment-name
                                              --resource-group
                                              [--no-wait]
                                              [--principal-id]
                                              [--principal-type {App, Group, User}]
                                              [--role {Admin, Ingestor, Monitor, UnrestrictedViewers, User, Viewer}]
                                              [--tenant-id]

Examples

KustoDatabasePrincipalAssignmentsCreateOrUpdate

az kusto database-principal-assignment create --cluster-name "kustoclusterrptest4" --database-name "Kustodatabase8" --principal-id "87654321-1234-1234-1234-123456789123" --principal-type "App" --role "Admin" --tenant-id "12345678-1234-1234-1234-123456789123" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest"

Required Parameters

--cluster-name

The name of the Kusto cluster.

--database-name

The name of the database in the Kusto cluster.

--principal-assignment-name

The name of the Kusto principalAssignment.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

--principal-id

The principal ID assigned to the database principal. It can be a user email, application ID, or security group name.

--principal-type

Principal type.

accepted values: App, Group, User
--role

Database principal role.

accepted values: Admin, Ingestor, Monitor, UnrestrictedViewers, User, Viewer
--tenant-id

The tenant id of the principal.

az kusto database-principal-assignment delete

Deletes a Kusto principalAssignment.

az kusto database-principal-assignment delete --cluster-name
                                              --database-name
                                              --principal-assignment-name
                                              --resource-group
                                              [--no-wait]

Examples

KustoDatabasePrincipalAssignmentsDelete

az kusto database-principal-assignment delete --cluster-name "kustoclusterrptest4" --database-name "Kustodatabase8" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest"

Required Parameters

--cluster-name

The name of the Kusto cluster.

--database-name

The name of the database in the Kusto cluster.

--principal-assignment-name

The name of the Kusto principalAssignment.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

az kusto database-principal-assignment list

Lists all Kusto cluster database principalAssignments.

az kusto database-principal-assignment list --cluster-name
                                            --database-name
                                            --resource-group

Examples

KustoPrincipalAssignmentsList

az kusto database-principal-assignment list --cluster-name "kustoclusterrptest4" --database-name "Kustodatabase8" --resource-group "kustorptest"

Required Parameters

--cluster-name

The name of the Kusto cluster.

--database-name

The name of the database in the Kusto cluster.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

az kusto database-principal-assignment show

Gets a Kusto cluster database principalAssignment.

az kusto database-principal-assignment show --cluster-name
                                            --database-name
                                            --principal-assignment-name
                                            --resource-group

Examples

KustoDatabasePrincipalAssignmentsGet

az kusto database-principal-assignment show --cluster-name "kustoclusterrptest4" --database-name "Kustodatabase8" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest"

Required Parameters

--cluster-name

The name of the Kusto cluster.

--database-name

The name of the database in the Kusto cluster.

--principal-assignment-name

The name of the Kusto principalAssignment.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

az kusto database-principal-assignment update

Creates a Kusto cluster database principalAssignment.

az kusto database-principal-assignment update --cluster-name
                                              --database-name
                                              --principal-assignment-name
                                              --resource-group
                                              [--no-wait]
                                              [--principal-id]
                                              [--principal-type {App, Group, User}]
                                              [--role {Admin, Ingestor, Monitor, UnrestrictedViewers, User, Viewer}]
                                              [--tenant-id]

Examples

KustoDatabasePrincipalAssignmentsCreateOrUpdate

az kusto database-principal-assignment update --cluster-name "kustoclusterrptest4" --database-name "Kustodatabase8" --principal-id "87654321-1234-1234-1234-123456789123" --principal-type "App" --role "Admin" --tenant-id "12345678-1234-1234-1234-123456789123" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest"

Required Parameters

--cluster-name

The name of the Kusto cluster.

--database-name

The name of the database in the Kusto cluster.

--principal-assignment-name

The name of the Kusto principalAssignment.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

--principal-id

The principal ID assigned to the database principal. It can be a user email, application ID, or security group name.

--principal-type

Principal type.

accepted values: App, Group, User
--role

Database principal role.

accepted values: Admin, Ingestor, Monitor, UnrestrictedViewers, User, Viewer
--tenant-id

The tenant id of the principal.

az kusto database-principal-assignment wait

Place the CLI in a waiting state until a condition of the kusto database-principal-assignment is met.

az kusto database-principal-assignment wait --cluster-name
                                            --database-name
                                            --principal-assignment-name
                                            --resource-group
                                            [--created]
                                            [--custom]
                                            [--deleted]
                                            [--exists]
                                            [--interval]
                                            [--timeout]
                                            [--updated]

Examples

Pause executing next line of CLI script until the kusto database-principal-assignment is successfully created.

az kusto database-principal-assignment wait --cluster-name "kustoclusterrptest4" --database-name "Kustodatabase8" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" --created

Pause executing next line of CLI script until the kusto database-principal-assignment is successfully deleted.

az kusto database-principal-assignment wait --cluster-name "kustoclusterrptest4" --database-name "Kustodatabase8" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" --deleted

Required Parameters

--cluster-name

The name of the Kusto cluster.

--database-name

The name of the database in the Kusto cluster.

--principal-assignment-name

The name of the Kusto principalAssignment.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--created

Wait until created with 'provisioningState' at 'Succeeded'.

--custom

Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].

--deleted

Wait until deleted.

--exists

Wait until the resource exists.

--interval

Polling interval in seconds.

default value: 30
--timeout

Maximum wait in seconds.

default value: 3600
--updated

Wait until updated with provisioningState at 'Succeeded'.