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
Copy file name to clipboardExpand all lines: articles/azure-app-configuration/concept-enable-rbac.md
+96-92Lines changed: 96 additions & 92 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,9 +60,27 @@ Follow these steps to assign App Configuration Data roles to your credential.
60
60
3. On the **Members** tab, follow the wizard to select the credential you're granting access to and then select **Next**.
61
61
4. Finally, on the **Review + assign** tab, select **Review + assign** to assign the role.
62
62
63
-
## Cloud-specific audience for Entra ID authentication
63
+
## Audience for Entra ID authentication
64
64
65
-
When using Entra ID and the following Azure App Configuration libraries in clouds other than Azure cloud, Azure Government, and Microsoft Azure operated by 21Vianet, an appropriate Entra ID audience must be configured to enable authentication.
65
+
The audience for Microsoft Entra ID authentication defines who is permitted to access a specific resource. It identifies the intended recipient of the security token. App Configuration supports different audiences for different clouds.
66
+
67
+
### App Configuration audience
68
+
69
+
For Azure App Configuration in the global Azure cloud, use the following audience:
70
+
71
+
`https://appconfig.azure.com`
72
+
73
+
For Azure App Configuration in the national clouds, use the applicable audience specified in the table below:
| Microsoft Azure operated by 21Vianet |`https://appconfig.azure.cn`|
79
+
| Bleu |`https://appconfig.sovcloud-api.fr`|
80
+
81
+
### Configure cloud-specific audience
82
+
83
+
When using Entra ID to authenticate with Azure App Configuration in clouds other than Azure cloud, Azure Government, and Microsoft Azure operated by 21Vianet, an appropriate Entra ID audience must be configured.
66
84
67
85
> [!TIP]
68
86
> If you encounter the following error when connecting to Azure App Configuration, it’s typically because you’re using App Configuration in a specific cloud without explicitly configuring the Microsoft Entra ID audience.
@@ -74,32 +92,12 @@ When using Entra ID and the following Azure App Configuration libraries in cloud
74
92
> To resolve this issue, configure the appropriate Entra ID audience as shown in the code snippets below.
75
93
76
94
### [.NET](#tab/dotnet)
95
+
#### .NET configuration provider
77
96
78
-
The Audience for the target cloud must be configured for the following packages.
79
-
80
-
- Azure SDK for .NET: Azure.Data.AppConfiguration >= 1.6.0
In the **Azure SDK for .NET**, audience is configured by utilizing the following API calls:
84
-
85
-
* The ConfigurationClient constructor [accepts ConfigurationClientOptions](/dotnet/api/azure.data.appconfiguration.configurationclient.-ctor#azure-data-appconfiguration-configurationclient-ctor(system-uri-azure-core-tokencredential-azure-data-appconfiguration-configurationclientoptions))
86
-
* ConfigurationClientOptions allows [Audience](/dotnet/api/azure.data.appconfiguration.configurationclientoptions.audience#azure-data-appconfiguration-configurationclientoptions-audience) to be set
87
-
88
-
The following code snippet demonstrates how to instantiate a configuration client with a cloud-specific audience.
89
-
90
-
```csharp
91
-
var configurationClient = new ConfigurationClient(
92
-
myStoreEndpoint,
93
-
new DefaultAzureCredential(),
94
-
new ConfigurationClientOptions
95
-
{
96
-
Audience = "{Cloud specific audience here}"
97
-
});
98
-
```
99
-
100
-
In the **.NET configuration provider**, audience is configured by utilizing the following API calls:
101
-
102
-
* AzureAppConfigurationOptions exposes a [ConfigureClientOptions](/dotnet/api/microsoft.extensions.configuration.azureappconfiguration.azureappconfigurationoptions.configureclientoptions#microsoft-extensions-configuration-azureappconfiguration-azureappconfigurationoptions-configureclientoptions(system-action((azure-data-appconfiguration-configurationclientoptions)))) method
97
+
If your application uses any of the following packages, audience can be configured by utilizing the [ConfigureClientOptions](/dotnet/api/microsoft.extensions.configuration.azureappconfiguration.azureappconfigurationoptions.configureclientoptions#microsoft-extensions-configuration-azureappconfiguration-azureappconfigurationoptions-configureclientoptions(system-action((azure-data-appconfiguration-configurationclientoptions)))) method. Use version **8.2.0** or later of any of the following packages to configure the audience.
In the **Azure SDK for Java**, audience is configured by passing the `audience` option to the `ConfigurationClientBuilder` when building a `ConfigurationClient`.
118
+
If your application uses the following package, audience can be configured in `ConfigurationClientOptions` when constructing the `ConfigurationClient` object. Use version **1.6.0** or later of the following package.
119
+
-`Azure.Data.AppConfiguration`
125
120
126
121
The following code snippet demonstrates how to instantiate a configuration client with a cloud-specific audience.
.audience(ConfigurationAudience.fromString("{Cloud specific audience here}"))
133
-
.buildClient();
123
+
```csharp
124
+
varconfigurationClient=newConfigurationClient(
125
+
myStoreEndpoint,
126
+
newDefaultAzureCredential(),
127
+
newConfigurationClientOptions
128
+
{
129
+
Audience="{Cloud specific audience here}"
130
+
});
134
131
```
135
132
136
-
In the **Spring configuration provider**, audience is configured by customizing the `ConfigurationClientBuilder` through the `ConfigurationClientCustomizer` interface, then adding it to the bootstrap registry.
133
+
### [Java](#tab/java)
134
+
#### Spring configuration provider
135
+
136
+
If your application uses any of the following packages, audience can be configured by customizing the `ConfigurationClientBuilder` through the `ConfigurationClientCustomizer` interface, then adding it to the bootstrap registry. Use version **5.22.0** or later of the following packages to configure the audience.
137
+
-`spring-cloud-azure-appconfiguration-config`
138
+
-`spring-cloud-azure-appconfiguration-config-web`
137
139
138
140
The following code snippet demonstrates how to add the Azure App Configuration provider into a Spring Boot application with a cloud-specific audience.
139
141
@@ -178,24 +180,26 @@ public class Application {
178
180
}
179
181
```
180
182
181
-
### [JavaScript](#tab/javascript)
182
-
183
-
The Audience for the target cloud must be configured for the following packages.
184
-
185
-
- Azure SDK for JavaScript: @azure/app-configuration >= 1.9.0
In the **Azure SDK for JavaScript**, audience is configured by passing the `audience` option to the `AppConfigurationClient` constructor.
185
+
If your application uses the following package, audience can be configured by passing the `audience` option to the `ConfigurationClientBuilder` when building a `ConfigurationClient`. Use version **1.8.0** or later of the following package.
186
+
-`azure-data-appconfiguration`
189
187
190
188
The following code snippet demonstrates how to instantiate a configuration client with a cloud-specific audience.
.audience(ConfigurationAudience.fromString("{Cloud specific audience here}"))
195
+
.buildClient();
196
196
```
197
197
198
-
In the **JavaScript configuration provider**, audience is configured by passing the `clientOptions` with the `audience` property to the `load` function.
198
+
### [JavaScript](#tab/javascript)
199
+
#### JavaScript configuration provider
200
+
201
+
If your application uses the following package, audience can be configured by passing the `clientOptions` with the `audience` property to the `load` function. Use version **1.0.0** or later of the following package.
202
+
-`@azure/app-configuration-provider`
199
203
200
204
The following code snippet demonstrates how to load Azure App Configuration in a JavaScript application with a cloud-specific audience.
The Audience for the target cloud must be configured for the following packages.
216
+
If your application uses the following package, audience can be configured by passing the `audience` option to the `AppConfigurationClient` constructor. Use version **1.9.0** or later of the following package.
217
+
-`@azure/app-configuration`
218
+
219
+
The following code snippet demonstrates how to instantiate a configuration client with a cloud-specific audience.
- Go configuration provider: azureappconfiguration >= 1.0.0
227
+
### [Go](#tab/go)
216
228
217
-
You need to import the following packages:
229
+
To configure the Entra ID audience, import the following packages in your Go application first:
218
230
219
231
```golang
220
232
import (
@@ -223,13 +235,21 @@ import (
223
235
)
224
236
```
225
237
226
-
In the **Azure SDK for Go**, audience is configured by utilizing the cloud configuration.
238
+
#### Go configuration provider
227
239
228
-
The following code snippet demonstrates how to instantiate a configuration client with a cloud-specific audience.
240
+
If your application uses the following package, audience can be configured by passing the `ClientOptions` with the cloud configuration to the `Load` function. Use version **1.0.0** or later of the following package.
241
+
-`azureappconfiguration`
242
+
243
+
The following code snippet demonstrates how to load Azure App Configuration in a Go application with a cloud-specific audience.
In the **Go configuration provider**, audience is configured by passing the `ClientOptions` with the cloud configuration to the `Load` function.
272
+
#### Azure SDK for Go
251
273
252
-
The following code snippet demonstrates how to load Azure App Configuration in a Go application with a cloud-specific audience.
274
+
If your application uses the following package, audience can be configured by utilizing the cloud configuration. Use version **2.1.0** or later of the following package.
275
+
-`azappconfig`
276
+
277
+
The following code snippet demonstrates how to instantiate a configuration client with a cloud-specific audience.
Copy file name to clipboardExpand all lines: articles/azure-app-configuration/rest-api-authentication-azure-ad.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ Before acquiring a Microsoft Entra token, you must identify what user you want t
39
39
40
40
Request the Microsoft Entra token with a proper audience. The audience can also be referred to as the *resource* that the token is being requested for.
41
41
42
-
For details on which audience to use for which cloud, refer to the [audience section of the Entra ID access overview](./concept-enable-rbac.md#audience).
42
+
For details on which audience to use for which cloud, refer to the [audience section of the Entra ID access overview](./concept-enable-rbac.md#app-configuration-audience).
0 commit comments