Azure Deployment
A Simple Azure Deployment
You can deploy Chroma on a long-running server, and connect to it remotely. For convenience, we have provided a very simple Terraform configuration to experiment with deploying Chroma to Azure.Step 1: Install Terraform
Download Terraform and follow the installation instructions for you OS.Step 2: Authenticate with Azure
Step 3: Configure your Azure Settings
Create achroma.tfvars file. Use it to define the following variables for your Azure Resource Group name, VM size, and location. Note that this template creates a new resource group for your Chroma deployment.
Step 4: Initialize and deploy with Terraform
Download our Azure Terraform configuration to the same directory as yourchroma.tfvars file. Then run the following commands to deploy your Chroma stack.
Initialize Terraform:
Step 5: Chroma Client Set-Up
- Python
- TypeScript
Once your Azure VM instance is up and running with Chroma, all
you need to do is configure your
HttpClient to use the server’s IP address and port
8000. Since you are running a Chroma server on Azure, our thin-client package may be enough for your application.Step 5: Clean Up (optional).
To destroy the stack and remove all Azure resources, use theterraform destroy command.
Observability with Azure
Chroma is instrumented with OpenTelemetry hooks for observability. We currently only exports OpenTelemetry traces. These should allow you to understand how requests flow through the system and quickly identify bottlenecks. Check out the observability docs for a full explanation of the available parameters. To enable tracing on your Chroma server, simply define the following variables in yourchroma.tfvars: