Skip to content

Commit 0656a8d

Browse files
committed
Updated node to 18-lts, fixed zip command to be recursive, updated to az webapp deploy command for deployment as previous command is deprecated.
1 parent 2af9fef commit 0656a8d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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)