Skip to content

Commit 9d612f0

Browse files
committed
Update concept-enable-rbac.md
1 parent 18c6c11 commit 9d612f0

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

articles/azure-app-configuration/concept-enable-rbac.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,43 @@ public class Application {
169169
}
170170
```
171171

172+
### [Python](#tab/python)
173+
174+
The Audience for the target cloud must be configured for the following packages.
175+
176+
- Azure SDK for Python: azure-appconfiguration >= 1.8.0
177+
- Python configuration provider: azure-appconfiguration-provider >= 2.4.0
178+
179+
In the **Azure SDK for Python**, audience is configured by passing the `audience` keyword argument to the `AzureAppConfigurationClient` constructor.
180+
181+
The following code snippet demonstrates how to instantiate a configuration client with a cloud-specific audience.
182+
183+
```python
184+
from azure.appconfiguration import AzureAppConfigurationClient
185+
from azure.identity import DefaultAzureCredential
186+
187+
client = AzureAppConfigurationClient(
188+
myStoreEndpoint,
189+
DefaultAzureCredential(),
190+
audience="{Cloud specific audience here}",
191+
)
192+
```
193+
194+
In the **Python configuration provider**, audience is configured by passing the `audience` keyword argument to the `load` function.
195+
196+
The following code snippet demonstrates how to load Azure App Configuration in a Python application with a cloud-specific audience.
197+
198+
```python
199+
from azure.appconfiguration.provider import load
200+
from azure.identity import DefaultAzureCredential
201+
202+
config = load(
203+
endpoint=myStoreEndpoint,
204+
credential=DefaultAzureCredential(),
205+
audience="{Cloud specific audience here}",
206+
)
207+
```
208+
172209
### [JavaScript](#tab/javascript)
173210

174211
The Audience for the target cloud must be configured for the following packages.

0 commit comments

Comments
 (0)