-
Notifications
You must be signed in to change notification settings - Fork 63
Connect Databricks
external help file: azure.databricks.cicd.tools-help.xml Module Name: azure.databricks.cicd.tools online version: schema: 2.0.0
Connects your current PowerShell session to Azure Databricks.
Connect-Databricks -BearerToken <String> -Region <String> [<CommonParameters>]
Connect-Databricks -Region <String> -ApplicationId <String> -Secret <String> -TenantId <String>
-SubscriptionId <String> -ResourceGroupName <String> -WorkspaceName <String> [-Force] [<CommonParameters>]
Connect-Databricks -Region <String> -ApplicationId <String> -Secret <String> -DatabricksOrgId <String>
-TenantId <String> [-Force] [<CommonParameters>]
Connects your current PowerShell session to Azure Databricks. Supports Service Princial AAD authenication or via Databricks Bearer Token
Connect-Databricks -Region "westeurope" -ApplicationId "8a686772-0e5b-4cdb-ad19-bf1d1e7f89f3" -Secret "myPrivateSecret" -DatabricksOrgId 1234567 -TenantId "8a686772-0e5b-4cdb-ad19-bf1d1e7f89f3"
This example of a DIRECT connection (using the Databricks organisation Id)
Connect-Databricks -Region "westeurope" -ApplicationId "8a686772-0e5b-4cdb-ad19-bf1d1e7f89f3" -Secret "myPrivateSecret" -ResourceGroupName "MyResourceGroup" -SubscriptionId "9a686882-0e5b-4edb-cd49-cf1f1e7f34d9" -WorkspaceName "workspaceName" -TenantId "8a686772-0e5b-4cdb-ad19-bf1d1e7f89f3"
This example of a MANAGMENT connection (using the Azure resource identifiers to connect)
Connect-Databricks -BearerToken "dapi1234567890" -Region "westeurope"
This example of a BEARER connection (using the Databricks Bearer token from the Web UI to login as a person)
Your Databricks Bearer token to authenticate to your workspace (see User Settings in Databricks WebUI)
Type: String
Parameter Sets: Bearer
Aliases:
Required: True
Position: Named
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: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Azure Active Directory Service Principal Client ID (also known as Application ID)
Type: String
Parameter Sets: AADwithResource, AADwithOrgId
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Secret for given Client ID
Type: String
Parameter Sets: AADwithResource, AADwithOrgId
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Databricks OrganisationID this is found in the URL of your Worksapce as the o parameters (example o=123456789). Note the first time a service principal connects it must use the MANAGEMENT method (ie provide the Resource GRoup Name and Workspace Name - as this provisions the user)
Type: String
Parameter Sets: AADwithOrgId
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Tenant Id (Directory ID) for the AAD owning the ApplicationId
Type: String
Parameter Sets: AADwithResource, AADwithOrgId
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Subscription ID for the Workspace
Type: String
Parameter Sets: AADwithResource
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Resource Group Name for the Workspace
Type: String
Parameter Sets: AADwithResource
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Workspace Name
Type: String
Parameter Sets: AADwithResource
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Removes any cached credentials and reconnects
Type: SwitchParameter
Parameter Sets: AADwithResource, AADwithOrgId
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