Skip to content

Commit 45aedff

Browse files
Merge pull request #283277 from JimacoMS4/update-app-service-js-cog-svc-tutorial
Updated node to 18-lts, fixed zip command to be recursive, updated to…
2 parents 15edb15 + a41e2c6 commit 45aedff

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/app-service/tutorial-connect-msi-key-vault-javascript.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to secure connectivity to back-end Azure services that do
44
ms.devlang: javascript
55
# ms.devlang: javascript, azurecli
66
ms.topic: tutorial
7-
ms.date: 10/26/2021
7+
ms.date: 08/02/2024
88
author: cephalin
99
ms.author: cephalin
1010

@@ -25,20 +25,20 @@ Clone the sample repository locally and deploy the sample application to App Ser
2525
# Clone and prepare sample application
2626
git clone https://github.com/Azure-Samples/app-service-language-detector.git
2727
cd app-service-language-detector/javascript
28-
zip default.zip *.*
28+
zip -r default.zip .
2929
3030
# Save app name as variable for convenience
3131
appName=<app-name>
3232
3333
az appservice plan create --resource-group $groupName --name $appName --sku FREE --location $region --is-linux
34-
az webapp create --resource-group $groupName --plan $appName --name $appName --runtime "node|14-lts"
34+
az webapp create --resource-group $groupName --plan $appName --name $appName --runtime "node:18-lts"
3535
az webapp config appsettings set --resource-group $groupName --name $appName --settings SCM_DO_BUILD_DURING_DEPLOYMENT=true
36-
az webapp deployment source config-zip --resource-group $groupName --name $appName --src ./default.zip
36+
az webapp deploy --resource-group $groupName --name $appName --src-path ./default.zip
3737
```
3838

3939
The preceding commands:
4040
* Create a linux app service plan
41-
* Create a web app for Node.js 14 LTS
41+
* Create a web app for Node.js 18 LTS
4242
* Configure the web app to install the npm packages on deployment
4343
* Upload the zip file, and install the npm packages
4444

0 commit comments

Comments
 (0)