Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guided labs #11

Open
wants to merge 2 commits into
base: guided-labs
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions instructions/15-cognitive-search.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ Azure Cosmos DB is a cloud-based NoSQL database service that supports multiple A

![06](media/cosmosdbproducts.png)

> **Congratulations** on completing the task! Now, it's time to validate it. Here are the steps:
> - Navigate to the Lab Validation Page, from the upper right corner in the lab guide section.
> - Hit the Validate button for the corresponding task. If you receive a success message, you can proceed to the next task.
> - If not, carefully read the error message and retry the step, following the instructions in the lab guide.
> - If you need any assistance, please contact us at [email protected]. We are available 24/7 to help you out.

### Task 2: Send your Azure Cosmos DB for NoSQL account with sample data

You will use a command-line utility that creates a **cosmicworks** database and a **products** container. The tool will then create a set of items that you will observe using the change feed processor running in your terminal window.
Expand Down Expand Up @@ -136,14 +142,12 @@ Before continuing with this exercise, you must first create a new Azure Cognitiv

1. In a new web browser window or tab, navigate to the Azure portal. Go back to the **Home** page.

1. Sign into the portal using the Microsoft credentials associated with your subscription.

1. Select **+ Create a resource**, search for *AI Search*, and then create a new **Azure AI Search** account resource with the following settings, leaving all remaining settings to their default values:

| **Setting** | **Value** |
| ---: | :--- |
| **Subscription** | *Your existing Azure subscription* |
| **Resource group** | **cosmosdb-<inject key="DeploymentID" enableCopy="false"/>** |
| **Resource group** | **Cosmosdb-<inject key="DeploymentID" enableCopy="false"/>** |
| **Name** | *Enter a globally unique name* |
| **Location** | *Choose any available region* |

Expand All @@ -156,6 +160,12 @@ Before continuing with this exercise, you must first create a new Azure Cognitiv

1. Go to the newly created **Azure AI Search** account resource.

> **Congratulations** on completing the task! Now, it's time to validate it. Here are the steps:
> - Navigate to the Lab Validation Page, from the upper right corner in the lab guide section.
> - Hit the Validate button for the corresponding task. If you receive a success message, you can proceed to the next task.
> - If not, carefully read the error message and retry the step, following the instructions in the lab guide.
> - If you need any assistance, please contact us at [email protected]. We are available 24/7 to help you out.

### Task 4: Build indexer and index for Azure Cosmos DB for NoSQL data

You will create an indexer that indexes a subset of data in a specific Azure Cosmos DB for NoSQL container on an hourly basis.
Expand Down Expand Up @@ -236,6 +246,12 @@ You will create an indexer that indexes a subset of data in a specific Azure Cos

1. Navigate to the **Indexes** tab and then select the **products-index** index.

> **Congratulations** on completing the task! Now, it's time to validate it. Here are the steps:
> - Navigate to the Lab Validation Page, from the upper right corner in the lab guide section.
> - Hit the Validate button for the corresponding task. If you receive a success message, you can proceed to the next task.
> - If not, carefully read the error message and retry the step, following the instructions in the lab guide.
> - If you need any assistance, please contact us at [email protected]. We are available 24/7 to help you out.

### Task 5: Validate index with example search queries

Now that your materialized view of the Azure Cosmos DB for NoSQL data is in the search index, you can perform a few basic queries that take advantage of the features in Azure AI Search.
Expand Down
13 changes: 12 additions & 1 deletion instructions/23-index-optimization.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Azure Cosmos DB is a cloud-based NoSQL database service that supports multiple A

1. Select **+ Create a resource**, search for *Cosmos DB*, select **Azure Cosmos DB**.

1. Select **create** under **Azure Cosmos DB for NoSQL**. Then create a new **Azure Cosmos DB for NoSQL** account resource with the following settings, leaving all remaining settings to their default values, and select **Review + create**:
1. Select **create** under **Azure Cosmos DB for NoSQL**. Then create a new **Azure Cosmos DB for NoSQL** account resource with the following settings, leaving all remaining settings to their default values, select **Review + create**, and **Create**:

| **Setting** | **Value** |
| ---: | :--- |
Expand Down Expand Up @@ -98,6 +98,12 @@ Azure Cosmos DB is a cloud-based NoSQL database service that supports multiple A

1. Return to **Visual Studio Code**.

> **Congratulations** on completing the task! Now, it's time to validate it. Here are the steps:
> - Navigate to the Lab Validation Page, from the upper right corner in the lab guide section.
> - Hit the Validate button for the corresponding task. If you receive a success message, you can proceed to the next task.
> - If not, carefully read the error message and retry the step, following the instructions in the lab guide.
> - If you need any assistance, please contact us at [email protected]. We are available 24/7 to help you out.

### Task 3: Run the test .NET application using the default indexing policy

This lab has a pre-built test .NET application that will take a large JSON object and create a new item in the Azure Cosmos DB for NoSQL container. Once the single write operation is complete, the application will output the item’s unique identifier and RU charge to the console window.
Expand Down Expand Up @@ -158,6 +164,11 @@ This lab has a pre-built test .NET application that will take a large JSON objec

>**Note:** You will re-use this terminal later in this exercise. It's important to leave the terminal open so you can compare the original and updated RU charges.

> **Congratulations** on completing the task! Now, it's time to validate it. Here are the steps:
> - Navigate to the Lab Validation Page, from the upper right corner in the lab guide section.
> - Hit the Validate button for the corresponding task. If you receive a success message, you can proceed to the next task.
> - If not, carefully read the error message and retry the step, following the instructions in the lab guide.
> - If you need any assistance, please contact us at [email protected]. We are available 24/7 to help you out.

### Task 4: Update the indexing policy and rerun the .NET application

Expand Down