Skip to content

Commit 54c608c

Browse files
committed
Update the deployment step
1 parent 4b72f69 commit 54c608c

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

README.md

+33
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,39 @@ Once you've opened the project in [Codespaces](#github-codespaces), [Dev Contain
155155
156156
You will be asked to select two locations, first a region for most of the resources, then a region specifically for the Azure OpenAI models. This project uses the gpt-4o-mini and text-embedding-ada-002 models which may not be available in all Azure regions. Check for [up-to-date region availability](https://learn.microsoft.com/azure/ai-services/openai/concepts/models#standard-deployment-model-availability) and select a region accordingly.
157157
158+
5. Set Neon database credentials to Azure environment and redeploy
159+
160+
Currently, Neon does not support managed identity and automatically assigning database credentials during the deployment. After the first deployment, you need to retrieve credentials manually from the Neon Console and set environment variable values
161+
162+
1. Obtain Neon Database Credentials
163+
- From [Azure portal](https://portal.azure.com/), find the Neon Serverless Postgres Organization service and click on Portal URL.
164+
- This brings you to the **[Neon Console](https://console.neon.tech/?refcode=44WD03UH)**
165+
- Click “New Project”
166+
- Choose an Azure region
167+
- Give your project a name (e.g., “Neon RAG Python”)
168+
- Click “Create Project”
169+
- Once the project is created successfully, copy the Neon connection string. You can find the connection details in the Connection Details widget on the Neon Dashboard.
170+
171+
```ini
172+
postgresql://[user]:[password]@[neon_hostname]/[dbname]?sslmode=require
173+
```
174+
175+
2. Set environment variable values for NeonDB
176+
177+
Use the following commands to set your credentials:
178+
179+
```ini
180+
azd env set POSTGRES_HOST [neon_hostname]
181+
azd env set POSTGRES_USERNAME [user]
182+
azd env set POSTGRES_PASSWORD [password]
183+
azd env set POSTGRES_DATABASE [dbname]
184+
azd env set POSTGRES_SSL require
185+
```
186+
187+
After this, redeploy your app, and it will be connected to the Neon database.
188+
189+
3. Run `azd deploy` to update these values in the Azure Container App
190+
158191
## Local Development
159192
160193
### Setting up the environment file

0 commit comments

Comments
 (0)