Prepare Cloud Shell Setup
September 8, 2023 ยท View on GitHub
Before users in your team can deploy the solution using Cloud Shell, you need to perform the following steps:
-
Create an Azure Container Registry (ACR) instance in the target subscription. Ensure anonymous pull access is enabled on the ACR instance (see here for more information).
-
Clone the repository:
git clone https://github.com/AzureCosmosDB/VectorSearchAiAssistant.git -
Switch to the
cognitive-search-vectorbranch:cd VectorSearchAiAssistant git checkout cognitive-search-vector -
Open the
CloudShell-Deploy.ps1script from thescriptsfolder with the text editor of your choice. In lines 4 and 5, update the default values for the parametersacrNameandacrResourceGroupwith the values corresponding to the ACR instance created in step 1. -
Save the changes to the
CloudShell-Deploy.ps1script, commit them to thecognitive-search-vectorbranch, and push the changes to the remote repository.git commit -m "Updated ACR details for Cloud Shell deployment" git push -
Execute the
Prepare-CloudShell-Deploy.ps1script. This will build the portal and API Docker images and push them to the ACR instance created in step 1../scripts/Prepare-CloudShell-Deploy.ps1 -resourceGroup <rg_name> -acrName <acr_name> -subscription <target_subscription_id><rg_name>is the name of the resource group where the ACR instance was created in step 1.<acr_name>is the name of the ACR instance created in step 1.<target_subscription_id>is the ID of the target subscription.This is an example of the command above:
./scripts/Prepare-CloudShell-Deploy.ps1 -resourceGroup "ms-byd-to-chatgpt" -acrName "bydtochatgptcr" -subscription "00000000-0000-0000-0000-000000000000"
NOTE: Make sure you pull the latest changes from the
cognitive-search-vectorbranch and rerun step 4 above each time you want to update the portal and API Docker images in the ACR instance as a result of changes made to the code.