Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
ff2a419
Add scripts to build and push Docker image to Azure Container Registry
Vemarthula-Microsoft Nov 17, 2025
35879e1
Update Azure configuration to enhance deployment scripts and adjust m…
Vemarthula-Microsoft Nov 18, 2025
032ff4c
Replace Dockerfile.backend with src/WebApp.Dockerfile in build script…
Vemarthula-Microsoft Nov 20, 2025
633c569
Add packaging scripts for web app deployment and update Azure configu…
Vemarthula-Microsoft Nov 20, 2025
6ea1dc0
Remove legacy build and push scripts for Docker images to Azure Conta…
Vemarthula-Microsoft Nov 20, 2025
b023cf3
Remove commented-out hooks for post-provisioning Docker image build a…
Vemarthula-Microsoft Nov 20, 2025
587528d
Replcae OpenAI API calls with SDK API call
NirajC-Microsoft Nov 21, 2025
dbaa233
Pylint fix in data_utils.py
NirajC-Microsoft Nov 21, 2025
1776a67
Add files via upload
Thanusree-Microsoft Nov 21, 2025
ef443cb
Update Deployment Guide with Log Analytics note
Thanusree-Microsoft Nov 21, 2025
1896c3a
Add instructions for deploying local changes and renaming configurati…
Vemarthula-Microsoft Nov 21, 2025
efd9042
Remove container registry module and related outputs from Bicep template
Vemarthula-Microsoft Nov 21, 2025
6b1d1d4
removed extra space
Harsh-Microsoft Nov 21, 2025
c41fbe3
Add Foundry changes
NirajC-Microsoft Nov 21, 2025
e7ec23b
Resolve Pylint issue
NirajC-Microsoft Nov 21, 2025
fb47027
Resolve Pylint issue-1
NirajC-Microsoft Nov 21, 2025
66adb72
Update Deployment Guide by removing note on file names
Vemarthula-Microsoft Nov 21, 2025
579162f
Revise file renaming instructions in DeploymentGuide
Vemarthula-Microsoft Nov 21, 2025
d2c5e4d
Fix formatting for deployment guide instructions
Vemarthula-Microsoft Nov 21, 2025
333392d
Merge pull request #614 from microsoft/ve-dev-exp
Roopan-Microsoft Nov 21, 2025
30271c4
Merge pull request #620 from microsoft/psl-docs
Roopan-Microsoft Nov 24, 2025
cdab8dc
Remove Keybase authentication from get_embedding
NirajC-Microsoft Nov 24, 2025
604c181
refactor: Replcae OpenAI API calls with SDK API call
Avijit-Microsoft Nov 24, 2025
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: [email protected]

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}
16 changes: 14 additions & 2 deletions docs/DeploymentGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,11 @@ Once you've opened the project in [Codespaces](#github-codespaces), [Dev Contain

6. Open the [Azure Portal](https://portal.azure.com/), go to the deployed resource group, find the App Service and get the app URL from `Default domain`.

7. You can now delete the resources by running `azd down`, if you are done trying out the application.
7. You can now delete the resources by running `azd down`, if you are done trying out the application.
> **Note:** If you deployed with `enableRedundancy=true` and Log Analytics workspace replication is enabled, you must first disable replication before running `azd down` else resource group delete will fail. Follow the steps in [Handling Log Analytics Workspace Deletion with Replication Enabled](./LogAnalyticsReplicationDisable.md), wait until replication returns `false`, then run `azd down`.

### 🛠️ Troubleshooting
If you encounter any issues during the deployment process, please refer [troubleshooting](../docs/TroubleShootingSteps.md) document for detailed steps and solutions
If you encounter any issues during the deployment process, please refer [troubleshooting](../docs/TroubleShootingSteps.md) document for detailed steps and solutions

## Post Deployment Steps

Expand All @@ -226,6 +227,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
28 changes: 28 additions & 0 deletions docs/LogAnalyticsReplicationDisable.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 🛠 Handling Log Analytics Workspace Deletion with Replication Enabled

If redundancy (replication) is enabled for your Log Analytics workspace, you must disable it before deleting the workspace or resource group. Otherwise, deletion will fail.

## ✅ Steps to Disable Replication Before Deletion
Run the following Azure CLI command. Note: This operation may take about 5 minutes to complete.

```bash
az resource update --ids "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{logAnalyticsName}" --set properties.replication.enabled=false
```

Replace:
- `{subscriptionId}` → Your Azure subscription ID
- `{resourceGroupName}` → The name of your resource group
- `{logAnalyticsName}` → The name of your Log Analytics workspace

Optional: Verify replication disabled (should output `false`):
```bash
az resource show --ids "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{logAnalyticsName}" --query properties.replication.enabled -o tsv
```

## ✅ After Disabling Replication
You can safely delete:
- The Log Analytics workspace (manual)
- The resource group (manual), or
- All provisioned resources via `azd down`

Return to: [Deployment Guide](./DeploymentGuide.md)
5 changes: 5 additions & 0 deletions infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -1105,6 +1105,11 @@ module keyvault 'br/public:avm/res/key-vault/vault:0.12.1' = {
{name: 'AZURE-OPENAI-PREVIEW-API-VERSION', value: azureOpenaiAPIVersion}
{name: 'AZURE-OPEN-AI-DEPLOYMENT-MODEL', value: gptModelName}
{name: 'TENANT-ID', value: subscription().tenantId}
{
name: 'AZURE-AI-AGENT-ENDPOINT'
value: aiFoundryAiProjectEndpoint
}

]
}
dependsOn:[
Expand Down
Loading
Loading