|
| 1 | +[Back to *Chat with your data* README](../README.md) |
| 2 | + |
| 3 | +# Non-DevContainer Setup |
| 4 | + |
| 5 | +If you are unable to run this accelerator using a DevContainer or in GitHub CodeSpaces, then you will need to install the following prerequisites on your local machine. |
| 6 | + |
| 7 | +- A code editor. We recommend [Visual Studio Code](https://code.visualstudio.com/), with the following extensions: |
| 8 | + - [Azure Functions](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions) |
| 9 | + - [Azure Tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-node-azure-pack) |
| 10 | + - [Bicep](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-bicep) |
| 11 | + - [Pylance](https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance) |
| 12 | + - [Python](https://marketplace.visualstudio.com/items?itemName=ms-python.python) |
| 13 | + - [Teams Toolkit](https://marketplace.visualstudio.com/items?itemName=TeamsDevApp.ms-teams-vscode-extension) **Optional** |
| 14 | +- [Python 3.11](https://www.python.org/downloads/release/python-3119/) |
| 15 | +- [Node.js LTS](https://nodejs.org/en) |
| 16 | +- [Azure Developer CLI](https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/install-azd) |
| 17 | +- [Azure Functions Core Tools](https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local) |
| 18 | + |
| 19 | +## Setup |
| 20 | + |
| 21 | +1. Review the contents of [.devcontainer/setupEnv.sh](../.devcontainer/setupEnv.sh) and then run it: |
| 22 | + |
| 23 | + ```bash |
| 24 | + .devcontainer/setupEnv.sh |
| 25 | + ``` |
| 26 | + |
| 27 | +1. Select the Python interpreter in Visual Studio Code: |
| 28 | + |
| 29 | + - Open the command palette (`Ctrl+Shift+P` or `Cmd+Shift+P`). |
| 30 | + - Type `Python: Select Interpreter`. |
| 31 | + - Select the Python 3.11 environment created by Poetry. |
| 32 | + |
| 33 | +### Running the sample using the Azure Developer CLI (azd) |
| 34 | + |
| 35 | +The Azure Developer CLI (`azd`) is a developer-centric command-line interface (CLI) tool for creating Azure applications. |
| 36 | + |
| 37 | +1. Log in to Azure using `azd`: |
| 38 | + |
| 39 | + ``` |
| 40 | + azd auth login |
| 41 | + ``` |
| 42 | + |
| 43 | +1. Execute the `azd init` command to initialize the environment and enter the solution accelerator name when prompted: |
| 44 | + |
| 45 | + ``` |
| 46 | + azd init -t Multi-Agent-Custom-Automation-Engine-Solution-Accelerator |
| 47 | + ``` |
| 48 | + |
| 49 | +1. Run `azd up` to provision all the resources to Azure and deploy the code to those resources. |
| 50 | + |
| 51 | + ``` |
| 52 | + azd up |
| 53 | + ``` |
| 54 | + |
| 55 | + > Select your desired `subscription` and `location`. Wait a moment for the resource deployment to complete, click the website endpoint and you will see the web app page. |
0 commit comments