6
6
* [ 4. Add initial azure container app definition to infra-as-code bicep] ( #4-add-initial-azure-container-app-definition-to-infra-as-code-bicep )
7
7
* [ 5. Adjust infra-as-code provisioning scripts] ( #5-adjust-infra-as-code-provisioning-scripts )
8
8
* [ 6. Adjust dev deploy script to deploy new azure container app] ( #6-adjust-dev-deploy-script-to-deploy-new-azure-container-app )
9
- * [ 7. Add app to the solution's CI/CD pipeline] ( #7-add-app-to-the-solutions-cicd-pipeline )
10
- * [ 8. Implement custom domain for the new app] ( #8-implement-custom-domain-for-the-new-app )
9
+ * [ 7. Update dev setup guide] ( #7-update-dev-setup-guide )
10
+ * [ 8. Add app to the solution's CI/CD pipeline] ( #8-add-app-to-the-solutions-cicd-pipeline )
11
+ * [ 9. Implement custom domain for the new app] ( #9-implement-custom-domain-for-the-new-app )
11
12
<!-- TOC -->
12
13
13
14
# Instructions for adding a new application to the solution
@@ -103,7 +104,7 @@ for "inner-loop" development.
103
104
add file named Dockerfile to the root of the new project with the following definition:
104
105
105
106
` ` ` yaml
106
- FROM mcr.microsoft.com/dotnet/aspnet:8.0-noble-chiseled-extra # <- change '8.0' to the version of the .net you are targeting
107
+ FROM mcr.microsoft.com/dotnet/aspnet:8.0-noble-chiseled-extra
107
108
# EXPOSE 8080 <- this is the default port that a .net 8+ application will be configured to listen on and is the port exposed in the base docker image
108
109
109
110
WORKDIR /app
@@ -151,11 +152,12 @@ for "inner-loop" development.
151
152
152
153
` ` ` pwsh
153
154
$dev = ./tools/infrastructure/get-product-conventions.ps1 -EnvironmentName dev -AsHashtable
155
+ $subProductName = ' App'
154
156
@{
155
- App = $dev .SubProducts.App
156
- AppAvailabilityTest = $dev .SubProducts.AppAvailabilityTest
157
- AppTrafficManager = $dev .SubProducts.AppTrafficManager
158
- } | ConvertTo-Json
157
+ ContainerApp = $dev .SubProducts[ $subProductName ]
158
+ AvailabilityTest = $dev .SubProducts[ " $( $subProductName ) AvailabilityTest " ]
159
+ TrafficManager = $dev .SubProducts[ " $( $subProductName ) TrafficManager " ]
160
+ } | ConvertTo-Json -Depth 100
159
161
` ` `
160
162
161
163
@@ -164,8 +166,8 @@ for "inner-loop" development.
164
166
1. Add new parameters to the [main.bicep](../tools/infrastructure/arm-templates/main.bicep) file:
165
167
166
168
` ` ` bicep
167
- param appPrimaryExists bool = true
168
169
param appFailoverExists bool = true
170
+ param appPrimaryExists bool = true
169
171
` ` `
170
172
171
173
Name these parameters with a prefix to match the new app name. For example if your app was named ` Template.Web` , then
@@ -332,9 +334,16 @@ Extend [provision-azure-resources.ps1](../tools/infrastructure/provision-azure-r
332
334
333
335
* When prompted for build number, enter the same value you provided above when building the solution
334
336
335
- 3. Test that it worked by browsing to the " App health Url" printed to the console
337
+ 3. Test that it worked by browsing to the " App Url" printed to the console
338
+
339
+ # # 7. Update dev setup guide
340
+
341
+ Add a section to the [dev-setup.md](../docs/dev-setup.md) guide to explain how to configure and run new app for local
342
+ development.
343
+
344
+ For an example section to add, see [dev-setup.md](../docs/dev-setup.md#app)
336
345
337
- # # 7 . Add app to the solution's CI/CD pipeline
346
+ # # 8 . Add app to the solution's CI/CD pipeline
338
347
339
348
1. Modify the ' Map variables' step in the [__Application Deployment](../.github/workflows/__app-deploy.yml) github workflow
340
349
to include the variables required for the new app. At minimum this will be:
@@ -382,7 +391,7 @@ Extend [provision-azure-resources.ps1](../tools/infrastructure/provision-azure-r
382
391
3. Manually run the [Application CI/CD](../.github/workflows/app-ci-cd.yml) github workflow selecting the PR branch
383
392
* This will execute the deployment steps for the new app
384
393
385
- # # 8 . Implement custom domain for the new app
394
+ # # 9 . Implement custom domain for the new app
386
395
387
396
1. Create DNS records for the new app
388
397
0 commit comments