Skip to content

Commit

Permalink
Final updates for the Denormalize Data demo
Browse files Browse the repository at this point in the history
  • Loading branch information
TaleLearnCode committed Sep 13, 2021
1 parent d51ddff commit 117f891
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 34 deletions.
Binary file modified .vs/Ch-Ch-Ch-Changes/v17/.suo
Binary file not shown.
Binary file modified .vs/slnx.sqlite
Binary file not shown.
17 changes: 16 additions & 1 deletion Demos/DemoScript.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,27 @@ All of these demos assume that a Cosmos DB account has been created using the Co
#### Prep-Work

1. Create an Azure Cosmos DB database labeled *shindigManger*

2. Create a container within the *shindigManger* database labeled *metadata* with a partition key named *type*

3. Create a container within the *shindigManger* database labeled *presentations* with a partition key named *eventId*
4. Run the Demonstrator project and go to the Denormalization demo and perform the following tasks:

4. Validate the following properties within the *Demonstrator* Settings class:
* DataFolderPath
* ShindigManagerDatabaseName
* PresentationsContainerName
* MetadataContainerName

4. Run the *Demonstrator* project and go to the Denormalization demo and perform the following tasks:
* Upload Presentations
* Upload Metadata

5. Validate the following settings within the *DenomralizationData-Function* local.setings.json:
* CosmosConnectionString
* ShindigMangerDatabaseName
* MetadataContainerName
* PresentationsContainerName

#### Demo Steps
1. Talk about how we are going to stimulate changes happening within denormalized data
2. Talk through the code within the DenormalizeData function
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ public static class DenormalizeData

static DenormalizeData()
{
_container = new CosmosClient(Settings.CosmosConnectionString)
.GetDatabase(Settings.ShindigManagerDatabaseName)
.GetContainer(Settings.PresentationsContainerName);
_container = new CosmosClient(Environment.GetEnvironmentVariable("CosmosConnectionString"))
.GetDatabase(Environment.GetEnvironmentVariable("ShindigMangerDatabaseName"))
.GetContainer(Environment.GetEnvironmentVariable("PresentationsContainerName"));
}

[FunctionName("DenormalizeData")]
Expand Down
30 changes: 0 additions & 30 deletions Demos/Denormalize Data/DenormalizeData-Function/Settings.cs

This file was deleted.

0 comments on commit 117f891

Please sign in to comment.