Repository to run study on Microsoft Reference docs
You need to run 3 tasks for this study, for each task a sample task has been provided.
# | Sample | Task |
---|---|---|
1 | Print contents of a blob in Azure Storage | Print name of all blob files in Azure Storage container |
2 | Send 10 messages to Azure Event Hub | Recieve and print messages from Azure Event Hub |
3 | Update an item in Cosmos DB (NoSQL) | Query and print top 5 items, where elevation = 0 |
Codespace has the following environment variables already set and you can acccess them from process.env.{var_name}
COSMOS_ENDPOINT = <value>
COSMOS_DATABASE = <value>
COSMOS_CONTAINER = <value>
COSMOS_KEY = <value>
CONTAINER_NAME = <value>
AZURE_STORAGE_CONNECTION_STRING = <value>
EVENTHUB_NAME = <value>
EVENTHUB_CONNECTION_STRING = <value>
These values will be configured by your study coordinator
npm run clean
npm run compile
# run storage task
npm run storage
# run event-hub task
npm run event-hub
# run cosmos db task
npm run cosmos
If you are stuck check the solutions in the solution directory.
# run storage task
npm run storage-solution
# run event-hub task
npm run event-hub-solution
# run cosmos db task
npm run cosmos-solution