Deployment - Cloud shell
September 8, 2023 ยท View on GitHub
Prerequisites
- 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)
Deployment steps
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/AzureCosmosDB/VectorSearchAiAssistant.git -
Switch to the
cognitive-search-vectorbranch:cd VectorSearchAiAssistant git checkout cognitive-search-vector -
Set the proper folder permissions on the
scriptsfolder:chmod +x ./scripts/* -
Execute the
CloudShell-Deploy.ps1script. This will provision all of the required infrastructure, deploy the API and web app services into AKS, and import data into Cosmos DB../scripts/CloudShell-Deploy.ps1 -resourceGroup <rg_name> -location <location> -subscription <target_subscription_id>This is an example of the command above:
./scripts/CloudShell-Deploy.ps1 -resourceGroup "ms-cosmosdb-openai" -location eastus -subscription "00000000-0000-0000-0000-000000000000"
NOTE: The
<location>specified must point to a region that supports the Azure OpenAI service. You can find the list of supported regions here.
NOTE: If you already used the Cloud Shell in the target subscription, it is recommended to remove the
VectorSearchAiAssistantfolder from the home directory before cloning the repository again. You can do this by runningrm ./VectorSearchAiAssistant -r -fin the Cloud Shell.