Skip to content

Commit 45f705d

Browse files
Merge pull request #299189 from seligj95/bicep
App Service - Fix bicep template sample
2 parents 0d6a548 + 9e54341 commit 45f705d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

articles/app-service/provision-resource-bicep.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: seligj95
55
ms.author: msangapu
66
ms.topic: quickstart
77
ms.custom: devx-track-bicep
8-
ms.date: 04/02/2025
8+
ms.date: 05/01/2025
99
zone_pivot_groups: app-service-bicep
1010
---
1111

@@ -32,14 +32,14 @@ This quickstart uses the following template. It deploys an App Service plan and
3232
```bicep
3333
param webAppName string = uniqueString(resourceGroup().id) // Generate a unique string for the web app name
3434
param sku string = 'F1' // Tier of the App Service plan
35-
param linuxFxVersion string = 'node|14-lts' // Runtime stack of the web app
35+
param linuxFxVersion string = 'node|20-lts' // Runtime stack of the web app
3636
param location string = resourceGroup().location // Location for all resources
3737
param repositoryUrl string = 'https://github.com/Azure-Samples/nodejs-docs-hello-world'
3838
param branch string = 'main'
3939
var appServicePlanName = toLower('AppServicePlan-${webAppName}')
4040
var webSiteName = toLower('wapp-${webAppName}')
4141
42-
resource appServicePlan 'Microsoft.Web/serverfarms@2020-06-01' = {
42+
resource appServicePlan 'Microsoft.Web/serverfarms@2023-12-01' = {
4343
name: appServicePlanName
4444
location: location
4545
properties: {
@@ -51,7 +51,7 @@ resource appServicePlan 'Microsoft.Web/serverfarms@2020-06-01' = {
5151
kind: 'linux'
5252
}
5353
54-
resource appService 'Microsoft.Web/sites@2020-06-01' = {
54+
resource appService 'Microsoft.Web/sites@2023-12-01' = {
5555
name: webSiteName
5656
location: location
5757
properties: {
@@ -62,8 +62,9 @@ resource appService 'Microsoft.Web/sites@2020-06-01' = {
6262
}
6363
}
6464
65-
resource srcControls 'Microsoft.Web/sites/sourcecontrols@2021-01-01' = {
66-
name: '${appService.name}/web'
65+
resource srcControls 'Microsoft.Web/sites/sourcecontrols@2023-12-01' = {
66+
parent: appService
67+
name: 'web'
6768
properties: {
6869
repoUrl: repositoryUrl
6970
branch: branch
@@ -85,7 +86,7 @@ The template contains the following parameters that are predefined for your conv
8586
| `webAppName` | string | `webApp-<uniqueString>` | App name. For more information about the value, see [String functions for ARM templates](../azure-resource-manager/templates/template-functions-string.md#uniquestring). |
8687
| `location` | string | `resourceGroup().location` | App region. For more information about the value, see [Resource functions for ARM templates](../azure-resource-manager/templates/template-functions-resource.md#resourcegroup). |
8788
| `sku` | string | `F1` | Instance size. |
88-
| `linuxFxVersion` | string | `NODE`&#124;`14-LTS` | Programming language stack and version. |
89+
| `linuxFxVersion` | string | `NODE`&#124;`20-LTS` | Programming language stack and version. |
8990
| `repositoryUrl` | string | `https://github.com/Azure-Samples/nodejs-docs-hello-world` | External Git repo (optional). |
9091
| `branch` | string | `master` | Default branch for the code sample. |
9192

@@ -157,7 +158,6 @@ resource webApp 'Microsoft.Web/sites@2024-04-01' = {
157158
httpsOnly: true
158159
}
159160
}
160-
161161
```
162162

163163
The template defines two Azure resources:

0 commit comments

Comments
 (0)