Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions azure_custom.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
name: byoc-research-assistant-custom

requiredVersions:
azd: ">= 1.18.0"

metadata:
template: byoc-research-assistant-custom@1.0

infra:
provider: bicep
path: infra
module: main

services:
webapp:
project: ./src
language: py
host: appservice
dist: ./dist
hooks:
prepackage:
windows:
shell: pwsh
run: ../infra/scripts/package_webapp.ps1
interactive: true
continueOnError: false
posix:
shell: sh
run: bash ../infra/scripts/package_webapp.sh
interactive: true
continueOnError: false

hooks:
postprovision:
windows:
run: |
Write-Host "✅ Infrastructure provisioned successfully!"
$webAppUrl = (azd env get-value WEB_APP_URL)
if ($webAppUrl) {
Write-Host "Web app URL: $webAppUrl"
}
shell: pwsh
continueOnError: true
posix:
run: |
echo "✅ Infrastructure provisioned successfully!"
WEB_APP_URL=$(azd env get-value WEB_APP_URL)
if [ ! -z "$WEB_APP_URL" ]; then
echo "Web app URL: $WEB_APP_URL"
fi
shell: sh
continueOnError: true
7 changes: 7 additions & 0 deletions docs/DeploymentGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,10 @@ Once you've opened the project in locally, you can deploy it to Azure by followi
Now that you've completed your deployment, you can start using the solution.

To help you get started, here are some [Sample Questions](./SampleQuestions.md) you can follow to try it out.

## Deploy Your local changes
To deploy your local changes rename the below files.
1. Rename `azure.yaml` to `azure_custom2.yaml` and `azure_custom.yaml` to `azure.yaml`.
2. Go to `infra` directory
- Rename `main.bicep` to `main_custom2.bicep` and `main_custom.bicep` to `main.bicep`.
Continue with the [deploying steps](#deploying-with-azd).
Loading