Skip to content

Commit 0cee876

Browse files
committed
added --runtime parameter to az webapp create command in step 2 to address gh issue 46365
1 parent 8b9615f commit 0cee876

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/iot-hub/iot-hub-live-data-visualization-in-web-apps.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,10 @@ In this section, you provision a web app in App Service and deploy your code to
160160
az appservice plan create --name <app service plan name> --resource-group <your resource group name> --sku FREE
161161
```
162162

163-
2. Now provision a web app in your App Service plan. The `--deployment-local-git` parameter enables the web app code to be uploaded and deployed from a Git repository on your local machine. Your web app name must be globally unique and can contain upper and lower case letters, numbers, and hyphens.
163+
2. Now provision a web app in your App Service plan. The `--deployment-local-git` parameter enables the web app code to be uploaded and deployed from a Git repository on your local machine. Your web app name must be globally unique and can contain upper and lower case letters, numbers, and hyphens. Be sure to specify Node version 10.6 or later for the `--runtime` parameter, depending on the version of the Node.js runtime you are using. You can use the `az webapp list-runtimes` command to get a list of supported runtimes.
164164

165165
```azurecli-interactive
166-
az webapp create -n <your web app name> -g <your resource group name> -p <your app service plan name> --deployment-local-git
166+
az webapp create -n <your web app name> -g <your resource group name> -p <your app service plan name> --runtime "node|10.6" --deployment-local-git
167167
```
168168

169169
3. Now add Application Settings for the environment variables that specify the IoT hub connection string and the Event hub consumer group. Individual settings are space delimited in the `-settings` parameter. Use the service connection string for your IoT hub and the consumer group you created previously in this tutorial. Don't quote the values.

0 commit comments

Comments
 (0)