Skip to main content

databricks-azure-ad-sync-provider

Prerequisites: Authentication

There are multiple options to authenticate to Microsoft Entra ID and Azure Databricks, we used the following two and you could choose in between.

Option 1: If you have Azure CLI installed

  • Run 'az login' on your machine to authenticate yourself as an Azure user.
  • Setup environment variables for DATABRICKS_HOST and DATABRICKS_ACCOUNT_ID, or create a .databrickscfg file (~ for Linux or macOS, and %USERPROFILE% for Windows) containing the following info:
[DEFAULT]
host = https://accounts.azuredatabricks.net/
account_id = <Databricks account id>

Option 2: Use Microsoft Entra ID service principal:

  • Create a service principal in Microsoft Entra ID and add it to Azure Databricks and grant it target permissions (see reference documentation)

  • Add the following environment varialbes:

  • Alternatively, you can setup databricks environment varialbes in a .databrickscfg file (~ for Linux or macOS, and %USERPROFILE% for Windows) containing the following info:
[DEFAULT]
host = https://accounts.azuredatabricks.net/
account_id = <Databricks account id>
azure_tenant_id = <Azure tenant id>
azure_client_id = <Azure service principal application ID>
azure_client_secret = <Azure service principal secret>

Install

Run the following to install this package:

pip install db_az_sync_provider

Usage

Yaml file To use the package, it's required to provide:

  • Object ID(s) of Azure groups and (optionally) exclude object ID(s) in a yaml file (see syncgroups.yaml for example).
  • Existing relations between Azure and Databricks objects in a json file (see syncstates.json from example).

Executions The following two arguments are asked when you execute the sync:

  • -f/--file
  • -j/--json
  • -d/--delete (if this option provided, you enable to delete identities in Databricks, it's recommended to not use this option though)

Metadata

Release files for db-az-sync-provider 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for db-az-sync-provider 0.1.6
File Size Uploaded
db_az_sync_provider-0.1.6.tar.gz 12.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for db-az-sync-provider 0.1.6
File Interpreter ABI Platform
db_az_sync_provider-0.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 25.0 kB

Release files / db_az_sync_provider-0.1.6.tar.gz

Download URL db_az_sync_provider-0.1.6.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a9a4d35c4a42dc70da603ff6f1608d79327658d97a6380cc35f11a0b6b4b8a76
BLAKE2b-256 checksum
How to use checksums
3bedd5c6c9a35bbd20ee9e9c41017a75e92f1411f1298f9b46fe53caa962afa0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.7

Release files / db_az_sync_provider-0.1.6-py3-none-any.whl

Download URL db_az_sync_provider-0.1.6-py3-none-any.whl
Size 12.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9afb749948dcecb90acff8b0666dde893f438d991f5cb4ac7737294113c536c1
BLAKE2b-256 checksum
How to use checksums
e672779a2fce8907aa5a70939e3a472e6c9b600f1288ac6beca86b61fbba3b12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.7

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page