Deployment - Cloud shell

June 27, 2024 ยท View on GitHub

Prerequisites

Deployment steps

Follow the steps below to deploy the solution to your Azure subscription.

  1. Create a cloud shell PowerShell environment in a tenant that contains the target subscription.

  2. Clone the repository:

    git clone https://github.com/Azure/BuildYourOwnCopilot.git
    
  3. Switch to the main branch:

    cd BuildYourOwnCopilot
    git checkout main
    
  4. Set the proper folder permissions on the scripts folder:

    chmod +x ./scripts/*
    chmod +x ./aca/azd-hooks/*
    chmod +x ./aks/infra/azd-hooks/*
    
  5. 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.