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
Copy file name to clipboardExpand all lines: docs/DeploymentGuide.md
+17-63Lines changed: 17 additions & 63 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -294,7 +294,21 @@ azd up
294
294
295
295
**⚠️ Deployment Issues:** If you encounter errors or timeouts, try a different region as there may be capacity constraints. For detailed error solutions, see our [Troubleshooting Guide](./TroubleShootingSteps.md).
296
296
297
-
### 4.3 Get Application URL
297
+
### 4.3 Run the script to build and push the application images
298
+
299
+
Build and push the frontend, backend, and processor images to the dedicated ACR, then update the Container Apps to use them. This step is **not run automatically** by `azd up` — run it from the repository root after deployment:
300
+
301
+
```powershell
302
+
# PowerShell
303
+
./scripts/acr_build_push.ps1
304
+
```
305
+
306
+
```bash
307
+
# Bash
308
+
bash ./scripts/acr_build_push.sh
309
+
```
310
+
311
+
### 4.4 Get Application URL
298
312
299
313
After successful deployment:
300
314
1. Open [Azure Portal](https://portal.azure.com/)
@@ -315,7 +329,7 @@ After successful deployment:
315
329
316
330
### 5.2 Verify Deployment
317
331
318
-
1. Access your application using the URL from Step 4.3
332
+
1. Access your application using the URL from Step 4.4
319
333
2. Confirm the application loads successfully
320
334
3. Verify you can sign in with your authenticated account
321
335
@@ -460,64 +474,4 @@ Now that your deployment is complete and tested, explore these resources to enha
- 🔧 **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.
477
+
- 🔧 **Development:** See [Contributing Guide](../CONTRIBUTING.md)
@description('Optional. The image tag to use for container images. Defaults to "latest_v2".')
49
-
paramimageTagstring = 'latest_v2'
48
+
@description('Optional. The image tag to use for container images. Defaults to "latest".')
49
+
paramimageTagstring = 'latest'
50
50
51
51
@description('''Optional. Placeholder container image used to initially provision the container apps.
52
-
The dedicated Azure Container Registry is empty right after infrastructure provisioning, so a public image is used as the default allowed image until the post-deployment script (scripts/deploy_container_images.*) builds and pushes the deployment-specific images and updates the apps. Defaults to the Azure Container Apps quickstart image.''')
The dedicated Azure Container Registry is empty right after infrastructure provisioning, so a public image is used as the default allowed image until the post-deployment script (scripts/acr_build_push.*) builds and pushes the deployment-specific images and updates the apps. Defaults to the Azure Container Apps hello-world image.''')
0 commit comments