Forum Discussion
API to Azure Purview
- Aug 18, 2022Difference for me using Piethein's excellent instructions was the change of resource from 'https://management.core.windows.net/' (getting that "Invalid token audience" error) to 'https://purview.azure.net'.
GuillaumeBerthier, unfortunately I have not. Sidetracked to other priorities. I couldn't even get Microsoft's API "Try Me" in their documentation to work. I was told to open a ticket, I will when I can get back to Purview.
- GuillaumeBerthierFeb 21, 2022Brass Contributor
MWLjdb actually by digging a bit more I found an article (https://piethein.medium.com/use-azure-purviews-rest-apis-for-creating-custom-lineage-ad8efacc6230) from @pietheinstrengholt explaining step by step how to use Azure Purview's API and it worked ! (*)
....by the way all of the other articles from Piethein are very interesting (https://piethein.medium.com/) , a lot of good materials for Azure Purview, Azure Synapse, Spark, Data Mesh...ect
(*) not more.... {"error":{"code":"Unauthenticated","message":"Invalid token audience 00000002-0000-0000-c000-000000000000. Valid audiences: 73c2949e-da2d-457a-9607-fcc665198967, https://purview.azure.net "}}- Kmehta2205May 24, 2022Copper Contributor
GuillaumeBerthier I followed all the steps in the document you shared https://piethein.medium.com/use-azure-purviews-rest-apis-for-creating-custom-lineage-ad8efacc6230#406b
After creating token, I tried validating Atlas endpoint where I am failing to do so. I executed the CURL command on my postman. I am getting the below response -
{"error":{"code":"Unauthorized","message":"Not authorized to access account"}}
What permission I might be missing out?
You response will be much appreciated.
Thanks.
Regards,
Khushboo Mehta
- drewbiosAug 18, 2022Copper ContributorDifference for me using Piethein's excellent instructions was the change of resource from 'https://management.core.windows.net/' (getting that "Invalid token audience" error) to 'https://purview.azure.net'.
- MWLjdbFeb 21, 2022Brass Contributorawesome, I'll take a look