This document describes how to customize the deployment of the Azure AI Studio Starter Template. Once you follow the steps here, you can run azd up
as described in the Deploying steps.
- To disable AI Search, run
azd env set USE_SEARCH_SERVICE false
- To disable Application Insights, run
azd env set USE_APPLICATION_INSIGHTS false
- To disable Container Registry, run
azd env set USE_CONTAINER_REGISTRY false
Then run azd up
to deploy the remaining resources.
By default this template will use a default naming convention to prevent naming collisions within Azure. To override default naming conventions the following can be set.
AZURE_AIHUB_NAME
- The name of the AI Studio Hub resourceAZURE_AIPROJECT_NAME
- The name of the AI Studio ProjectAZURE_AIENDPOINT_NAME
- The name of the AI Studio online endpoint used for deploymentsAZURE_AISERVICES_NAME
- The name of the Azure AI serviceAZURE_SEARCH_SERVICE_NAME
- The name of the Azure Search serviceAZURE_STORAGE_ACCOUNT_NAME
- The name of the Storage AccountAZURE_KEYVAULT_NAME
- The name of the Key VaultAZURE_CONTAINER_REGISTRY_NAME
- The name of the container registryAZURE_APPLICATION_INSIGHTS_NAME
- The name of the Application Insights instanceAZURE_LOG_ANALYTICS_WORKSPACE_NAME
- The name of the Log Analytics workspace used by Application Insights
To override any of those resource names, run azd env set <key> <value>
before running azd up
.
To customize the model deployments, you can set the following environment variables:
Change the chat deployment name:
azd env set AZURE_AI_CHAT_DEPLOYMENT_NAME Phi-3.5-MoE-instruct
Change the chat model format (either OpenAI or Microsoft):
azd env set AZURE_AI_CHAT_MODEL_FORMAT Microsoft
Change the chat model name:
azd env set AZURE_AI_CHAT_MODEL_NAME Phi-3.5-MoE-instruct
Set the version of the chat model:
azd env set AZURE_AI_CHAT_MODEL_VERSION 2
For quota regions, you may find yourself needing to modify the default capacity and deployment SKU.
Change the capacity of the chat deployment:
azd env set AZURE_AI_CHAT_DEPLOYMENT_CAPACITY 10
Change the SKU of the chat deployment:
azd env set AZURE_AI_CHAT_DEPLOYMENT_SKU Standard
Change the capacity of the embeddings deployment:
azd env set AZURE_AI_EMBED_DEPLOYMENT_CAPACITY 10
Change the SKU of the embeddings deployment:
azd env set AZURE_AI_EMBED_DEPLOYMENT_SKU Standard
If you have an existing AI project resource, you can bring it into the Azure AI Studio Starter Template by setting the following environment variable:
azd env set AZURE_EXISTING_AIPROJECT_CONNECTION_STRING "<connection-string>"
You can find the connection string on the overview page of your Azure AI project.
If you do not have a deployment named "gpt-4o-mini" in your existing AI project, you should either create one in Azure AI studio or follow the steps in Customizing model deployments to specify a different model.