You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 🔧 **Development:** See [Contributing Guide](../CONTRIBUTING.md)
464
-
465
-
---
466
-
467
-
## Advanced: Deploy Local Changes
468
-
469
-
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.
470
-
471
-
**How it works:**
472
-
- 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).
473
-
- The custom `main.bicep` accepts image name parameters (`backendImageName`, `processorImageName`, `frontendImageName`) that `azd` passes automatically after building the images.
474
-
475
-
> **Note:** To set up and run the application locally for development, see the [Local Development Setup Guide](./LocalDevelopmentSetup.md).
476
-
477
-
### Step 1: Rename Azure Configuration Files
478
-
479
-
**In the root directory:**
480
-
1. Rename `azure.yaml` to `azure_custom2.yaml`
481
-
2. Rename `azure_custom.yaml` to `azure.yaml`
482
-
483
-
### Step 2: Rename Infrastructure Files
484
-
485
-
**In the `infra` directory:**
486
-
1. Rename `main.bicep` to `main_custom2.bicep`
487
-
2. Rename `main_custom.bicep` to `main.bicep`
488
-
489
-
### Step 3: Deploy Changes
490
-
491
-
> ⚠️ **Critical: Redeployment Warning**
492
-
> 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.
493
-
494
-
**Create a fresh environment:**
495
-
```shell
496
-
# Create a new named environment (3-16 characters, alphanumeric only)
497
-
azd env new <new-environment-name>
498
-
```
499
-
500
-
> **Note:** When prompted "Set new environment as default environment?", select **Y**. This eliminates the need to run `azd env select` separately.
501
-
502
-
**Run the deployment:**
503
-
```shell
504
-
azd up
505
-
```
506
-
507
-
> **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.
508
-
509
-
**⚠️ 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).
510
-
511
-
### Step 4: Revert Configuration Files
512
-
513
-
After your custom deployment is complete, revert the renames to restore the original configuration:
514
-
515
-
**In the root directory:**
516
-
1. Rename `azure.yaml` to `azure_custom.yaml`
517
-
2. Rename `azure_custom2.yaml` to `azure.yaml`
518
-
519
-
**In the `infra` directory:**
520
-
1. Rename `main.bicep` to `main_custom.bicep`
521
-
2. Rename `main_custom2.bicep` to `main.bicep`
522
-
523
-
> **Note:** This restores the original files so that standard deployments and git status remain clean.
463
+
- 🔧 **Development:** See [Contributing Guide](../CONTRIBUTING.md)
0 commit comments