Skip to content
Merged
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
48 changes: 48 additions & 0 deletions azure_custom.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
environment:
name: document-generation
location: eastus

name: document-generation
metadata:
template: document-generation@1.0

requiredVersions:
azd: '>= 1.18.0'

parameters:
solutionPrefix:
type: string
default: bs-azdtest
otherLocation:
type: string
default: eastus2
baseUrl:
type: string
default: 'https://github.com/microsoft/document-generation-solution-accelerator'

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

deployment:
mode: Incremental
template: ./infra/main.bicep # Path to the main.bicep file inside the 'deployment' folder
parameters:
solutionPrefix: ${parameters.solutionPrefix}
otherLocation: ${parameters.otherLocation}
baseUrl: ${parameters.baseUrl}
11 changes: 11 additions & 0 deletions docs/DeploymentGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,17 @@ Once you've opened the project in [Codespaces](#github-codespaces), [Dev Contain

- Follow steps in [Delete Resource Group](./DeleteResourceGroup.md) if your deployment fails and/or you need to clean up the resources.

## 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`.

3. Continue with the [deploying steps](#deploying-with-azd).

## Environment configuration for local development & debugging
> Set APP_ENV in your .env file to control Azure authentication. Set the environment variable to dev to use Azure CLI credentials, or to prod to use Managed Identity for production. **Ensure you're logged in via az login when using dev in local**.
To configure your environment, follow these steps:
Expand Down
Loading