Skip to main content

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

    1. With environment variables: Setup for DATABRICKS_HOST and DATABRICKS_ACCOUNT_ID
    2. 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>
    

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

    1. With environment variables

    2. 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

databricks-azure-ad-sync-provider-0.1.4.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file databricks-azure-ad-sync-provider-0.1.4.tar.gz.

File metadata

File hashes

Hashes for databricks-azure-ad-sync-provider-0.1.4.tar.gz
Algorithm Hash digest
SHA256 8eaceb830579f275b132e69ff619b3208a4ee639582db9b3805eba3506075547
MD5 a6a5c45f53215f5df0d44176831fa33f
BLAKE2b-256 7f7816a0964f16db7733d2b030664e17bd225592df788a5099709197815a40aa

See more details on using hashes here.

File details

Details for the file databricks_azure_ad_sync_provider-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for databricks_azure_ad_sync_provider-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2ee5fa8dffed9f765a18909b9c189a1d2b3d3addaadb9d1f64e998de6109a534
MD5 0ecef894bc47d9b66584d39858b78bcf
BLAKE2b-256 a389b46969ecab5f43199f4f9a0968efa83a76644b2d61957a6082b0ab9792d5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page