- Azure subscription
- Subscription access to Azure OpenAI service. Start here to Request Access to Azure OpenAI Service
- Azure Cloud Shell environment (follow these instructions to setup your Cloud Shell)
Follow the steps below to deploy the solution to your Azure subscription.
-
Create a cloud shell PowerShell environment in a tenant that contains the target subscription.
-
Clone the repository:
git clone https://github.com/Azure/BuildYourOwnCopilot.git
-
Switch to the
main
branch:cd BuildYourOwnCopilot git checkout main
-
Set the proper folder permissions on the
scripts
folder:chmod +x ./scripts/* chmod +x ./aca/azd-hooks/* chmod +x ./aks/infra/azd-hooks/*
-
Execute the
azd
template. This will provision all of the required infrastructure, deploy the API and web app services into AKS, and import data into Cosmos DB.cd ./aks azd up
You will be prompted for the target subscription, location, and desired environment name. The target resource group will be
rg-
followed by the environment name (i.e.rg-my-aks-deploy
)
NOTE: The
<location>
specified must point to a region that supports the Azure OpenAI service. You can find the list of supported regions here.