Skip to content

Commit 0b7997a

Browse files
committed
Merge branch 'main' into kschlobohm/aac
2 parents f158c0d + 8938ae4 commit 0b7997a

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed
73 KB
Loading

known-issues.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Known issues
2+
This document helps with troubleshooting and provides an introduction to the most requested features, gotchas, and questions.
3+
4+
## Deploying the app to the second region
5+
6+
The production deployment calls for the app to be deployed to two regions. The azure cli command `az webapp deploy` does not honor the `--restart false` flag. The app will fail to be restarted after deployment because the database is not yet configured to use the secondary region.
7+
8+
Below is the error that you may see after deploying the app to the second region:
9+
10+
![az webapp deploy error](./docs/assets/az-webapp-deploy-error-second-region.png)

prod-deployment.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,12 @@ We will now configure the Contoso Fiber application to use Microsoft Entra authe
338338
az webapp deploy --resource-group $primary_spoke_resource_group --name $primary_app_service_name --src-path cams.jar --type jar
339339
```
340340

341-
1. Deploy the application to the secondary region using:
341+
1. Deploy the application to the secondary region using the following command.
342+
343+
This step is optional and can be done at a later time. There is a known issue with the deployment of the secondary region. See [known_issues](./known-issues.md) for more information.
342344

343345
```shell
344-
az webapp deploy --resource-group $secondary_spoke_resource_group --name $secondary_app_service_name --src-path cams.jar --type jar --restart false --async true
346+
az webapp deploy --resource-group $secondary_spoke_resource_group --name $secondary_app_service_name --src-path cams.jar --type jar --restart false
345347
```
346348

347349
The `--restart false` flag is used to prevent the app from restarting after deployment. This is because the app is not yet configured to use the database as the secondary region is on stand by.
@@ -433,6 +435,24 @@ We will now configure the Contoso Fiber application to use Microsoft Entra authe
433435
az containerapp update -n email-processor -g $secondary_spoke_resource_group --image $email_processor_image
434436
```
435437

438+
Ensure that the image is updated in the container app.
439+
440+
```shell
441+
az containerapp show -n email-processor -g $primary_spoke_resource_group --query "properties.template.containers[0].image" -o tsv
442+
```
443+
444+
```shell
445+
az containerapp show -n email-processor -g $secondary_spoke_resource_group --query "properties.template.containers[0].image" -o tsv
446+
```
447+
448+
If the image is not updated, issue the update command again.
449+
450+
```shell
451+
az containerapp update -n email-processor -g $primary_spoke_resource_group --image $email_processor_image
452+
453+
az containerapp update -n email-processor -g $secondary_spoke_resource_group --image $email_processor_image
454+
```
455+
436456
1. Exit the jumpbox using:
437457

438458
```shell

0 commit comments

Comments
 (0)