Skip to content

Commit c6b6251

Browse files
Merge pull request #323 from Priyanka2-Microsoft/remove-local-deployment-changes
fix: remove local deployment changes
2 parents 466bee7 + a64dcff commit c6b6251

4 files changed

Lines changed: 1 addition & 1733 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ on:
1414
paths:
1515
- 'infra/**'
1616
- 'azure.yaml'
17-
- 'azure_custom.yaml'
1817
- 'scripts/**'
1918
- '.github/workflows/ci.yml'
2019
pull_request:
@@ -23,7 +22,6 @@ on:
2322
paths:
2423
- 'infra/**'
2524
- 'azure.yaml'
26-
- 'azure_custom.yaml'
2725
- 'scripts/**'
2826
- '.github/workflows/ci.yml'
2927
schedule:

azure_custom.yaml

Lines changed: 0 additions & 108 deletions
This file was deleted.

docs/DeploymentGuide.md

Lines changed: 1 addition & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -474,64 +474,4 @@ Now that your deployment is complete and tested, explore these resources to enha
474474
475475
- 🐛 **Issues:** Check [Troubleshooting Guide](./TroubleShootingSteps.md)
476476
- 💬 **Support:** Review [Support Guidelines](../SUPPORT.md)
477-
- 🔧 **Development:** See [Contributing Guide](../CONTRIBUTING.md)
478-
479-
---
480-
481-
## Advanced: Deploy Local Changes
482-
483-
If you've made local modifications to the code and want to deploy them to Azure, follow these steps to swap the configuration files so that `azd up` builds Docker images from your local source code instead of pulling pre-built images from the GitHub repository.
484-
485-
**How it works:**
486-
- The custom `azure.yaml` defines three services (backend, processor, frontend) with `remoteBuild: true`, which instructs `azd` to build Docker images from your local `src/` directories and push them to Azure Container Registry (ACR).
487-
- The custom `main.bicep` accepts image name parameters (`backendImageName`, `processorImageName`, `frontendImageName`) that `azd` passes automatically after building the images.
488-
489-
> **Note:** To set up and run the application locally for development, see the [Local Development Setup Guide](./LocalDevelopmentSetup.md).
490-
491-
### Step 1: Rename Azure Configuration Files
492-
493-
**In the root directory:**
494-
1. Rename `azure.yaml` to `azure_custom2.yaml`
495-
2. Rename `azure_custom.yaml` to `azure.yaml`
496-
497-
### Step 2: Rename Infrastructure Files
498-
499-
**In the `infra` directory:**
500-
1. Rename `main.bicep` to `main_custom2.bicep`
501-
2. Rename `main_custom.bicep` to `main.bicep`
502-
503-
### Step 3: Deploy Changes
504-
505-
> ⚠️ **Critical: Redeployment Warning**
506-
> If you have previously run `azd up` in this folder (i.e., a `.azure` folder exists), you must create a fresh environment before deploying to avoid conflicts and deployment failures.
507-
508-
**Create a fresh environment:**
509-
```shell
510-
# Create a new named environment (3-16 characters, alphanumeric only)
511-
azd env new <new-environment-name>
512-
```
513-
514-
> **Note:** When prompted "Set new environment as default environment?", select **Y**. This eliminates the need to run `azd env select` separately.
515-
516-
**Run the deployment:**
517-
```shell
518-
azd up
519-
```
520-
521-
> **Note:** During the packaging phase, you may see `"No artifacts were found"` for each service. This is expected — because `remoteBuild: true` is configured, Docker images are built remotely on Azure Container Registry, not on your local machine. Your local code is still being deployed.
522-
523-
**⚠️ Deployment Issues:** If `azd up` fails on the first attempt (e.g., with a `ResourceNotFound` error), try running `azd up` again. Transient errors can occur due to resource propagation delays, and a retry typically resolves them. For other errors, try a different region or see the [Troubleshooting Guide](./TroubleShootingSteps.md).
524-
525-
### Step 4: Revert Configuration Files
526-
527-
After your custom deployment is complete, revert the renames to restore the original configuration:
528-
529-
**In the root directory:**
530-
1. Rename `azure.yaml` to `azure_custom.yaml`
531-
2. Rename `azure_custom2.yaml` to `azure.yaml`
532-
533-
**In the `infra` directory:**
534-
1. Rename `main.bicep` to `main_custom.bicep`
535-
2. Rename `main_custom2.bicep` to `main.bicep`
536-
537-
> **Note:** This restores the original files so that standard deployments and git status remain clean.
477+
- 🔧 **Development:** See [Contributing Guide](../CONTRIBUTING.md)

0 commit comments

Comments
 (0)