【Microsoft Purview】How build hierarchy relationship for Azure Data Lake Storage

Mofei Zhuang 100 Reputation points Microsoft Employee
2025-11-25T06:36:25.9066667+00:00

Hi team,

     I have a question about <Azure Data Lake Storage Gen1>.

     I can find some build-in entity type for Azure Data Lake Storage Gen1, like azure_datalake_gen1_account

azure_datalake_gen1_resource_set

azure_datalake_gen1_object

azure_datalake_gen1_path

But when I search de definition for those entity, from the relationshipAttributeDefs property, I can't see any relationship definition between them.

I want to know how to build the relationship between those entities.

Microsoft Security | Microsoft Purview
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Q&A Assist
    2025-11-25T06:36:35.42+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To build a hierarchy relationship for Azure Data Lake Storage entities in Microsoft Purview, you will need to define the relationships between the various entity types such as azure_datalake_gen1_account, azure_datalake_gen1_resource_set, azure_datalake_gen1_object, and azure_datalake_gen1_path.

    While the built-in entity types exist, the relationship definitions may not be explicitly provided in the relationshipAttributeDefs property for these entities. To establish these relationships, you can create custom relationship types that define how these entities interact with one another.

    1. Define Relationship Types: You can create custom relationship types that specify the nature of the relationship (e.g., composition, aggregation, association) between the entities.
    2. Use the IsHierarchical Property: If you are implementing a self-referential one-to-many relationship, set the IsHierarchical property to true to enable hierarchy viewing and querying capabilities.
    3. Implement Relationships: After defining the relationships, you can implement them in your data model, allowing you to query and visualize the hierarchical relationships effectively.

    For more detailed guidance on creating custom types and relationships, refer to the Microsoft Purview documentation.

    0 comments No comments

  2. Swapnesh Panchal 1,380 Reputation points Microsoft External Staff Moderator
    2025-12-04T00:25:37.42+00:00

    Hi Mofei Zhuang,
    Welcome to the Microsoft Q&A and thank you for posting your questions here.
    Microsoft Purview’s built-in ADLS Gen1 types (azure_datalake_gen1_resource_set, azure_datalake_gen1_path, azure_datalake_gen1_object) do not define parent-child relationships in relationshipAttributeDefs. Hierarchy is inferred from qualifiedName (e.g., account/resourceSet/path/object). If explicit links are required, create custom Atlas relationship types and attach them via Purview REST API:

    Steps:

    1. Define a relationship type using POST /api/atlas/v2/types/typedefs with relationshipDefs.
    2. Link entities using POST /api/atlas/v2/relationship with GUIDs of parent and child.
    3. Use qualifiedName patterns to derive hierarchy programmatically.

    Please let us know in the comments if you have any further questions or would like to continue the discussion. We’ll be happy to assist.


Your answer

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