In Purview,How to assign the glossary to the assets for bulk upload using script?

Dalvi, Satish 0 Reputation points


We have recently started using purview. One of the task we did is we defined our glossary and uploaded to the purview. Now we want to assign the glossary to the assets we have in purview.

I am facing the issue with the payload and mapping step.

Below is the standard code i am using.

az login

access_token=$(az account get-access-token --resource --query accessToken --output tsv)

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,001 questions
{count} votes

1 answer

Sort by: Most helpful
  1. PRADEEPCHEEKATLA-MSFT 82,671 Reputation points Microsoft Employee

    @Dalvi, Satish - Thanks for the question and using MS Q&A platform.

    To assign a glossary to assets in bulk using a script, you need to make sure that you have the correct asset_guid and glossary_term_guid. The asset_guid is the unique identifier for the asset in Purview, and the glossary_term_guid is the unique identifier for the glossary term that you want to assign to the asset.

    Based on the code you provided, it seems that you are using the correct API endpoint to assign the glossary term to the asset. However, the error message you received indicates that there was an issue processing your request. This could be due to a transient issue, so you may want to try running the operation again.

    Make sure that you have the necessary permissions to assign glossary terms to assets in Purview. You can check your permissions by going to the Purview account settings and reviewing the access policies.

    If the issue persists, you may open a support ticket with the requestId and errorCode provided in the error message for further assistance.

    Hope this helps. Do let us know if you any further queries.

    0 comments No comments