Skip to content

Commit

Permalink
Update GUIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
seesharprun authored Nov 7, 2024
1 parent d8f9bba commit 7a1db30
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Binary file modified assets/web.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,16 @@ hooks:
windows:
run: |
dotnet user-secrets set "CONFIGURATION:AZURECOSMOSDB:ENDPOINT" "$env:CONFIGURATION__AZURECOSMOSDB__ENDPOINT" --project ./src/web/Microsoft.Samples.Cosmos.NoSQL.Quickstart.Web.csproj
dotnet user-secrets set "CONFIGURATION:AZURECOSMOSDB:DATABASENAME" "$env:CONFIGURATION__AZURECOSMOSDB__DATABASENAME" --project ./src/web/Microsoft.Samples.Cosmos.NoSQL.Quickstart.Web.csproj
dotnet user-secrets set "CONFIGURATION:AZURECOSMOSDB:CONTAINERNAME" "$env:CONFIGURATION__AZURECOSMOSDB__CONTAINERNAME" --project ./src/web/Microsoft.Samples.Cosmos.NoSQL.Quickstart.Web.csproj
shell: pwsh
continueOnError: false
interactive: true
posix:
run: |
dotnet user-secrets set "CONFIGURATION:AZURECOSMOSDB:ENDPOINT" "$CONFIGURATION__AZURECOSMOSDB__ENDPOINT" --project ./src/web/Microsoft.Samples.Cosmos.NoSQL.Quickstart.Web.csproj
dotnet user-secrets set "CONFIGURATION:AZURECOSMOSDB:DATABASENAME" "$CONFIGURATION__AZURECOSMOSDB__DATABASENAME" --project ./src/web/Microsoft.Samples.Cosmos.NoSQL.Quickstart.Web.csproj
dotnet user-secrets set "CONFIGURATION:AZURECOSMOSDB:CONTAINERNAME" "$CONFIGURATION__AZURECOSMOSDB__CONTAINERNAME" --project ./src/web/Microsoft.Samples.Cosmos.NoSQL.Quickstart.Web.csproj
shell: sh
continueOnError: false
interactive: true
6 changes: 3 additions & 3 deletions src/services/DemoService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public async Task RunAsync(Func<string, Task> writeOutputAync)

{
Product item = new(
id: "68719518391",
id: "aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb",
category: "gear-surf-surfboards",
name: "Yamba Surfboard",
quantity: 12,
Expand All @@ -51,7 +51,7 @@ public async Task RunAsync(Func<string, Task> writeOutputAync)

{
Product item = new(
id: "68719518371",
id: "bbbbbbbb-1111-2222-3333-cccccccccccc",
category: "gear-surf-surfboards",
name: "Kiama Classic Surfboard",
quantity: 25,
Expand All @@ -70,7 +70,7 @@ public async Task RunAsync(Func<string, Task> writeOutputAync)

{
ItemResponse<Product> response = await container.ReadItemAsync<Product>(
id: "68719518391",
id: "aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb",
partitionKey: new PartitionKey("gear-surf-surfboards")
);

Expand Down

0 comments on commit 7a1db30

Please sign in to comment.