|
| 1 | + |
| 2 | +# Getting Started with Agents Using Azure AI Foundry: Deployment customization |
| 3 | + |
| 4 | +This document describes how to customize the deployment of the Agents Chat with Azure AI Foundry. Once you follow the steps here, you can run `azd up` as described in the [Deploying](./README.md#deploying) steps. |
| 5 | + |
| 6 | +* [Disabling resources](#disabling-resources) |
| 7 | +* [Customizing resource names](#customizing-resource-names) |
| 8 | +* [Customizing model deployments](#customizing-model-deployments) |
| 9 | + |
| 10 | +## Disabling resources |
| 11 | + |
| 12 | +Disabling a resource will stop that resource from being created and deployed to your Azure Project. |
| 13 | + |
| 14 | +* To disable AI Search, run `azd env set USE_SEARCH_SERVICE false` |
| 15 | +* To disable Application Insights, run `azd env set USE_APPLICATION_INSIGHTS false` |
| 16 | +* To disable Container Registry, run `azd env set USE_CONTAINER_REGISTRY false` |
| 17 | + |
| 18 | +Once you disable these resources, they will not be deployed when you run `azd up`. |
| 19 | + |
| 20 | +## Customizing resource names |
| 21 | + |
| 22 | +By default, this template will use a naming convention with unique strings to prevent naming collisions within Azure. |
| 23 | +To override default naming conventions, the following keys can be set: |
| 24 | + |
| 25 | +* `AZURE_AIHUB_NAME` - The name of the AI Foundry Hub resource |
| 26 | +* `AZURE_AIPROJECT_NAME` - The name of the AI Foundry Project |
| 27 | +* `AZURE_AIENDPOINT_NAME` - The name of the AI Foundry online endpoint used for deployments |
| 28 | +* `AZURE_AISERVICES_NAME` - The name of the Azure AI service |
| 29 | +* `AZURE_SEARCH_SERVICE_NAME` - The name of the Azure Search service |
| 30 | +* `AZURE_STORAGE_ACCOUNT_NAME` - The name of the Storage Account |
| 31 | +* `AZURE_KEYVAULT_NAME` - The name of the Key Vault |
| 32 | +* `AZURE_CONTAINER_REGISTRY_NAME` - The name of the container registry |
| 33 | +* `AZURE_APPLICATION_INSIGHTS_NAME` - The name of the Application Insights instance |
| 34 | +* `AZURE_LOG_ANALYTICS_WORKSPACE_NAME` - The name of the Log Analytics workspace used by Application Insights |
| 35 | + |
| 36 | +To override any of those resource names, run `azd env set <key> <value>` before running `azd up`. |
| 37 | + |
| 38 | +## Customizing model deployments |
| 39 | + |
| 40 | +For more information on the Azure OpenAI models and non-Microsoft models that can be used in your deployment, view the [list of models supported by Azure AI Agent Service](https://learn.microsoft.com/azure/ai-services/agents/concepts/model-region-support) |
| 41 | + |
| 42 | +To customize the model deployments, you can set the following environment variables: |
| 43 | + |
| 44 | +### Using a different chat model |
| 45 | + |
| 46 | +Change the chat deployment name: |
| 47 | + |
| 48 | +```shell |
| 49 | +azd env set AZURE_AI_CHAT_DEPLOYMENT_NAME Phi-3.5-MoE-instruct |
| 50 | +``` |
| 51 | + |
| 52 | +Change the chat model format (either OpenAI or Microsoft): |
| 53 | + |
| 54 | +```shell |
| 55 | +azd env set AZURE_AI_CHAT_MODEL_FORMAT Microsoft |
| 56 | +``` |
| 57 | + |
| 58 | +Change the chat model name: |
| 59 | + |
| 60 | +```shell |
| 61 | +azd env set AZURE_AI_CHAT_MODEL_NAME Phi-3.5-MoE-instruct |
| 62 | +``` |
| 63 | + |
| 64 | +Set the version of the chat model: |
| 65 | + |
| 66 | +```shell |
| 67 | +azd env set AZURE_AI_CHAT_MODEL_VERSION 2 |
| 68 | +``` |
| 69 | + |
| 70 | +### Setting capacity and deployment SKU |
| 71 | + |
| 72 | +For quota regions, you may find yourself needing to modify the default capacity and deployment SKU. The default tokens per minute deployed in this template is 50,000. |
| 73 | + |
| 74 | +Change the capacity (in thousands of tokens per minute) of the chat deployment: |
| 75 | + |
| 76 | +```shell |
| 77 | +azd env set AZURE_AI_CHAT_DEPLOYMENT_CAPACITY 50 |
| 78 | +``` |
| 79 | + |
| 80 | +Change the SKU of the chat deployment: |
| 81 | + |
| 82 | +```shell |
| 83 | +azd env set AZURE_AI_CHAT_DEPLOYMENT_SKU Standard |
| 84 | +``` |
| 85 | + |
| 86 | +Change the capacity (in thousands of tokens per minute) of the embeddings deployment: |
| 87 | + |
| 88 | +```shell |
| 89 | +azd env set AZURE_AI_EMBED_DEPLOYMENT_CAPACITY 50 |
| 90 | +``` |
| 91 | + |
| 92 | +Change the SKU of the embeddings deployment: |
| 93 | + |
| 94 | +```shell |
| 95 | +azd env set AZURE_AI_EMBED_DEPLOYMENT_SKU Standard |
| 96 | +``` |
0 commit comments