Loading JSON bundles to Azure API for Fhir using FhirLoader: Request Failed with Forbidden Error

Suhan, Mohammed 1 Reputation point
2021-01-15T11:48:12.71+00:00

Hello,

I am new to Azure API for Fhir. Need some information on loading Synthea bundles to Fhir Server. I used JSON template azuredeploy-importer.json which is available in github and deployed the template. Now when copy the JSON bundles to the container (fhirimport), it does not load. The function is able to read the file but not able to load. It gives an error after the file is read : "Request Failed with Forbidden" as below image. Can you please help.

57136-image.png

Azure Health Data Services
Azure Health Data Services
An Azure offering that provides a suite of purpose-built technologies for protected health information in the cloud.
149 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Benjamin Xue 1 Reputation point
    2021-01-19T16:37:05.707+00:00

    The data importer in the sample is an Azure Function. It uses an application client (service principal) to access the FHIR service and write data to it. Because the importer was able to read json files in Storage as shown in the error msg, it is likely that the error was resulted from lack of access permission.

    Find the application client first from the deployment out, or from the Azure portal, Azure Active Directory. Check if the importer Azure function has been granted with the globalAdmin role through the Azure AD and Application Registration user interface, or the FHIR Data Contributor role through the FHIR service interface in Azure. Note that if the application client is in a different tenant than the tenant for the FHIR service, you can use the first option to grant the globalAdmin role.