Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
84ad5ed
Craeted custom main.bicep file and azure.yaml file for local changes …
Vemarthula-Microsoft Nov 7, 2025
75b9b29
add instructions for deploying local changes in Deployment Guide
Vemarthula-Microsoft Nov 7, 2025
271ec5a
Updating Readme File
Vemarthula-Microsoft Nov 10, 2025
efce61a
Refactor Bicep parameters and update Dockerfile for improved clarity …
Vemarthula-Microsoft Nov 10, 2025
dbdb613
Update Dockerfile to clarify architectural decision for using Python/…
Vemarthula-Microsoft Nov 10, 2025
b577b9c
Enhance Dockerfile comments to clarify architectural decision for usi…
Vemarthula-Microsoft Nov 10, 2025
cd14c45
docker file update for the updated comments
Vemarthula-Microsoft Nov 10, 2025
fe8f876
Refactor Dockerfile structure: consolidate backend and frontend confi…
Vemarthula-Microsoft Nov 10, 2025
9e53645
Fix Dockerfile paths for backend service to ensure correct context an…
Vemarthula-Microsoft Nov 10, 2025
561159b
Refactor Dockerfile paths in azure_custom.yaml to simplify structure …
Vemarthula-Microsoft Nov 11, 2025
4616256
Merge pull request #260 from microsoft/ve-userexperience
Roopan-Microsoft Nov 11, 2025
60b3c6a
Updated the reusuable network design documentation
Abdul-Microsoft Nov 12, 2025
50ce231
Merge pull request #262 from microsoft/psl-networkmodulerestructure
Prajwal-Microsoft Nov 12, 2025
c4d65cd
update bicep to adhere to latest waf standards
Harsh-Microsoft Nov 18, 2025
c920235
add remote build support for backend and frontend services in azure.yaml
Harsh-Microsoft Nov 18, 2025
91c2e91
Merge pull request #270 from microsoft/hb-psl-us-26064
Roopan-Microsoft Nov 19, 2025
690d9f7
Add files via upload
Thanusree-Microsoft Nov 21, 2025
40cab8a
Update deployment guide with Log Analytics note
Thanusree-Microsoft Nov 21, 2025
3a02daf
Fix typo in LogAnalyticsReplicationDisable.md
Harsh-Microsoft Nov 21, 2025
d5c511c
Merge pull request #273 from microsoft/psl-docupdate
Roopan-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
31 changes: 31 additions & 0 deletions azure_custom.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: modernize-your-code-solution-accelerator
metadata:
template: modernize-your-code-solution-accelerator@1.0

requiredVersions:
azd: '>= 1.18.0'

parameters:
azureAiServiceLocation:
type: string
default: japaneast

services:
backend:
project: ./src/backend
host: containerapp
language: python
docker:
path: Dockerfile
remoteBuild: true
frontend:
project: ./src/frontend
host: containerapp
language: js
docker:
path: Dockerfile
remoteBuild: true

infra:
provider: bicep
path: infra
13 changes: 12 additions & 1 deletion docs/DeploymentGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,18 @@ To change the azd parameters from the default values, follow the steps [here](..

5. Once the deployment has completed successfully, open the [Azure Portal](https://portal.azure.com/), go to the deployed resource group, find the container app with "frontend" in the name, and get the app URL from `Application URI`.

6. You can now delete the resources by running `azd down`, when you have finished trying out the application.
6. You can now delete the resources by running `azd down`, when you have finished 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`.

### Deploy your local changes

To deploy your local changes rename the below files.

Rename `azure.yaml` to `azure_original.yaml` and `azure_custom.yaml` to `azure.yaml`.

Go to `infra` directory

Rename `main.bicep` to `main_original.bicep` and `main_custom.bicep` to `main.bicep`. Continue with the [deploying steps](https://github.com/microsoft/Modernize-your-code-solution-accelerator/blob/main/docs/DeploymentGuide.md#deploying-with-azd).

### 🛠️ Troubleshooting
If you encounter any issues during the deployment process, please refer [troubleshooting](../docs/TroubleShootingSteps.md) document for detailed steps and solutions.
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 is 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)
Loading