Skip to content

Commit ab54ac3

Browse files
committed
fixes
1 parent 417027c commit ab54ac3

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

articles/cosmos-db/nosql/quickstart-dotnet.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ You'll use the following .NET classes to interact with these resources:
107107
- [Get an item](#get-an-item)
108108
- [Query items](#query-items)
109109

110-
The sample code described in this article creates a database named ``adventureworks`` with a container named ``products``. The ``products`` table is designed to contain product details such as name, category, quantity, and a sale indicator. Each product also contains a unique identifier.
110+
The sample code described in this article creates a database named ``cosmicworks`` with a container named ``products``. The ``products`` table is designed to contain product details such as name, category, quantity, and a sale indicator. Each product also contains a unique identifier.
111111

112112
For this sample code, the container will use the category as a logical partition key.
113113

@@ -125,15 +125,15 @@ For this sample code, the container will use the category as a logical partition
125125

126126
[!INCLUDE [default-azure-credential-sign-in](../../../includes/passwordless/default-azure-credential-sign-in.md)]
127127

128-
You can authenticate to Cosmos DB for NoSQL using DefaultAzureCredential by adding the `Azure.Identity` NuGet package to your application. `DefaultAzureCredential` will automatically discover and use the account you signed-in with in the previous step.
128+
You can authenticate to Cosmos DB for NoSQL using `DefaultAzureCredential` by adding the `Azure.Identity` NuGet package to your application. `DefaultAzureCredential` will automatically discover and use the account you signed-in with in the previous step.
129129

130130
```dotnetcli
131131
dotnet add package Azure.Identity
132132
```
133133

134134
From the project directory, open the `Program.cs` file. In your editor, add using directives for the ``Microsoft.Azure.Cosmos`` and `Azure.Identity` namespaces.
135135

136-
:::code language="csharp" source="~/cosmos-db-nosql-dotnet-samples/001-quickstart/Program.cs" id="using_directives":::
136+
:::code language="csharp" source="~/cosmos-db-nosql-dotnet-samples/002-quickstart-passwordless/Program.cs" id="using_directives":::
137137

138138
Define a new instance of the ``CosmosClient`` class using the constructor, and [``Environment.GetEnvironmentVariable``](/dotnet/api/system.environment.getenvironmentvariable) to read the `COSMOS_ENDPOINT` environment variable you created earlier.
139139

includes/passwordless/cosmos-nosql/cosmos-nosql-create-assign-roles.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,10 @@ Finally, assign the custom role you created to your user account using the `az c
5252

5353
```azurecli
5454
az cosmosdb sql role assignment create
55-
--account-name <your-cosmos-account-name>
56-
--resource-group <your-cosmos-resource-group
57-
--scope "/" --principal-id <your-user-id>
55+
--account-name msdocs-cosmos-nosql
56+
--resource-group msdocs
57+
--scope "/"
58+
--principal-id <your-user-id>
5859
--role-definition-id <your-custom-role-id>
5960
```
6061

0 commit comments

Comments
 (0)