Skip to content

2.6 Validate Deployment

SETUP IS COMPLETE!

You just completed the PROVISION and SETUP steps of workshop.

  • You installed the required tools and software
  • You forked the sample repo and created a local clone
  • You provisioned infrastructure resources on Azure
  • You deployed the REACT UI and Python API to Azure Container Apps
  • You configured your local development environment

Here's a reminder of the Azure Application Architecture you can reference as you check your provisioned Resource Group to enure these resources were created.

Solution Architecture

In this section, you will validate your setup before moving on to the next phase of solution development.


Inspect deployed Azure resources

The Azure Portal allows you to view the resources provisioned on Azure and verify that they are setup correctly

  1. Open a new browser tab and navigate to the link below. You may be prompted to login.

    1
    https://portal.azure.com/#browse/resourcegroups
    
  2. You may be presented with a "Welcome to Microsoft Azure" screen. Select Cancel (to dismiss it) or click Get Started (to take an introductory tour of the Azure Portal).

  3. You should be taken directly to the Resource Groups page for your subscription. In the list of resource groups, locate the one named rg-postgresql-accelerator (or, if you assigned a different name, find that one). This resource group was created for you as part of the azd up resource deployment. It contains all of the Azure resources required to build and deploy your AI-enable solution.

    You can use the search filter to reduce the number resource groups displayed.

  4. Select your resource group.

    Review the list of deployed resources.

    In addition to creating a resource group, the azd up command deployed multiple resources into that resource group, as shown in the table below.

    Resource type Name
    Container Registry cr<unique_string>
    Log Analytics workspace log-<unique_string>
    Key Vault kv-<unique_string>
    Document Intelligence di-<unique_string>
    Language lang-<unique_string>
    Application Insights appi-<unique_string>
    Container Apps Environment cae-<unique_string>
    Storage account st<unique_string>
    Azure Database for PostgreSQL - Flexible Server psql-data<unique_string>
    Azure OpenAI openai-<unique_string>
    Machine Learning Workspace mlw-<unique_string>
    Machine Learning Endpoint mle-<unique_string>
    Container App ca-api-<unique_string>
    Container App ca-portal-<unique_string>

    The <unique_string> token in the above resource names represents the unique string that is generated by the Bicep scripts when naming your resources. This ensures resources are uniquely named and avoid resource naming collisions.

    In addition to the above resources, you will also see several other resources, like Managed Identities, that are supporting resources for those in the table.

Ensure the deployed apps are running

The azd up command included steps to deploy the Woodgrove Bank application into Azure Container Apps (ACA). Two containers were created. One for the Woodgrove Bank portal UI and a second for the backend API that supports it.

Azure Container Apps (ACA) deployment

ACA is a fully managed serverless platform that allows you to deploy and manage containerized applications effortlessly. They simplify deployment, offer scalability and cost-effectiveness, and make it easier to focus on building applications without worrying about infrastructure management.

Confirm the Woodgrove API Is Running

  1. In the browser window opened to your Azure resource group, select the Container app resource whose name starts with ca-api.

    Screenshot of the resources in the resource group, with the ca-api Container app resource highlighted.

  2. In the Essentials section of the API Container App's Overview page, select the Application Url to open the deployed Woodgrove Bank API in a new browser tab.

    Screenshot of the API container app page in the Azure portal, with the Application Url highlighted.

  3. You should see a Welcome to the Woodgrove Bank API! message on the screen, which serves as confirmation the API app was deployed successfully.

Open the Woodgrove Portal UI

  1. In the Azure portal, return to the resource group containing your resources and select the Container app resource whose name begins with ca-portal.

    Screenshot of the resources in the resource group, with the ca-portal Container app resource highlighted.

  2. In the Essentials section of the Portal Container App's Overview page, select the Application Url to open the deployed Woodgrove Bank Portal in a new browser tab.

    Screenshot of the API container app page in the Azure portal, with the Application Url highlighted.

  3. In the Woodgrove Bank Contract Management Portal, select the Vendors page and verify the list of vendors loads correctly.

    Screenshot of the Vendors page in the Woodgrove Bank Contract Management Portal

View Azure OpenAI model deployments in Azure AI Foundry

The Azure AI Foundry portal lets you view and manage the Azure AI resources for your app.

You will use the Azure AI Foundry portal to verify the gpt-4o and text-embedding-ada-002 models were deployed into your Azure OpenAI service.

  1. In the Azure portal, return to the resource group containing your resources and select the Azure OpenAI resource.

    Screenshot of the resources in the resource group, with the Azure OpenAI resource highlighted.

  2. On the Azure OpenAI resource's Overview page, select Explore Azure AI Foundry portal.

    Screenshot of the Azure OpenAI service's Overview blade, with the Explore Azure AI Foundry portal highlighted with a red box.

  3. In Azure AI Foundry, select the Deployments menu item under Shared resources in the left-hand navigation menu.

    Screenshot of Azure AI Foundry, with the Deployments menu item highlighted and selected. The completions and embeddings model deployments are displayed.

  4. Verify you see a completions deployment for the gpt-4o model and an embeddings deployment for the text-embedding-ada-002 model.

Verify Semantic Ranker Model Deployment (optional)

If you chose to deploy the Azure ML semantic ranker model during setup, you will use the Azure Machine Learning Studio to ensure the semantic ranker model was successfully deployed to an online endpoint.

You only need to do this step if you chose TRUE for deployAMLModel during the azd up deployment. If you selected FALSE, skip this step.

  1. In the Azure portal, return to the resource group containing your resources and select the Azure Machine Learning Workspace resoure.

    Screenshot of the resources in the resource group, with the Azure Machine Learning Workspace resource highlighted.

  2. From the Azure ML workspace page, select the Launch studio button to open Azure Machine Learning Studio in a new browser window.

    Screenshot of the Launch studio section of the Azure Machine Learning workspace page with the Launch studio button highlighted with a red box.

  3. Sign into Machine Learning Studio if prompted.

  4. In Machine Learning Studio, select Endpoints under Assets in the left-hand resource menu, then select the endpoint for your bge-v2-m3-reranker model:

    Screenshot of the Endpoints page in Azure Machine Learning Studio, with the Endpoints menu item highlighted and the reranker model endpoint highlighted.

  5. On your endpoint page, ensure the Provisioning state for the bgev2m3-v1 deployment is Succeeded.

    Screenshot of the semantic ranker model deployment in Azure ML Studio, with the model's provisioning state of Succeded highlighted.

Leave the Azure Portal open. You will revisit it later.