question

MarBug avatar image
0 Votes"
MarBug asked ·

Getting "Failed to get App Service Service principal details" when trying to import certificate from Key Vault into App Service

Hello,

We are experiencing really strange issue. We have .pfx certificate imported into a Key Vault and we want to import it into Azure App Service. We've created MSI for the App Service (Going into App Service > Identity > Enable System Assigned Managed Identity) and added that identity to access policy with all permissions to the Key Vault. When we try to import certificate into the App service we get the error -> "Failed to get App Service Service principal details".

Does any of you know what can be the cause of this issue?

Thanks in advance,

Marjan

azure-webappsazure-webapps-ssl-certifcates
· 7
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Marjan,

Sorry you're facing this problem. When did you start seeing this issue? Have you tried tried importing the certificate via powershell using Import-AzureKeyVaultCertificate ?


0 Votes 0 · ·
MarBug avatar image MarBug GraceMacJonesMSFT-2612 ·

Hi Grace,

Thank you for your reply. The issue I'm having is with importing certificate from Key Vault into Azure App Service. We've tried it manually, and also using terraform - import certificate from Azure Key Vault into Azure App service, and it fails with the above error. The powershell command you mentioned is only used for importing certificates into a key vault, am I correct?

Kind regards,
Marjan

0 Votes 0 · ·

Thanks for your patience Marjan.

I Reached out to the engineering team internally and they said there could be different factors causing this error. Do you have the ability to open a support ticket by any chance? If you don't, I can help you open one, so please send me your subscription ID to AzCommunity[AT]Microsoft dot com, add "Attn: Grace Macjones" to the subject line, and the link to this forum for context. I will enable a free support ticket so that the issue can be escalated to the responsible team for immediate help.


Regards,
Grace

0 Votes 0 · ·

Experiencing exactly same issue, was there any resolution

0 Votes 0 · ·
MarBug avatar image MarBug SangraRaman-5139 ·

Hi SangraRaman,

Still nothing. We're waiting if anyone has any insight on this.

BR,
Marjan

0 Votes 0 · ·

Hi Marjan,

As I mentioned in the above comment. Please send us an email with your subscription ID to AzCommunity[AT]Microsoft dot com so we can investigate this issue further.

Thanks,
Grace

0 Votes 0 · ·
Show more comments

0 Answers