Mysari Gnaneshwar Thanks for posting your question in Microsoft Q&A. I assume you followed the steps described in doc: Access using Postman and when you try to access FHIR resource, you got the above error.
As per the error message/code: 500011
and https://login.microsoftonline.com/error?code=500011, the resource principal was not found in the tenant bbtenant
. That means Microsoft Entra access token generated via https://login.microsoftonline.com/{{tenantid}}/oauth2/token was not matching with the tenant that FHIR is located.
Steps to validate:
- Decode the token generated in the Postman via https://jwt.ms and check
tid
value which is the tenant id (doc reference). - Then compare it with the tenant id of the subscription for the health care workspace in the azure portal and see if it matches.
You need to have the client application registration in the same tenant as FHIR resource and assign right permissions and roles for the application as described in https://learn.microsoft.com/en-us/azure/healthcare-apis/fhir/get-started-with-fhir#register-a-client-application.
I hope this helps and let me know if any questions.