Skip to content

Commit 664c07d

Browse files
azd folder structure
azd folder structure
1 parent 30cef2f commit 664c07d

5 files changed

Lines changed: 1159 additions & 435 deletions

File tree

.env.sample

Lines changed: 0 additions & 122 deletions
This file was deleted.

app-azure.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
2+
3+
name: sample-app-aoai-chatgpt
4+
metadata:
5+
template: sample-app-aoai-chatgpt@0.0.1-beta
6+
services:
7+
backend:
8+
project: .
9+
language: py
10+
host: appservice
11+
hooks:
12+
prepackage:
13+
windows:
14+
shell: pwsh
15+
run: cd ./frontend;npm install;npm run build
16+
interactive: true
17+
continueOnError: false
18+
posix:
19+
shell: sh
20+
run: cd ./frontend;npm install;npm run build
21+
interactive: true
22+
continueOnError: false
23+
hooks:
24+
preprovision:
25+
windows:
26+
shell: pwsh
27+
run: ./scripts/auth_init.ps1
28+
interactive: true
29+
continueOnError: false
30+
posix:
31+
shell: sh
32+
run: ./scripts/auth_init.sh
33+
interactive: true
34+
continueOnError: false
35+
postprovision:
36+
windows:
37+
shell: pwsh
38+
run: ./scripts/auth_update.ps1;
39+
interactive: true
40+
continueOnError: false
41+
posix:
42+
shell: sh
43+
run: ./scripts/auth_update.sh;
44+
interactive: true
45+
continueOnError: false

azure.yaml

Lines changed: 21 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,22 @@
1-
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
1+
environment:
2+
name: BYC-Generic-Accelerator
3+
location: eastus
24

3-
name: sample-app-aoai-chatgpt
4-
metadata:
5-
template: sample-app-aoai-chatgpt@0.0.1-beta
6-
services:
7-
backend:
8-
project: .
9-
language: py
10-
host: appservice
11-
hooks:
12-
prepackage:
13-
windows:
14-
shell: pwsh
15-
run: cd ./frontend;npm install;npm run build
16-
interactive: true
17-
continueOnError: false
18-
posix:
19-
shell: sh
20-
run: cd ./frontend;npm install;npm run build
21-
interactive: true
22-
continueOnError: false
23-
hooks:
24-
preprovision:
25-
windows:
26-
shell: pwsh
27-
run: ./scripts/auth_init.ps1
28-
interactive: true
29-
continueOnError: false
30-
posix:
31-
shell: sh
32-
run: ./scripts/auth_init.sh
33-
interactive: true
34-
continueOnError: false
35-
postprovision:
36-
windows:
37-
shell: pwsh
38-
run: ./scripts/auth_update.ps1;
39-
interactive: true
40-
continueOnError: false
41-
posix:
42-
shell: sh
43-
run: ./scripts/auth_update.sh;
44-
interactive: true
45-
continueOnError: false
5+
parameters:
6+
solutionPrefix:
7+
type: string
8+
default: bs-azdtest
9+
otherLocation:
10+
type: string
11+
default: eastus2
12+
baseUrl:
13+
type: string
14+
default: 'https://github.com/blessing-sanusi/BYC-Generic-Accelerator'
15+
16+
deployment:
17+
mode: Incremental
18+
template: ./infra/main.bicep # Path to the main.bicep file inside the 'deployment' folder
19+
parameters:
20+
solutionPrefix: ${parameters.solutionPrefix}
21+
otherLocation: ${parameters.otherLocation}
22+
baseUrl: ${parameters.baseUrl}

0 commit comments

Comments
 (0)