Azure-Samples / azure-health-data-and-ai-samples

Samples for using the Azure Health Data Services
Other
39 stars 25 forks source link

ThE Role Assignment Already Exists patientandpopulationservices-smartonfhir-oncg10 #197

Open muthink opened 2 months ago

muthink commented 2 months ago

While running azd up, after some time during the creating/updating resources stage, the following error is thrown: with the patientandpopulationservices-smartonfhir-oncg10 sample.

You can view detailed progress in the Azure Portal: https://portal.azure.com/#view/HubsExtension/DeploymentDetailsBlade/~/overview/id/%2Fsubscriptions%2Fa0013bff-81a8-4606-bbc9-2df00694ec35%2Fproviders%2FMicrosoft.Resources%2Fdeployments%2Ffhir-1715196305

|== | Creating/Updating resources ERROR: error executing step command 'provision': deployment failed: failing invoking action 'provision', error deploying infrastructure: deploying to subscription:

Deployment Error Details: RoleAssignmentExists: The role assignment already exists.

TraceID: 014e73cb1dd725bb36a094bacfa8df14

muthink commented 1 month ago

Any ideas how this happens?

muthink commented 1 month ago

I have an idea. Please look at app-roles.json. The same guid is reused for user.all.all and user.all.read, for a unique id.

evachen96 commented 1 month ago

Hi @muthink - thanks for submitting your issue. We have double checked if the same guid is used as the unique id for 'user.all.all' and 'user.all.read' in app-roles.json. However, it is not the same in the repository. If these ids are the same, the error (Duplicate 'id' values are present in the 'appRoles' values.) should occur when updating the manifest json for the FHIR resource app, not when deploying the application.

We're also unable to reproduce this issue. Are you still having this problem? If so, can you share what steps you took to get this issue>

Thanks!