Logic App access to Hosting Storage account using Managed Identity

Vignesh Sukumar 26 Reputation points Microsoft Employee
2024-05-08T12:43:59.1066667+00:00

Hi Team ,

Wanted to check if the Managed identity support is available in Logic App Standard (in ASE), to access the hosting storage account.

Current Configuration in Environment Variable is with AzureWebJobsStorage

When we try to replace with below three params

AzureWebJobsStorage__accountName , AzureWebJobsStorage__clientId, AzureWebJobsStorage__credential

Getting an error: Microsoft.WindowsAzure.Storage: Value cannot be null. (Parameter 'connectionString').

Please suggest if am missing anything.

PS: Both Logic app and storage account are in VNet and was able to access via direct connection string.

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

1 answer

Sort by: Most helpful
  1. Deepanshukatara-6769 7,435 Reputation points
    2024-05-08T13:48:45.49+00:00

    Hi Vignesh,

    Yes support is there , please check this https://learn.microsoft.com/en-us/azure/logic-apps/authenticate-with-managed-identity?tabs=consumption

    Using Managed Identity to access the storage account from a Logic App Standard running in an App Service Environment (ASE). Managed Identity allows Azure services to authenticate securely without needing explicit credentials like connection strings.

    Here are a few things to consider and troubleshoot:

    1. Managed Identity Setup: Ensure that Managed Identity is properly configured for the Logic App Standard instance within the App Service Environment. You can check this in the Azure portal by navigating to the Logic App's settings and then the Identity section. User's image
    2. Access Control: Confirm that the Managed Identity has the necessary permissions (e.g., Blob Data Contributor) on the storage account. You can set this up in the Access Control (IAM) section of the storage account.

    User's image

    3. Environment Variables: When using Managed Identity, you generally don't need to specify connection string parameters such as accountName, clientId, and credential in the environment variables. Instead, you should use the AzureWebJobsStorage and give the value of storage account name it will connect and can be accessed directly

    Kindly accept answer if it helps , Thankyou!