Creating Entities in Specific Collection Using Azure Purview Python SDK

GeethaThatipatri-MSFT 29,477 Reputation points Microsoft Employee
2024-07-30T19:26:42.3266667+00:00

How can I create entities in a specific collection or sub-collection in Azure Purview using the Python API, instead of them being created in the default collection?

PS - Based on common issues that we have seen from customers and other sources, we are posting these questions to help the Azure community

Microsoft Purview
Microsoft Purview
A Microsoft data governance service that helps manage and govern on-premises, multicloud, and software-as-a-service data. Previously known as Azure Purview.
1,224 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. GeethaThatipatri-MSFT 29,477 Reputation points Microsoft Employee
    2024-07-30T19:30:16.1333333+00:00

    Greetings!

    If you are trying to create entities in Azure Purview using the Python API but find that they are all being created inside the default collection, you can use the Azure SDK for Python for Purview Catalog operations. The Azure SDK for Python allows you to create and update assets within any specific collection in Purview.

     

    To achieve this, you can follow the detailed guidance provided in the "Tutorial: How to use Microsoft Purview Python SDK" documentation. Additionally, you can refer to the "azure.purview.catalog.operations" package within the SDK, which enables you to perform various Purview Catalog operations, including the creation and updating of assets in any specific collection.

    Regards

    Geetha

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.