Within this deployment automation of AI Foundry, we also have coupled several additional Azure services that are commonly deployed when creating an AI solution. We have added the ability to deploy these services at the same time as the AI Foundry deployment, or to add the services later. These 'feature flags' leverage true/false values to either enable or disable (default behavior) the deployment and configuration of the following service(s):
Table of the available feature flags in this repository:
| Feature Flag Name | Effect When Enabled | Instructions to Enable |
|---|---|---|
cosmosDbEnabled |
Enables Cosmos DB integration. | Set the environment variable AZURE_COSMOS_DB_ENABLED to true. |
sqlServerEnabled |
Enables SQL Server integration. | Set the environment variable AZURE_SQL_SERVER_ENABLED to true. |
acrEnabled |
Enables Azure Container Registry (ACR) integration. | Set the environment variable AZURE_ACR_ENABLED to true. |
apiManagementEnabled |
Enables API Management integration. | Set the environment variable AZURE_API_MANAGEMENT_ENABLED to true. |
To enable these features during the deployment of your Foundry services, simply set the value to 'true' when prompted. This will add the selected feature during deployment, integrating it with the virtual network, private endpoints, and DNS zones. You can set the values as an env variable within the code
azd env set AZURE_API_MANAGEMENT_ENABLED trueAdditionally, within the infra/ folder you can modify the main.parameters.json file to set the value to true by default.
"apiManagementEnabled": {
"value": "${AZURE_API_MANAGEMENT_ENABLED=true}"
}