Get a certificate from Azure Key Vault in Logic App

2.2k views Asked by At

I have a certificate stored in my Azure Key Vault. I need to create a logic app in the same subscription to use this certificate to authenticate with an Azure App Service web API end point, using AAD. How do I retrieve the certificate from the logic app? I am hoping I can get it directly from the logic app somehow without having to download it locally and re-upload to the Logic App.

2

There are 2 answers

2
Joy Wang On

You could call the REST API - Get Certificate in the logic app to retrieve the certificate, follow the steps below.

1.Enable system-assigned identity of the logic app in Azure portal

2.Navigate to the Access policies of your keyvault, add the system-assigned identity to it with the correct Certificate Permissions, follow this doc.

3.In the logic app, use the HTTP operation like below.

enter image description here

enter image description here

0
James On

Store your certificates in Key Vault, but if you want to use in a Logic App, the built-in Key Vault actions won't help. You have to resort to HTTP calls to the REST API!