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
+37Lines changed: 37 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -224,6 +224,43 @@ const client = new AppConfigurationClient(myStoreEndpoint, new DefaultAzureCrede
224
224
});
225
225
```
226
226
227
+
### [Python](#tab/python)
228
+
#### Python configuration provider
229
+
230
+
If your application uses the following package, audience can be configured by passing the keyword `audience` to the `load` method. Use version **2.4.0** or later of the following package.
231
+
-`azure-appconfiguration-provider`
232
+
233
+
The following code snippet demonstrates how to load Azure App Configuration in a Python application with a cloud-specific audience.
234
+
235
+
```python
236
+
from azure.appconfiguration.provider import load
237
+
from azure.identity import DefaultAzureCredential
238
+
239
+
config = load(
240
+
endpoint=myStoreEndpoint,
241
+
credential=DefaultAzureCredential(),
242
+
audience="{Cloud specific audience here}",
243
+
)
244
+
```
245
+
246
+
#### Azure SDK for Python
247
+
248
+
If your application uses the following package, audience can be configured by passing the `audience` keyword to the `AzureAppConfigurationClient` constructor. Use version **1.8.0** or later of the following package.
249
+
-`azure-appconfiguration`
250
+
251
+
The following code snippet demonstrates how to instantiate a configuration client with a cloud-specific audience.
252
+
253
+
```python
254
+
from azure.appconfiguration import AzureAppConfigurationClient
255
+
from azure.identity import DefaultAzureCredential
256
+
257
+
client = AzureAppConfigurationClient(
258
+
myStoreEndpoint,
259
+
DefaultAzureCredential(),
260
+
audience="{Cloud specific audience here}",
261
+
)
262
+
```
263
+
227
264
### [Go](#tab/go)
228
265
229
266
To configure the Entra ID audience, import the following packages in your Go application first:
0 commit comments