Skip to content

Commit 94ee16b

Browse files
Merge pull request #226171 from mattchenderson/appconfig2
updating for app config key vault references
2 parents 8045bef + acae3fc commit 94ee16b

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

articles/app-service/app-service-configuration-references.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ To get started with using App Configuration references in App Service, you'll fi
1919

2020
1. Create an App Configuration store by following the [App Configuration quickstart](../azure-app-configuration/quickstart-dotnet-core-app.md#create-an-app-configuration-store).
2121

22+
> [!NOTE]
23+
> App Configuration references do not yet support network-restricted configuration stores.
24+
2225
1. Create a [managed identity](overview-managed-identity.md) for your application.
2326

2427
App Configuration references will use the app's system assigned identity by default, but you can [specify a user-assigned identity](#access-app-configuration-store-with-a-user-assigned-identity).
2528

2629
1. Enable the newly created identity to have the right set of access permissions on the App Configuration store. Update the [role assignments for your store](../azure-app-configuration/howto-integrate-azure-managed-service-identity.md#grant-access-to-app-configuration). You'll be assigning `App Configuration Data Reader` role to this identity, scoped over the resource.
2730

28-
> [!NOTE]
29-
> App Configuration references do not yet support network-restricted configuration stores.
30-
3131
### Access App Configuration Store with a user-assigned identity
3232

3333
Some apps might need to reference configuration at creation time, when a system-assigned identity wouldn't yet be available. In these cases, a user-assigned identity can be created and given access to the App Configuration store, in advance. Follow these steps to [create user-assigned identity for App Configuration store](../azure-app-configuration/overview-managed-identity.md#adding-a-user-assigned-identity).
@@ -46,6 +46,20 @@ Once you have granted permissions to the user-assigned identity, follow these st
4646
4747
This configuration will apply to all references from this App.
4848
49+
## Granting your app access to referenced key vaults
50+
51+
In addition to storing raw configuration values, Azure App Configuration has its own format for storing [Key Vault references][app-config-key-vault-references]. If the value of an App Configuration reference is a Key Vault reference in App Configuration store, your app will also need to have permission to access the key vault being specified.
52+
53+
> [!NOTE]
54+
> [The Azure App Configuration Key Vault references concept][app-config-key-vault-references] should not be confused with [the App Service and Azure Functions Key Vault references concept][app-service-key-vault-references]. Your app may use any combination of these, but there are some important differences to note. If your vault needs to be network restricted or you need the app to periodically update to latest versions, consider using the App Service and Azure Functions direct approach instead of using an App Configuration reference.
55+
56+
[app-config-key-vault-references]: ../azure-app-configuration/use-key-vault-references-dotnet-core.md
57+
[app-service-key-vault-references]: app-service-key-vault-references.md
58+
59+
1. Identify the identity that you used for the App Configuration reference. Access to the vault must be granted to that same identity.
60+
61+
1. Create an [access policy in Key Vault](../key-vault/general/security-features.md#privileged-access) for that identity. Enable the "Get" secret permission on this policy. Do not configure the "authorized application" or `applicationId` settings, as this is not compatible with a managed identity.
62+
4963
## Reference syntax
5064
5165
An App Configuration reference is of the form `@Microsoft.AppConfiguration({referenceString})`, where `{referenceString}` is replaced by below:
@@ -80,9 +94,6 @@ To use an App Configuration reference for an [app setting](configure-common.md#c
8094
> [!TIP]
8195
> Most application settings using App Configuration references should be marked as slot settings, as you should have separate stores or labels for each environment.
8296
83-
> [!NOTE]
84-
> Azure App Configuration also supports its own format for storing [Key Vault references](../azure-app-configuration/use-key-vault-references-dotnet-core.md). If the value of an App Configuration reference is a Key Vault reference in App Configuration store, the secret value will not be retrieved from Key Vault, as of yet. For using the secrets from KeyVault in App Service or Functions, please refer to the [Key Vault references in App Service](app-service-key-vault-references.md).
85-
8697
### Considerations for Azure Files mounting
8798
8899
Apps can use the `WEBSITE_CONTENTAZUREFILECONNECTIONSTRING` application setting to mount Azure Files as the file system. This setting has additional validation checks to ensure that the app can be properly started. The platform relies on having a content share within Azure Files, and it assumes a default name unless one is specified via the `WEBSITE_CONTENTSHARE` setting. For any requests that modify these settings, the platform will attempt to validate if this content share exists, and it will attempt to create it if not. If it can't locate or create the content share, the request is blocked.

0 commit comments

Comments
 (0)