Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Set DatabricksPermission

Simon D'Morias edited this page Apr 19, 2020 · 3 revisions

external help file: azure.databricks.cicd.tools-help.xml Module Name: azure.databricks.cicd.tools online version: schema: 2.0.0

Set-DatabricksPermission

SYNOPSIS

Add permissions to objects

SYNTAX

Set-DatabricksPermission [[-BearerToken] <String>] [[-Region] <String>] [-Principal] <String>
 [[-PrincipalType] <String>] [-PermissionLevel] <String> [-DatabricksObjectType] <String>
 [-DatabricksObjectId] <String> [<CommonParameters>]

DESCRIPTION

Add permissions to objects

EXAMPLES

EXAMPLE 1

Set-DatabricksPermission -BearerToken $BearerToken -Region $Region -Principal "MyTestGroup" -PermissionLevel 'CAN_MANAGE' -DatabricksObjectType 'Cluster' -DatabricksObjectId "tubby-1234"

This adds the permission CAN_MANAGE to a cluster for all users in the MyTestGroup

PARAMETERS

-BearerToken

Your Databricks Bearer token to authenticate to your workspace (see User Settings in Databricks WebUI)

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Region

Azure Region - must match the URL of your Databricks workspace, example northeurope

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Principal

"user_name"​​ || ​"group_name"​ ​|| "service_principal_name"

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-PrincipalType

Which type of pricipal do you want to add to the object. Valid values for this parameter are: "user_name"​​ || ​"group_name"​ ​|| "service_principal_name"

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: User_name
Accept pipeline input: False
Accept wildcard characters: False

-PermissionLevel

See Get-DatabricksPermissionLevels For Secret Scopes this value must be READ, WRITE or MANAGE

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DatabricksObjectType

Job, Cluster, secretScope or Instance-pool

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DatabricksObjectId

JobId, ClusterId, secretScope or Instance-poolId

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 7
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

Author: Simon D'Morias / Data Thirst Ltd

RELATED LINKS

Clone this wiki locally