< Back
Set-DatabricksSecret
Post
NAME Set-DatabricksSecret
SYNOPSIS
Create a scope to store Databricks secret in.
SYNTAX
Set-DatabricksSecret [[-BearerToken] <String>] [[-Region] <String>] [-ScopeName] <String> [-SecretName] <String>
[-SecretValue] <String> [-AllUserAccess] [<CommonParameters>]
DESCRIPTION
Create a scope to store Databricks secret in. Note the the Set-DatabricksSecret command creates the scope if it
does not exist.
PARAMETERS
-BearerToken <String>
Your Databricks Bearer token to authenticate to your workspace (see User Settings in Databricks WebUI)
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Region <String>
Azure Region - must match the URL of your Databricks workspace, example northeurope
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ScopeName <String>
Name for the scope - do not include spaces or special characters.
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-SecretName <String>
Required? true
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-SecretValue <String>
Required? true
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-AllUserAccess [<SwitchParameter>]
By default only the user creating the scope has access to secrets. When you set this flag all users will
have access. Hopefully better permissions controls will come.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
Author: Simon D'Morias / Data Thirst Ltd
-------------------------- EXAMPLE 1 --------------------------
C:\\PS>Set-DatabricksSecret -BearerToken $BearerToken -Region $Region -ScopeName "Test1" -SecretName 'MySecretName'
-SecretValue 'P@ssword'
This example creates a scope called Test1 if it does not exist and a secret called MySecretName with a value of
P@ssword.
RELATED LINKS
SYNOPSIS
Create a scope to store Databricks secret in.
SYNTAX
Set-DatabricksSecret [[-BearerToken] <String>] [[-Region] <String>] [-ScopeName] <String> [-SecretName] <String>
[-SecretValue] <String> [-AllUserAccess] [<CommonParameters>]
DESCRIPTION
Create a scope to store Databricks secret in. Note the the Set-DatabricksSecret command creates the scope if it
does not exist.
PARAMETERS
-BearerToken <String>
Your Databricks Bearer token to authenticate to your workspace (see User Settings in Databricks WebUI)
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Region <String>
Azure Region - must match the URL of your Databricks workspace, example northeurope
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ScopeName <String>
Name for the scope - do not include spaces or special characters.
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-SecretName <String>
Required? true
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-SecretValue <String>
Required? true
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-AllUserAccess [<SwitchParameter>]
By default only the user creating the scope has access to secrets. When you set this flag all users will
have access. Hopefully better permissions controls will come.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
Author: Simon D'Morias / Data Thirst Ltd
-------------------------- EXAMPLE 1 --------------------------
C:\\PS>Set-DatabricksSecret -BearerToken $BearerToken -Region $Region -ScopeName "Test1" -SecretName 'MySecretName'
-SecretValue 'P@ssword'
This example creates a scope called Test1 if it does not exist and a secret called MySecretName with a value of
P@ssword.
RELATED LINKS