-
Notifications
You must be signed in to change notification settings - Fork 523
Expand file tree
/
Copy pathazure.yaml
More file actions
80 lines (75 loc) · 3.5 KB
/
Copy pathazure.yaml
File metadata and controls
80 lines (75 loc) · 3.5 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: modernize-your-code-solution-accelerator
metadata:
template: modernize-your-code-solution-accelerator@1.0
requiredVersions:
azd: '>= 1.18.0 != 1.23.9'
parameters:
AzureAiServiceLocation:
type: string
default: japaneast
Prefix:
type: string
default: azdtemp
baseUrl:
type: string
default: 'https://raw.githubusercontent.com/microsoft/Modernize-your-code-solution-accelerator'
hooks:
preprovision:
windows:
run: |
Write-Host ""
Write-Host " ---------------------------------------------------------------------------------------------------" -ForegroundColor Yellow
Write-Host " Note: If deployment fails or you encounter an issue, please open an issue with the deployment logs." -ForegroundColor Yellow
Write-Host " https://github.com/microsoft/Modernize-your-code-solution-accelerator/issues" -ForegroundColor Cyan
Write-Host " ---------------------------------------------------------------------------------------------------" -ForegroundColor Yellow
Write-Host ""
shell: pwsh
interactive: true
posix:
run: |
printf '\n'
printf '\033[33m ---------------------------------------------------------------------------------------------------\033[0m\n'
printf '\033[33m Note: If deployment fails or you encounter an issue, please open an issue with the deployment logs.\033[0m\n'
printf '\033[36m https://github.com/microsoft/Modernize-your-code-solution-accelerator/issues\033[0m\n'
printf '\033[33m ---------------------------------------------------------------------------------------------------\033[0m\n'
printf '\n'
shell: sh
interactive: true
postprovision:
windows:
run: |
Write-Host "===== Provisioning Complete =====" -ForegroundColor Green
Write-Host "=> Next step: build and push container images to the dedicated ACR (remote build):" -ForegroundColor Yellow
# Check if running from bash/MINGW64 terminal
if ($env:SHELL -like "*bash*" -or $env:TERM_PROGRAM -like "*git*" -or $env:MSYSTEM -eq "MINGW64") {
Write-Host " bash scripts/build_and_push_images.sh" -ForegroundColor Cyan
} else {
Write-Host " .\scripts\build_and_push_images.ps1" -ForegroundColor Cyan
}
Write-Host ""
$webAppUrl = $env:WEB_APP_URL
if ([string]::IsNullOrWhiteSpace($webAppUrl)) { $webAppUrl = azd env get-value WEB_APP_URL 2>$null }
Write-Host "Web app URL: " -NoNewline
Write-Host "$webAppUrl" -ForegroundColor Cyan
shell: pwsh
continueOnError: false
interactive: true
posix:
run: |
echo "===== Provisioning Complete ====="
echo "=> Next step: build and push container images to the dedicated ACR (remote build):"
echo " bash scripts/build_and_push_images.sh"
echo ""
WEB_APP_URL_DISPLAY="$WEB_APP_URL"
if [ -z "$WEB_APP_URL_DISPLAY" ]; then WEB_APP_URL_DISPLAY=$(azd env get-value WEB_APP_URL 2>/dev/null); fi
echo "Web app URL: $WEB_APP_URL_DISPLAY"
shell: sh
continueOnError: false
interactive: true
deployment:
mode: Incremental
template: ./infra/main.bicep # Path to the main.bicep file inside the 'deployment' folder
parameters:
AzureAiServiceLocation: ${{ parameters.AzureAiServiceLocation }}
Prefix: ${{ parameters.Prefix }}
baseUrl: ${{ parameters.baseUrl }}