Skip to content

Latest commit

 

History

History
156 lines (96 loc) · 7.42 KB

File metadata and controls

156 lines (96 loc) · 7.42 KB

Deployment Guide

Pre-requisites

To deploy this solution accelerator, ensure you have access to an Azure subscription with the necessary permissions to create resource groups and resources. Follow the steps in Azure Account Set Up

Check the Azure Products by Region page and select a region where the following services are available:

  • Azure AI Foundry
  • Azure OpenAI Service
  • GPT Model Capacity

Here are some example regions where the services are available: East US, East US2, Japan East, UK South, Sweden Central.

⚠️ Important: Check Azure OpenAI Quota Availability

➡️ To ensure sufficient quota is available in your subscription, please follow Quota check instructions guide before you deploy the solution.

Open in GitHub Codespaces Open in Dev Containers

Configurable Deployment Settings

When you start the deployment, most parameters will have default values, but you can update the following settings by following the steps here:

Setting Description Default value
Azure Region The region where resources will be created. East US
Resource Prefix Prefix for all resources created by this template. This prefix will be used to create unique names for all resources. The prefix must be unique within the resource group. None
AI Location Location for all AI services resources. This location can be different from the resource group location None
Capacity Configure capacity for gpt-4o. 5k

This accelerator can be configured to use authentication.

  • To use authentication the installer must have the rights to create and register an application identity in their Azure environment. After installation is complete, follow the directions in the App Authentication document to enable authentication.
  • Note: If you enable authentication, all processing history and current processing will be performed for your specific user. Without authentication, all batch history from the tool will be visible to all users.

[Optional] Quota Recommendations

By default, the GPT model capacity in deployment is set to 5k tokens.

We recommend increasing the capacity to 200k tokens for optimal performance.

To adjust quota settings, follow these steps

Deployment Options

Pick from the options below to see step-by-step instructions for: GitHub Codespaces, VS Code Dev Containers, Local Environments, and Bicep deployments.

Deploy in GitHub Codespaces

GitHub Codespaces

You can run this solution using GitHub Codespaces. The button will open a web-based VS Code instance in your browser:

  1. Open the solution accelerator (this may take several minutes):

    Open in GitHub Codespaces

  2. Accept the default values on the create Codespaces page

  3. Open a terminal window if it is not already open

  4. Continue with the deploying steps

Deploy in VS Code

VS Code Dev Containers

You can run this solution in VS Code Dev Containers, which will open the project in your local VS Code using the Dev Containers extension:

  1. Start Docker Desktop (install it if not already installed)

  2. Open the project:

    Open in Dev Containers

  3. In the VS Code window that opens, once the project files show up (this may take several minutes), open a terminal window.

  4. Continue with the deploying steps

Deploy in your local environment

Local environment

If you're not using one of the above options for opening the project, then you'll need to:

  1. Make sure the following tools are installed:

  2. Download the project code:

    azd init -t microsoft/Modernize-your-Code-Solution-Accelerator/
  3. Open the project folder in your terminal or editor.

  4. Continue with the deploying steps.

Deploying

Once you've opened the project in Codespaces or in Dev Containers or locally, you can deploy it to Azure following the following steps.

To change the azd parameters from the default values, follow the steps here.

  1. Login to Azure:

    azd auth login

    Note: To authenticate with Azure Developer CLI (azd) to a specific tenant, use the previous command with your Tenant ID:

    azd auth login --tenant-id <tenant-id>
  2. Provision and deploy all the resources:

    azd up
  3. Provide an azd environment name (like "cmsaapp")

  4. Select a subscription from your Azure account, and select a location which has quota for all the resources.

    • This deployment will take 6-9 minutes to provision the resources in your account and set up the solution with sample data.
    • If you get an error or timeout with deployment, changing the location can help, as there may be availability constraints for the resources.
  5. Once the deployment has completed successfully, open the Azure Portal, go to the deployed resource group, find the container app with "frontend" in the name, and get the app URL from Application URI.

  6. You can now delete the resources by running azd down, when you have finished trying out the application.

Additional Steps

  1. Deleting Resources After a Failed Deployment

    Follow steps in Delete Resource Group If your deployment fails and you need to clean up the resources.

  2. Add App Authentication

    If you chose to enable authentication for the deployment, follow the steps in App Authentication

Running the application

To help you get started, sample Informix queries have been included in the data/informix/functions and data/informix/simple directories. You can choose to upload these files to test the application.