File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -367,23 +367,6 @@ In your *app.py*:
367
367
368
368
* Create a new instance of the ** CosmosClient** class with the ** ENDPOINT** and ** credential** as parameters.
369
369
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
-
387
370
:::code language="python" source="~ /cosmos-db-nosql-python-samples/003-how-to/app_aad_principal.py" id="credential":::
388
371
389
372
## Build your application
You can’t perform that action at this time.
0 commit comments