Skip to content

Commit c279585

Browse files
committed
Add userPrincipalName prompt
1 parent be52813 commit c279585

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ Once you've opened the project in [Codespaces](#github-codespaces), [Dev Contain
161161
azd up
162162
```
163163
164-
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.
164+
You will be asked to enter your `userPrincipalName` like your email address (e.g. [email protected]), 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.
165165
166166
5. Set Neon database credentials to Azure environment and redeploy
167167

infra/core/database/neon/serverlessPostgres.bicep

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
param name string
22
param location string = resourceGroup().location
33
param tags object = {}
4+
param userPrincipalName string
45

56
resource neonOrganization 'Neon.Postgres/organizations@2024-08-01-preview' = {
67
location: location
@@ -24,7 +25,7 @@ resource neonOrganization 'Neon.Postgres/organizations@2024-08-01-preview' = {
2425
organizationName: 'string'
2526
}
2627
userDetails: {
27-
upn: 'string'
28+
upn: userPrincipalName
2829
}
2930
}
3031
}

infra/main.bicep

+3
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ param neonServerlessPostgresPassword string // Set in main.parameters.json
155155

156156
@description('Neon Serverless Postgres Database')
157157
param neonServerlessPostgresDatabase string // Set in main.parameters.json
158+
@description('Enter your Azure user principal name (e.g. [email protected])')
159+
param userPrincipalName string
158160

159161

160162
param webAppExists bool = false
@@ -178,6 +180,7 @@ module neonPostgres 'core/database/neon/serverlessPostgres.bicep' = {
178180
name: neonServerlessPostgresName
179181
location: location
180182
tags: tags
183+
userPrincipalName: userPrincipalName
181184
}
182185
}
183186

0 commit comments

Comments
 (0)