-
Notifications
You must be signed in to change notification settings - Fork 4.3k
/
azure.yaml
143 lines (142 loc) · 4.59 KB
/
azure.yaml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
name: azure-search-openai-demo
metadata:
template: [email protected]
services:
backend:
project: ./app/backend
language: py
# Please check docs/azure_container_apps.md for more information on how to deploy to Azure Container Apps
host: containerapp
docker:
remoteBuild: true
# Please check docs/azure_app_service.md for more information on how to deploy to Azure App Service
# host: appservice
hooks:
# This hook is called when App Service is the host
prepackage:
windows:
shell: pwsh
run: cd ../frontend;npm install;npm run build
interactive: false
continueOnError: false
posix:
shell: sh
run: cd ../frontend;npm install;npm run build
interactive: false
continueOnError: false
# This hook is called when Azure Container Apps is the host
prebuild:
windows:
shell: pwsh
run: cd ../frontend;npm install;npm run build
interactive: false
continueOnError: false
posix:
shell: sh
run: cd ../frontend;npm install;npm run build
interactive: false
continueOnError: false
pipeline:
variables:
- AZURE_OPENAI_SERVICE
- AZURE_OPENAI_API_VERSION
- AZURE_OPENAI_RESOURCE_GROUP
- AZURE_DOCUMENTINTELLIGENCE_SERVICE
- AZURE_DOCUMENTINTELLIGENCE_RESOURCE_GROUP
- AZURE_DOCUMENTINTELLIGENCE_SKU
- AZURE_DOCUMENTINTELLIGENCE_LOCATION
- AZURE_SEARCH_INDEX
- AZURE_SEARCH_SERVICE
- AZURE_SEARCH_SERVICE_RESOURCE_GROUP
- AZURE_SEARCH_SERVICE_LOCATION
- AZURE_SEARCH_SERVICE_SKU
- AZURE_SEARCH_QUERY_LANGUAGE
- AZURE_SEARCH_QUERY_SPELLER
- AZURE_SEARCH_SEMANTIC_RANKER
- AZURE_STORAGE_ACCOUNT
- AZURE_STORAGE_RESOURCE_GROUP
- AZURE_STORAGE_SKU
- AZURE_APP_SERVICE
- AZURE_APP_SERVICE_SKU
- AZURE_APP_SERVICE_PLAN
- AZURE_OPENAI_CHATGPT_MODEL
- AZURE_OPENAI_CHATGPT_DEPLOYMENT
- AZURE_OPENAI_CHATGPT_DEPLOYMENT_CAPACITY
- AZURE_OPENAI_CHATGPT_DEPLOYMENT_VERSION
- AZURE_OPENAI_CHATGPT_DEPLOYMENT_SKU
- AZURE_OPENAI_EMB_MODEL_NAME
- AZURE_OPENAI_EMB_DEPLOYMENT
- AZURE_OPENAI_EMB_DEPLOYMENT_CAPACITY
- AZURE_OPENAI_EMB_DEPLOYMENT_VERSION
- AZURE_OPENAI_EMB_DEPLOYMENT_SKU
- AZURE_OPENAI_EMB_DIMENSIONS
- AZURE_OPENAI_GPT4V_MODEL
- AZURE_OPENAI_GPT4V_DEPLOYMENT
- AZURE_OPENAI_GPT4V_DEPLOYMENT_CAPACITY
- AZURE_OPENAI_GPT4V_DEPLOYMENT_VERSION
- AZURE_OPENAI_GPT4V_DEPLOYMENT_SKU
- OPENAI_HOST
- OPENAI_API_KEY
- OPENAI_ORGANIZATION
- AZURE_USE_APPLICATION_INSIGHTS
- AZURE_APPLICATION_INSIGHTS
- AZURE_APPLICATION_INSIGHTS_DASHBOARD
- AZURE_LOG_ANALYTICS
- USE_VECTORS
- USE_GPT4V
- AZURE_VISION_ENDPOINT
- VISION_SECRET_NAME
- AZURE_COMPUTER_VISION_SERVICE
- AZURE_COMPUTER_VISION_RESOURCE_GROUP
- AZURE_COMPUTER_VISION_LOCATION
- AZURE_COMPUTER_VISION_SKU
- ENABLE_LANGUAGE_PICKER
- USE_SPEECH_INPUT_BROWSER
- USE_SPEECH_OUTPUT_BROWSER
- USE_SPEECH_OUTPUT_AZURE
- AZURE_SPEECH_SERVICE
- AZURE_SPEECH_SERVICE_RESOURCE_GROUP
- AZURE_SPEECH_SERVICE_LOCATION
- AZURE_SPEECH_SERVICE_SKU
- AZURE_SPEECH_SERVICE_VOICE
- AZURE_KEY_VAULT_NAME
- AZURE_USE_AUTHENTICATION
- AZURE_ENFORCE_ACCESS_CONTROL
- AZURE_ENABLE_GLOBAL_DOCUMENT_ACCESS
- AZURE_AUTH_TENANT_ID
- AZURE_SERVER_APP_ID
- AZURE_CLIENT_APP_ID
- ALLOWED_ORIGIN
- AZURE_ADLS_GEN2_STORAGE_ACCOUNT
- AZURE_ADLS_GEN2_FILESYSTEM_PATH
- AZURE_ADLS_GEN2_FILESYSTEM
- DEPLOYMENT_TARGET
- AZURE_CONTAINER_APPS_WORKLOAD_PROFILE
- USE_CHAT_HISTORY_BROWSER
secrets:
- AZURE_SERVER_APP_SECRET
- AZURE_CLIENT_APP_SECRET
hooks:
preprovision:
windows:
shell: pwsh
run: ./scripts/auth_init.ps1
interactive: true
continueOnError: false
posix:
shell: sh
run: ./scripts/auth_init.sh
interactive: true
continueOnError: false
postprovision:
windows:
shell: pwsh
run: ./scripts/auth_update.ps1;./scripts/prepdocs.ps1
interactive: true
continueOnError: false
posix:
shell: sh
run: ./scripts/auth_update.sh;./scripts/prepdocs.sh
interactive: true
continueOnError: false