Skip to content

Commit 926f7ef

Browse files
committed
Swap in last code from repo.
1 parent c2f67fc commit 926f7ef

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

articles/cosmos-db/nosql/how-to-python-get-started.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -367,23 +367,6 @@ In your *app.py*:
367367

368368
* Create a new instance of the **CosmosClient** class with the **ENDPOINT** and **credential** as parameters.
369369

370-
```python
371-
from azure.identity import ClientSecretCredential
372-
373-
ENDPOINT = os.environ["COSMOS_ENDPOINT"]
374-
TENANT_ID = os.environ["TENANT_ID"]
375-
CLIENT_SECRET = os.environ["CLIENT_SECRET"]
376-
CLIENT_ID = os.environ["CLIENT_ID"]
377-
378-
credential = ClientSecretCredential(
379-
tenant_id=TENANT_ID,
380-
client_id=CLIENT_ID,
381-
client_secret=CLIENT_SECRET
382-
)
383-
384-
client = CosmosClient(ENDPOINT, credential)
385-
```
386-
387370
:::code language="python" source="~/cosmos-db-nosql-python-samples/003-how-to/app_aad_principal.py" id="credential":::
388371

389372
## Build your application

0 commit comments

Comments
 (0)