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_HOST
andDATABRICKS_ACCOUNT_ID
- With a
.databrickscfg
file: Create the.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>
- 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
.databrickscfg
file: 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
Hashes for databricks-azure-ad-sync-provider-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | aad4036f597b0dce9f5e5dbf7e21a99193bd835d3d2a4f8d7457e9ff0baf4858 |
|
MD5 | bad391d3f708cc9ec30139281c6f94d3 |
|
BLAKE2b-256 | 191abbc02ada8958700e4603819b8d01a595db6c7a45472ddc1dd277c46e04cb |
Hashes for databricks_azure_ad_sync_provider-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e34dac87c3410b6c232b141088f99e8cbd297e6cc2a1da76e917077149e26c6b |
|
MD5 | 4846912b230f2c1c66866b7cf5bdf664 |
|
BLAKE2b-256 | b171713b7c9ea07c83453905ecd55fdcf5918babae84f32b0b6923e769a367c8 |