The Microsoft Azure Synapse Artifacts Client Library for Python allows interaction with Azure Synapse Analytics workspaces to manage data factory artifacts like pipelines, datasets, linked services, and data flows. As of its current version 0.22.0, it provides a programmatic interface for creating, reading, updating, and deleting these resources. The library follows the Azure SDK guidelines for Python, utilizing `azure-core` and `azure-identity` for consistent interaction and authentication. New versions are released as part of the broader Azure SDK for Python release train, typically on a monthly or bi-monthly cadence, with `0.x.x` versions indicating a preview status.
pip install azure-synapse-artifactsVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize the `SynapseArtifactsClient` using `DefaultAzureCredential` and list the pipelines within your Azure Synapse Analytics workspace. Ensure your `AZURE_SYNAPSE_WORKSPACE_URL` environment variable is set to your workspace's development endpoint (e.g., `https://{workspace_name}.dev.azuresynapse.net`) and your Azure credentials are configured for `DefaultAzureCredential` to function, typically via environment variables like `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET` for service principals.
Be prepared for potential API changes when upgrading. Monitor release notes closely for updates and consider pinning to specific preview versions in production environments until 1.0.0 is released.
Always verify the endpoint format from your Synapse workspace overview in the Azure portal or by inspecting the workspace properties. Set the `endpoint` parameter of `SynapseArtifactsClient` accordingly.
Refer to the `azure-identity` documentation for setting up `DefaultAzureCredential`. Ensure the identity used has sufficient permissions (e.g., 'Synapse Contributor' or 'Synapse Artifact User') on the Synapse workspace.
Ensure `azure-identity` is included in your project dependencies. Install it using `pip install azure-identity`.
Install the 'azure-identity' package using pip: 'pip install azure-identity'.