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)
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