You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:::image type="content" source="../../media/configure-azure-storage/key-vault-secret-identifier.png" alt-text="Screenshot of Key Vault secret identifier":::
99
99
100
100
1. Back in your app, create an [**application setting**](../../configure-common.md?tabs=portal#configure-app-settings) and paste the Key Vault **Secret Identifier** into **Value**.
:::image type="content" source="../../media/configure-azure-storage/secret-identifier-application-setting.png" alt-text="Screenshot of Secret Identifier application setting":::
102
102
103
103
Now you're ready to use Key Vault to access your storage account.
104
104
@@ -217,8 +217,6 @@ To validate that the Azure Storage is mounted successfully for the app:
217
217
218
218
- The mount directory in the custom container should be empty. Any content stored at this path is deleted when the Azure Storage is mounted (if you specify a directory under `/home`, for example). If you are migrating files for an existing app, make a backup of the app and its content before you begin.
219
219
220
-
- Mounting the storage to `/home` isn't recommended because it may result in performance bottlenecks forthe app. <!--This was mentionedin the earlier section-->
221
-
222
220
- In the Azure Storage account, avoid [regenerating the access key](../../../storage/common/storage-account-keys-manage.md) that's used to mount the storage in the app. The storage account contains two different keys. Azure App Services stores Azure storage account key. Use a stepwise approach to ensure that the storage mount remains available to the app during key regeneration. For example, assuming that you used **key1** to configure storage mount in your app:
Copy file name to clipboardExpand all lines: articles/app-service/includes/configure-azure-storage/azure-storage-windows-code-pivot.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,8 +75,8 @@ Choose this option when using Azure Key Vault to securely store and retrieve acc
75
75
- Mapping `/mounts`, `mounts/foo/bar`, `/`, and `/mounts/foo.bar/` to custom-mounted storage isn't supported (you can only use /mounts/pathname for mounting custom storage to your web app.)
76
76
- Storage mounts aren't included in [backups](../../manage-backup.md). Be sure to follow best practices to back up Azure Storage accounts.
77
77
- With VNET integration on your app, the mounted drive uses an RFC1918 IP address and not an IP address from your VNET.
78
-
-
79
-
-## Prepare for mounting
78
+
79
+
## Prepare for mounting
80
80
81
81
### [Basic](#tab/basic)
82
82
@@ -91,10 +91,10 @@ You need to obtain the access key from your storage account. <!--link or instruc
91
91
Before you can mount storage using Key Vault access, you need to get the Key Vault secret and add it as an application setting in your app.
92
92
93
93
1. In the portal, browse to your Key Vault secret and copy the **Secret Identifier** into your clipboard.
:::image type="content" source="../../media/configure-azure-storage/key-vault-secret-identifier.png" alt-text="Screenshot of Key Vault secret identifier":::
95
95
96
96
1. Back in your app, create an [**application setting**](../../configure-common.md?tabs=portal#configure-app-settings) and paste the Key Vault **Secret Identifier** into **Value**.
:::image type="content" source="../../media/configure-azure-storage/key-vault-secret-identifier.png" alt-text="Screenshot of Key Vault secret identifier":::
97
97
98
98
1. Back in your app, create an [**application setting**](../../configure-common.md?tabs=portal#configure-app-settings) and paste the Key Vault **Secret Identifier** into **Value**.
:::image type="content" source="../../media/configure-azure-storage/secret-identifier-application-setting.png" alt-text="Screenshot of Secret Identifier application setting":::
100
100
101
101
Now you're ready to use Key Vault to access your storage account.
102
102
103
103
---
104
104
105
105
## Mount storage to Windows container
106
106
107
-
# [Azure portal](#tab/portal)
108
-
109
-
1. In the [Azure portal](https://portal.azure.com), navigate to the app.
110
-
1. From the left navigation, click **Configuration** > **Path Mappings** > **New Azure Storage Mount**.
111
-
1. Configure the storage mount according to the following table. When finished, click **OK**.
112
-
113
-
| Setting | Description |
114
-
|-|-|
115
-
|**Name**| Name of the mount configuration. Spaces aren't allowed. |
116
-
|**Configuration options**| Select **Basic** if the storage account isn't using [private endpoints](../../../storage/common/storage-private-endpoints.md) or [Azure Key Vault](../../../key-vault/general/overview.md). Otherwise, select **Advanced**. |
117
-
|**Storage accounts**| Azure Storage account. It must contain an Azure Files share. |
118
-
|**Share name**| Files share to mount. |
119
-
|**Access key** (Advanced only) |[Access key](../../../storage/common/storage-account-keys-manage.md) for your storage account. |
120
-
|**Mount path**| Directory inside your Windows container that you want to mount. Don't use a root directory (`[C-Z]:\` or `/`) or the `home` directory (`[C-Z]:\home`, or `/home`) as it isn't supported.|
121
-
|**Application settings**| Select the app setting that's configured with the Azure Key Vault secret.|
122
-
|**Deployment slot setting**| When checked, the storage mount settings also apply to deployment slots.|
123
-
124
107
# [Azure portal](#tab/portal/access-key)
125
108
126
109
1. In the [Azure portal](https://portal.azure.com), navigate to the app.
@@ -130,7 +113,7 @@ Now you're ready to use Key Vault to access your storage account.
130
113
| Setting | Description |
131
114
|-|-|
132
115
|**Name**| Name of the mount configuration. Spaces aren't allowed. |
133
-
|**Configuration options**| Select **Basic** if the storage account isn't using [private endpoints](../../../storage/common/storage-private-endpoints.md) or [Azure Key Vault](../../../key-vault/general/overview.md). Otherwise, select **Advanced**. |
0 commit comments