Share via

managed identity authentication

Hariharan Viswanath 40 Reputation points
Mar 20, 2025, 5:26 PM

When migrating the code from a development environment to a production environment, the Key vault migration API call fails to be migrated with the Authentication type as Managed Identity.

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,456 questions
{count} votes

Accepted answer
  1. Loknathsatyasaivarma Mahali 1,385 Reputation points Microsoft External Staff
    Apr 3, 2025, 8:09 PM

    HelloHariharan Viswanath,

    Thanks for your time over the meeting and please find the troubleshooting steps below that we have performed to resolve the issue.

    • First, we have ensured that ARM template for Microsoft.Web/connections correctly references the KeyVault API and includes the Managed Identity for authentication.
    • After checking and performing the re-deployment we have found the same error " {"code":"WorkflowManagedIdentityConfigurationInvalid","message":"The workflow connection parameter 'keyvault-2' is not valid. The API connection 'keyvault' is not configured to support managed identity."} "

    So, we modified the template parameters as shown in the below:

    {
        "type": "Microsoft.Web/connections",
        "apiVersion": "2016-06-01",
        "name": "[variables('KeyVault_Connection_Name')]",
        "location": "[variables('location')]",
        "kind": "V1",
        "properties": {
            "api": {
                "id": "[concat('/subscriptions/', variables('subscriptionId'), '/providers/Microsoft.Web/locations/', variables('location'), '/managedApis/', 'keyvault')]"
            },
            "parameterValueType": "Alternative",
            "alternativeParameterValues": {
                        "vaultName": "*******"
                    },
            "displayName": "[variables('KeyVault_Display_Connection_Name')]"
        }
    },
    
    
    • Then we have re-deployed the template and that got worked as expected.

    If you found the response helpful, please click Accept Answer and Yes for the provided answer. This will help other community members with similar issues find the solution more easily.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.