-
Notifications
You must be signed in to change notification settings - Fork 37
/
azure.yaml
66 lines (55 loc) · 1.7 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
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
# This is an example starter azure.yaml file containing several example services in comments below.
# Make changes as needed to describe your application setup.
# To learn more about the azure.yaml file, visit https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/azd-schema
# Name of the application.
name: enterprise-azureai
metadata:
template: enterprise-azureai@1.2.0
services:
proxy:
project: ./src/dotnet/AzureAI.Proxy
host: containerapp
language: dotnet
docker:
path: ./Dockerfile
context: ../
azurechat:
project: ./src/azurechat
host: appservice
language: ts
hooks:
preprovision: #determine "MY_IP" and write to .env file | whitelist IP during deployment
posix:
shell: sh
run: ./scripts/set-env.sh
interactive: true
windows:
shell: pwsh
run: ./scripts/set-env.ps1
interactive: true
postprovision: # Deploy the azurechat app if DEPLOY_AZURE_CHATAPP is set to true
posix:
shell: sh
run: ./scripts/deploy-azurechat.sh
interactive: true
windows:
shell: pwsh
run: ./scripts/deploy-azurechat.ps1
interactive: true
postdown:
posix:
shell: sh
run: ./scripts/cleanup.sh
interactive: true
windows:
shell: pwsh
run: ./scripts/cleanup.ps1
interactive: true
workflows:
up: # Deploy the application to Azure / Proxy only
# post-provision hook will deploy azurechat if parameter
# DEPLOY_AZURE_CHATAPP is set to true
- azd: provision
- azd: package proxy
- azd: deploy proxy