GetCertificates_Orchestrator failing with permission error #685
-
So I will say: I wrote my own Pulumi code (based on the teraform code), and I'm assuming I did something wrong. But the portal is showing that the application has complete access, as does my user. The weird thing is that I have no idea what the appid is. The tenant matches, and the oid is the app's service principal, but appid is a mystery. EDIT: I can confirm the app also got the |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
Have you set up an access policy or RBAC for Key Vault certificates? The part in the Bicep template below, Key Vault Certificates Officer is required for RBAC. https://github.com/shibayan/keyvault-acmebot/blob/master/azuredeploy.bicep#L181-L189 |
Beta Was this translation helpful? Give feedback.
-
I did miss the |
Beta Was this translation helpful? Give feedback.
-
Ok, I did find that while the Service Principal has an assigned role, the Function App (as a managed identity) does not. Looking at it in the portal, I'm seeing errors about needing an Entra P2 license. It's not clear from the price/feature page, though, why I would. |
Beta Was this translation helpful? Give feedback.
-
Ok, giving the service principal a more-privileged role didn't fix it, so I think either the wrong thing has the role (possibly like above), or I've misconfigured the application about how to access its role somehow. |
Beta Was this translation helpful? Give feedback.
Ok, yes, this is it.
I only spotted it because of differences between the teraform and bicep code in the way they handle role assignment.