-
Notifications
You must be signed in to change notification settings - Fork 63
Set DatabricksPermission
external help file: azure.databricks.cicd.tools-help.xml Module Name: azure.databricks.cicd.tools online version: schema: 2.0.0
Add permissions to objects
Set-DatabricksPermission [[-BearerToken] <String>] [[-Region] <String>] [-Principal] <String>
[[-PrincipalType] <String>] [-PermissionLevel] <String> [-DatabricksObjectType] <String>
[-DatabricksObjectId] <String> [<CommonParameters>]
Add permissions to objects
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
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
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
"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
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
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
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
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
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Author: Simon D'Morias / Data Thirst Ltd