Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 1.18 KB

sharing_environments.md

File metadata and controls

11 lines (9 loc) · 1.18 KB

RAG chat: Sharing deployment environments

If you've deployed the RAG chat solution already following the steps in the deployment guide, you may want to share the environment with a colleague. Either you or they can follow these steps:

  1. Install the Azure CLI
  2. Run azd init -t azure-search-openai-demo or clone this repository.
  3. Run azd env refresh -e {environment name} They will need the azd environment name, subscription ID, and location to run this command. You can find those values in your .azure/{env name}/.env file. This will populate their azd environment's .env file with all the settings needed to run the app locally.
  4. Set the environment variable AZURE_PRINCIPAL_ID either in that .env file or in the active shell to their Azure ID, which they can get with az ad signed-in-user show.
  5. Run ./scripts/roles.ps1 or .scripts/roles.sh to assign all of the necessary roles to the user. If they do not have the necessary permission to create roles in the subscription, then you may need to run this script for them. Once the script runs, they should be able to run the app locally.