Skip to content

Commit 47c314d

Browse files
renaming in sample readmd (Azure#33795)
### Packages impacted by this PR @azure/cosmos ### Issues associated with this PR Azure#33769 ### Describe the problem that is addressed by this PR ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? ### Are there test cases added in this PR? _(If not, why?)_ ### Provide a list of related PRs _(if any)_ ### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_ ### Checklists - [ ] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [ ] Added a changelog (if necessary)
1 parent bc78d02 commit 47c314d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

sdk/cosmosdb/cosmos/samples/v3/javascript/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ These sample programs show how to use the JavaScript client libraries for Azure
1313

1414
| **File Name** | **Description** |
1515
| ----------------------------------------------- | --------------------------------------------------------------------------------------------------- |
16-
| [AADAuth.js][aadauth] | Uses AAD credentials to authenticate with the CosmosClient. |
16+
| [EntraAuth.js][entraauth] | Uses Entra Auth credentials to authenticate with the CosmosClient. |
1717
| [AlterQueryThroughput.js][alterquerythroughput] | Updates a container offer to change query throughput. |
1818
| [Bulk.js][bulk] | Shows a simple bulk call with each BulkOperation type. |
1919
| [BulkUpdateWithSproc.js][bulkupdatewithsproc] | Bulk Updates documents with a Stored Procedure. Prefer `container.items().bulk()` to this behavior. |
@@ -53,20 +53,20 @@ npm install
5353
3. Run whichever samples you like (note that some samples may require additional setup, see the table above):
5454

5555
```bash
56-
node AADAuth.js
56+
node EntraAuth.js
5757
```
5858

5959
Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform):
6060

6161
```bash
62-
npx dev-tool run vendored cross-env COSMOS_KEY="<cosmos key>" COSMOS_ENDPOINT="<cosmos endpoint>" COSMOS_CONTAINER="<cosmos container>" node AADAuth.js
62+
npx dev-tool run vendored cross-env COSMOS_KEY="<cosmos key>" COSMOS_ENDPOINT="<cosmos endpoint>" COSMOS_CONTAINER="<cosmos container>" node EntraAuth.js
6363
```
6464

6565
## Next Steps
6666

6767
Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients.
6868

69-
[aadauth]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/cosmos/samples/v3/javascript/AADAuth.js
69+
[entraauth]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/cosmos/samples/v3/javascript/EntraAuth.js
7070
[alterquerythroughput]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/cosmos/samples/v3/javascript/AlterQueryThroughput.js
7171
[bulk]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/cosmos/samples/v3/javascript/Bulk.js
7272
[bulkupdatewithsproc]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/cosmos/samples/v3/javascript/BulkUpdateWithSproc.js

sdk/cosmosdb/cosmos/samples/v3/typescript/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ These sample programs show how to use the TypeScript client libraries for Azure
1313

1414
| **File Name** | **Description** |
1515
| ----------------------------------------------- | --------------------------------------------------------------------------------------------------- |
16-
| [AADAuth.ts][aadauth] | Uses AAD credentials to authenticate with the CosmosClient. |
16+
| [EntraAuth.ts][entraauth] | Uses Entra Auth credentials to authenticate with the CosmosClient. |
1717
| [AlterQueryThroughput.ts][alterquerythroughput] | Updates a container offer to change query throughput. |
1818
| [Bulk.ts][bulk] | Shows a simple bulk call with each BulkOperation type. |
1919
| [BulkUpdateWithSproc.ts][bulkupdatewithsproc] | Bulk Updates documents with a Stored Procedure. Prefer `container.items().bulk()` to this behavior. |
@@ -65,20 +65,20 @@ npm run build
6565
4. Run whichever samples you like (note that some samples may require additional setup, see the table above):
6666

6767
```bash
68-
node dist/AADAuth.js
68+
node dist/EntraAuth.js
6969
```
7070

7171
Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform):
7272

7373
```bash
74-
npx dev-tool run vendored cross-env COSMOS_KEY="<cosmos key>" COSMOS_ENDPOINT="<cosmos endpoint>" COSMOS_CONTAINER="<cosmos container>" node dist/AADAuth.js
74+
npx dev-tool run vendored cross-env COSMOS_KEY="<cosmos key>" COSMOS_ENDPOINT="<cosmos endpoint>" COSMOS_CONTAINER="<cosmos container>" node dist/EntraAuth.js
7575
```
7676

7777
## Next Steps
7878

7979
Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients.
8080

81-
[aadauth]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/cosmos/samples/v3/typescript/src/AADAuth.ts
81+
[entraauth]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/cosmos/samples/v3/typescript/src/EntraAuth.ts
8282
[alterquerythroughput]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/cosmos/samples/v3/typescript/src/AlterQueryThroughput.ts
8383
[bulk]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/cosmos/samples/v3/typescript/src/Bulk.ts
8484
[bulkupdatewithsproc]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/cosmosdb/cosmos/samples/v3/typescript/src/BulkUpdateWithSproc.ts

0 commit comments

Comments
 (0)