You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Deploying from scratch](#deploying-from-scratch)
14
14
-[Deploying with existing Azure resources](#deploying-with-existing-azure-resources)
15
15
-[Deploying again](#deploying-again)
@@ -48,7 +48,9 @@ The repo includes sample data so it's ready to try end to end. In this sample ap
48
48
49
49
> **IMPORTANT:** In order to deploy and run this example, you'll need an **Azure subscription with access enabled for the Azure OpenAI service**. You can request access [here](https://aka.ms/oaiapply). You can also visit [here](https://azure.microsoft.com/free/cognitive-search/) to get some free Azure credits to get you started.
50
50
51
-
## Azure deployment
51
+
> Your Azure Account must have `Microsoft.Authorization/roleAssignments/write` permissions, such as [User Access Administrator](https://learn.microsoft.com/azure/role-based-access-control/built-in-roles#user-access-administrator) or [Owner](https://learn.microsoft.com/azure/role-based-access-control/built-in-roles#owner).
52
+
53
+
## Azure deployment
52
54
53
55
### Cost estimation
54
56
@@ -67,9 +69,27 @@ To reduce costs, you can switch to free SKUs for Azure App Service, Azure Cognit
67
69
⚠️ To avoid unnecessary costs, remember to take down your app if it's no longer in use,
68
70
either by deleting the resource group in the Portal or running `azd down`.
69
71
70
-
### Prerequisites
72
+
### Project setup
73
+
74
+
You have a few options for setting up this project.
75
+
The easiest way to get started is GitHub Codespaces, since it will setup all the tools for you,
76
+
but you can also [set it up locally](#local-environment) if desired.
77
+
78
+
#### GitHub Codespaces
71
79
72
-
#### To run locally
80
+
You can run this repo virtually by using GitHub Codespaces, which will open a web-based VS Code in your browser:
81
+
82
+
[](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=599293758&machine=standardLinux32gb&devcontainer_path=.devcontainer%2Fdevcontainer.json&location=WestUs2)
83
+
84
+
#### VS Code Remote Containers
85
+
86
+
A related option is VS Code Remote Containers, which will open the project in your local VS Code using the [Dev Containers extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers):
87
+
88
+
[](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/azure-samples/azure-search-openai-demo)
@@ -78,18 +98,9 @@ either by deleting the resource group in the Portal or running `azd down`.
78
98
*[Node.js 14+](https://nodejs.org/en/download/)
79
99
*[Git](https://git-scm.com/downloads)
80
100
*[Powershell 7+ (pwsh)](https://github.com/powershell/powershell) - For Windows users only.
81
-
***Important**: Ensure you can run `pwsh.exe` from a PowerShell command. If this fails, you likely need to upgrade PowerShell.
82
-
83
-
>NOTE: Your Azure Account must have `Microsoft.Authorization/roleAssignments/write` permissions, such as [User Access Administrator](https://learn.microsoft.com/azure/role-based-access-control/built-in-roles#user-access-administrator) or [Owner](https://learn.microsoft.com/azure/role-based-access-control/built-in-roles#owner).
84
-
85
-
#### To Run in GitHub Codespaces or VS Code Remote Containers
86
-
87
-
You can run this repo virtually by using GitHub Codespaces or VS Code Remote Containers. Click on one of the buttons below to open this repo in one of those options.
88
-
89
-
[](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=599293758&machine=standardLinux32gb&devcontainer_path=.devcontainer%2Fdevcontainer.json&location=WestUs2)
90
-
[](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/azure-samples/azure-search-openai-demo)
101
+
***Important**: Ensure you can run `pwsh.exe` from a PowerShell terminal. If this fails, you likely need to upgrade PowerShell.
91
102
92
-
### Project initialization
103
+
Then bring down the project code:
93
104
94
105
1. Create a new folder and switch to it in the terminal
0 commit comments