Deployment

September 8, 2023 ยท View on GitHub

Deployment choices

The following table summarizes the deployment choices available for the solution:

Deployment typeDescriptionWhen to use
Cloud ShellUse Azure Cloud Shell to deploy the solution to your Azure subscription.Best suited for quick deployment. All you need is an Azure subscription and a browser.
Azure VMUse an Azure VM to deploy the solution to your Azure subscription.Best suited for situations where you need the flexibility of a full development environment (e.g. to customize the solution) but you don't have a local development environment available.
StandardUse your local development environment to deploy the solution to your Azure subscription.Best suited for situations where you need the flexibility of a full development environment (e.g. to customize the solution) and you have a local development environment available.

Select the links in the table above to learn more about each deployment choice.

NOTE: The Cloud Shell deployment type requires additional setup steps. If you are involved in managing the infrastructure that enables cloud shell deployments for your team, see Prepare Cloud Shell Setup for more information.

NOTE: The Azure VM deployment type requires additional setup steps. If you are involved in managing the infrastructure that enables Azure VM deployments for your team, see Prepare Azure VM Setup for more information.

Deployment validation

Use the steps below to validate that the solution was deployed successfully.

Once the deployment script completes, the Application Insights traces query should display the following sequence of events:

API initialization sequence of events

Next, you should be able to see multiple entries referring to the vectorization of the data that was imported into Cosmos DB:

API vectorization sequence of events

Finally, you should be able to see the Cognitive Search index being populated with the vectorized data:

Cognitive Search index populated with vectorized data

NOTE:

It takes several minutes until all imported data is vectorized and indexed.

Monitoring with Application Insights

Use the steps below to monitor the solution with Application Insights:

  1. Navigate to the Application Insights resource that was created as part of the deployment.

  2. Select the Logs section and create a new query with the following statement. Change the "Time range" setting on top tool bar to reflect the required time range. Click the Run button to execute the query:

    traces
    | order by timestamp desc
    

    Application Insights query

  3. Select the Export button to explort the results the query.

  4. In the query, replace traces with requests or exceptions to view the corresponding telemetry.