forked from Azure-Samples/contoso-chat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure.yaml
46 lines (43 loc) · 1.69 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
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
name: contoso-chat
metadata:
template: [email protected]
workflows:
up:
steps:
- azd: provision
- azd: deploy
hooks:
postprovision:
posix:
shell: sh
continueOnError: false
interactive: true
run: infra/hooks/postprovision.sh
windows:
shell: pwsh
continueOnError: false
interactive: true
run: infra/hooks/postprovision.ps1
################################################################
# The section below configures the new `ai.endpoint` resource
# used for the Azure AI based chat service (application)
################################################################
services:
chat:
host: ai.endpoint
language: python
config:
workspace: ${AZUREAI_PROJECT_NAME}
environment:
path: ./deployment/environment.yaml
model:
path: ./deployment/chat-model.yaml
deployment:
path: ./deployment/chat-deployment.yaml
overrides:
environment_variables.PRT_CONFIG_OVERRIDE: deployment.subscription_id=${AZURE_SUBSCRIPTION_ID},deployment.resource_group=${AZURE_RESOURCE_GROUP},deployment.workspace_name=${AZUREAI_PROJECT_NAME},deployment.endpoint_name=${AZUREAI_ENDPOINT_NAME},deployment.deployment_name=${AZUREAI_DEPLOYMENT_NAME}
environment_variables.AZURE_OPENAI_ENDPOINT: ${AZURE_OPENAI_ENDPOINT}
environment_variables.AZURE_OPENAI_API_VERSION: ${AZURE_OPENAI_API_VERSION}
environment_variables.COSMOS_ENDPOINT: ${COSMOS_ENDPOINT}
environment_variables.AZURE_SEARCH_ENDPOINT: ${AZURE_SEARCH_ENDPOINT}