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
In the **Azure SDK for Java**, audience is configured by passing the `audience` option to the `ConfigurationClientBuilder` when building a `ConfigurationClient`.
116
+
117
+
The following code snippet demonstrates how to instantiate a configuration client with a cloud-specific audience.
.audience(ConfigurationAudience.fromString("{Cloud specific audience here}"))
124
+
.buildClient();
125
+
```
126
+
127
+
In the **Spring configuration provider**, audience is configured by customizing the `ConfigurationClientBuilder` through the `ConfigurationClientCustomizer` interface, then adding it to the bootstrap registry.
128
+
129
+
The following code snippet demonstrates how to add the Azure App Configuration provider into a Spring Boot application with a cloud-specific audience.
> This same approach is used for configuring the audience the Spring configuration provider uses for modifying the `SecretClient` when Key Vault is used as a reference in App Configuration. Just implement a `SecretClientCustomizer` and register it in the bootstrap registry to configure the audience for Key Vault references.
175
+
176
+
108
177
### [JavaScript](#tab/javascript)
109
178
110
179
The Audience for the target cloud must be configured for the following packages.
0 commit comments