Skip to content

Commit 2004b6f

Browse files
author
ecfan
committed
Add steps for user-assigned managed identity on storage account
1 parent a73f943 commit 2004b6f

File tree

1 file changed

+46
-2
lines changed

1 file changed

+46
-2
lines changed

articles/logic-apps/create-single-tenant-workflows-azure-portal.md

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: logic-apps
55
ms.suite: integration
66
ms.reviewer: estfan, azla
77
ms.topic: how-to
8-
ms.date: 01/03/2024
8+
ms.date: 07/08/2024
99
# Customer intent: As a developer, I want to create my first example Standard logic app workflow that runs in single-tenant Azure Logic Apps using the Azure portal.
1010
---
1111

@@ -133,7 +133,7 @@ More workflows in your logic app raise the risk of longer load times, which nega
133133
| Property | Required | Value | Description |
134134
|----------|----------|-------|-------------|
135135
| **Storage type** | Yes | - **Azure Storage** <br>- **SQL and Azure Storage** | The storage type that you want to use for workflow-related artifacts and data. <br><br>- To deploy only to Azure, select **Azure Storage**. <br><br>- To use SQL as primary storage and Azure Storage as secondary storage, select **SQL and Azure Storage**, and review [Set up SQL database storage for Standard logic apps in single-tenant Azure Logic Apps](set-up-sql-db-storage-single-tenant-standard-workflows.md). <br><br>**Note**: If you're deploying to an Azure region, you still need an Azure storage account, which is used to complete the one-time hosting of the logic app's configuration on the Azure Logic Apps platform. The workflow's state, run history, and other runtime artifacts are stored in your SQL database. <br><br>For deployments to a custom location that's hosted on an Azure Arc cluster, you only need SQL as your storage provider. |
136-
| **Storage account** | Yes | <*Azure-storage-account-name*> | The [Azure Storage account](../storage/common/storage-account-overview.md) to use for storage transactions. <br><br>This resource name must be unique across regions and have 3-24 characters with only numbers and lowercase letters. Either select an existing account or create a new account. <br><br>This example creates a storage account named **mystorageacct**. |
136+
| **Storage account** | Yes | <*Azure-storage-account-name*> | The [Azure Storage account](../storage/common/storage-account-overview.md) to use for storage transactions. <br><br>This resource name must be unique across regions and have 3-24 characters with only numbers and lowercase letters. Either select an existing account or create a new account. <br><br>This example creates a storage account named **mystorageacct**. <br><br>**Note**: By default, Standard logic apps use a connection string to access your Azure Storage account. However, after you create your Standard logic app, you can [set up a user-assigned managed identity instead to authenticate access from your logic app to your storage account](#set-up-managed-identity-storage). |
137137

138138
1. On the **Networking** tab, you can leave the default options for this example.
139139

@@ -387,6 +387,50 @@ For a stateful workflow, you can review the trigger history for each run, includ
387387

388388
For an existing stateful workflow run, you can rerun the entire workflow with the same inputs that were previously used for that run. For more information, see [Rerun a workflow with same inputs](monitor-logic-apps.md?tabs=standard#resubmit-workflow-run).
389389

390+
<a named="set-up-managed-identity-storage"></a>
391+
392+
## Set up managed identity access to your storage account
393+
394+
By default, your Standard logic app authenticates access to your Azure Storage account by using a connection string. However, you can set up a user-assigned managed identity to authenticate access instead.
395+
396+
1. From your storage account, get the URIs for the Blob, Queue, and Table services by following these steps:
397+
398+
1. In the Azure portal, go to your storage account. On the storage account menu, under **Settings**, select **Endpoints**.
399+
400+
1. Copy and save the URIs for **Blob service**, **Queue service**, and **Table service**.
401+
402+
1. If you haven't already, [follow these steps to create a user-assigned managed identity](/entra/identity/managed-identities-azure-resources/how-manage-user-assigned-managed-identities?pivots=identity-mi-methods-azp#create-a-user-assigned-managed-identity).
403+
404+
1. From your user-assigned identity, get the resource ID by following these steps:
405+
406+
1. On the user-assigned managed identity menu, under **Settings**, select **Properties**.
407+
408+
1. From the **Id** property, copy and save the resource ID.
409+
410+
1. Go to your Standard logic app. On the logic app menu, select **Overview**.
411+
412+
1. On the **Overview** page toolbar, select **Stop**.
413+
414+
1. On the logic app menu, under **Settings**, select **Environment variables**.
415+
416+
1. On the **App settings** tab, select **Add** to add the following app settings and values:
417+
418+
| App setting | Value |
419+
|-------------|-------|
420+
| **AzureWebJobsStorage_managedIdentityResourceId** | The resource ID for your user-assigned managed identity |
421+
| **AzureWebJobsStorage_blobServiceUri** | The Blob service URI for your storage account |
422+
| **AzureWebJobsStorage_queueServiceUri** | The Queue service URI for your storage account |
423+
| **AzureWebJobsStorage_tableServiceUri** | The Table service URI for your storage account |
424+
| **AzureWebJobsStorage_credential** | **managedIdentity** |
425+
426+
1. On the **App settings** tab, delete the app setting named **AzureWebJobsStorage**, which is set to the connection string associated with your storage account.
427+
428+
1. When you finish, select **Apply** to save your changes, which restarts your logic app.
429+
430+
Your changes might take several moments to take effect. If necessary, on your logic app menu, select **Overview**, and on the toolbar, select **Refresh**.
431+
432+
433+
390434
<a name="enable-run-history-stateless"></a>
391435

392436
## Enable run history for stateless workflows

0 commit comments

Comments
 (0)