Default template for PDM package
Project description
databricks-azure-ad-sync-provider
databricks-azure-ad-sync-provider is a package that allows to sync users, groups and service principals from Microsoft Entra ID to Databricks.
Requirements
databricks-azure-ad-sync-provider is built on top of:
- python 3.9+
Authentication
Authenticate to you Microsoft Entra ID and Azure Databricks to use the package. There are multiple ways available for that, we suggest the following:
1. With Azure CLI
-
Authenticate to your Azure account on your machine with
az login. -
Specify necessary variables
- With environment variables: Setup for
DATABRICKS_HOSTandDATABRICKS_ACCOUNT_ID - With a
.databrickscfgfile: Create the.databrickscfgfile (~ for Linux or macOS, and %USERPROFILE% for Windows) containing the following info:
[DEFAULT] host = https://accounts.azuredatabricks.net/ account_id = <Databricks account id> - With environment variables: Setup for
2. With 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).
-
Specify necessary variables
-
With environment variables
- For Azure: AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET (see Microsoft Entra ID authentication)
- For Databricks: DATABRICKS_HOST, DATABRICKS_ACCOUNT_ID, DATABRICKS_CLIENT_ID, DATABRICKS_CLIENT_SECRET (see Databricks authentication)
-
With a
.databrickscfgfile: 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> azure_tenant_id = <Azure tenant id> azure_client_id = <Azure service principal application ID> azure_client_secret = <Azure service principal secret> -
Installation
pip install databricks-azure-ad-sync-provider
Usage
Sync execution
<fct_name> -f/--file <path to your yaml file> -d/--delete
- -f/--file : it's required to provide the object ID(s) of Azure groups and (optionally) exclude object ID(s) in a yaml file (ex. see test.yaml).
- -d/--delete: If provided, this enablew to delete identities in Databricks.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file databricks-azure-ad-sync-provider-0.1.1.tar.gz.
File metadata
- Download URL: databricks-azure-ad-sync-provider-0.1.1.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.8.1 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb3380a7c567af8c6c71fb27c0505b649dca9ff51c5e3d3e6a6e4298418432b1
|
|
| MD5 |
df848f9bc2534453ae5a6b3e6be4dbad
|
|
| BLAKE2b-256 |
3071fb017a649ae9f6a07eb8be437f997211b14113bb1713d70cdb624184b92f
|
File details
Details for the file databricks_azure_ad_sync_provider-0.1.1-py3-none-any.whl.
File metadata
- Download URL: databricks_azure_ad_sync_provider-0.1.1-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.8.1 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d5bb93d66b7c2553573ebd8685a2730cce78dff003731144dc1ee7602a3db62
|
|
| MD5 |
817de5746248c4bed741cdbc5f174788
|
|
| BLAKE2b-256 |
606a33b6e683d8df472df94eaa996c1fa07799085d1c408630130ffc896dcfe6
|