-
Notifications
You must be signed in to change notification settings - Fork 63
Set DatabricksSecret
external help file: azure.databricks.cicd.tools-help.xml Module Name: azure.databricks.cicd.tools online version: schema: 2.0.0
Create a scope to store Databricks secret in.
Set-DatabricksSecret [[-BearerToken] <String>] [[-Region] <String>] [-ScopeName] <String>
[-SecretName] <String> [-SecretValue] <String> [-AllUserAccess] [<CommonParameters>]
Create a scope to store Databricks secret in. Note the the Set-DatabricksSecret command creates the scope if it does not exist.
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.
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
Name for the scope - do not include spaces or special characters.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill SecretName Description }}
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill SecretValue Description }}
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
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.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
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