-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathazure.yaml
More file actions
64 lines (60 loc) · 1.76 KB
/
azure.yaml
File metadata and controls
64 lines (60 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: react-app
metadata:
subscription: ${AZURE_SUBSCRIPTION_ID}
location: ${AZURE_LOCATION}
workflows:
up:
steps:
- azd: provision
- azd: deploy
infra:
bicep: ./infra/main.bicep
hooks:
preprovision:
shell: pwsh
continueOnError: false
interactive: true
run: ./azd-hooks/preprovision.ps1
postdeploy:
shell: pwsh
continueOnError: false
interactive: true
run: ./azd-hooks/postdeploy.ps1
env:
RUN_POSTDEPLOY_SCRIPT: ${RUN_POSTDEPLOY_SCRIPT}
AZURE_SUBSCRIPTION_ID: ${AZURE_SUBSCRIPTION_ID}
AZURE_RESOURCE_GROUP: ${AZURE_RESOURCE_GROUP}
SERVICE_API_IDENTITY_PRINCIPAL_NAME: ${SERVICE_API_IDENTITY_PRINCIPAL_NAME}
POSTGRESQL_SERVER_NAME: ${POSTGRESQL_SERVER_NAME}
POSTGRESQL_DATABASE_NAME: ${POSTGRESQL_DATABASE_NAME}
AZURE_OPENAI_ENDPOINT: ${AZURE_OPENAI_ENDPOINT}
AZURE_OPENAI_KEY: ${AZURE_OPENAI_KEY}
AZURE_STORAGE_ACCOUNT_NAME: ${AZURE_STORAGE_ACCOUNT_NAME}
AZURE_STORAGE_CONTAINER_NAME: ${AZURE_STORAGE_CONTAINER_NAME}
STORAGE_EVENTGRID_SYSTEM_TOPIC_NAME: ${STORAGE_EVENTGRID_SYSTEM_TOPIC_NAME}
AZURE_AML_WORKSPACE_NAME: ${AZURE_AML_WORKSPACE_NAME}
AZURE_AML_ENDPOINT_NAME: ${AZURE_AML_ENDPOINT_NAME}
DEPLOY_AML_MODEL: ${DEPLOY_AML_MODEL}
services:
UserPortal:
project: ./src/userportal
host: containerapp
language: js
docker:
context: ./
registry: ${AZURE_CONTAINER_REGISTRY_ENDPOINT}
path: DOCKERFILE
buildArgs:
- SERVICE_API_ENDPOINT_URL=${SERVICE_API_ENDPOINT_URL}
dependsOn:
- infra
API:
project: ./src/api
host: containerapp
language: python
docker:
context: ./
path: DOCKERFILE
registry: ${AZURE_CONTAINER_REGISTRY_ENDPOINT}
dependsOn:
- infra