You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: includes/app-service-web-create-web-app-dotnetcore-linux-no-h.md
+13-4Lines changed: 13 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,20 +5,20 @@ services: app-service
5
5
author: cephalin
6
6
ms.service: app-service
7
7
ms.topic: "include"
8
-
ms.date: 08/06/2019
8
+
ms.date: 04/22/2020
9
9
ms.author: cephalin
10
10
ms.custom: "include file"
11
11
---
12
12
13
13
Create a [web app](../articles/app-service/containers/app-service-linux-intro.md) in the `myAppServicePlan` App Service plan.
14
14
15
-
In the Cloud Shell, you can use the [`az webapp create`](/cli/azure/webapp?view=azure-cli-latest) command. In the following example, replace `<app-name>` with a globally unique app name (valid characters are `a-z`, `0-9`, and `-`). The runtime is set to `DOTNETCORE|2.2`. To see all supported runtimes, run [`az webapp list-runtimes --linux`](/cli/azure/webapp?view=azure-cli-latest).
15
+
In the Cloud Shell, you can use the [`az webapp create`](/cli/azure/webapp?view=azure-cli-latest) command. In the following example, replace `<app-name>` with a globally unique app name (valid characters are `a-z`, `0-9`, and `-`). The runtime is set to `DOTNETCORE|LTS`, which is .NET Core 3.1. To see all supported runtimes, run [`az webapp list-runtimes --linux`](/cli/azure/webapp?view=azure-cli-latest).
When the web app has been created, the Azure CLI shows output similar to the following example:
@@ -44,3 +44,12 @@ You’ve created an empty web app in a Linux container, with git deployment enab
44
44
> [!NOTE]
45
45
> The URL of the Git remote is shown in the `deploymentLocalGitUrl` property, with the format `https://<username>@<app-name>.scm.azurewebsites.net/<app-name>.git`. Save this URL as you need it later.
46
46
>
47
+
48
+
Currently, you need to run the following extra command to configure the .NET Core version properly (replace `<app-name>` with the one from the previous step):
49
+
50
+
```azurecli-interactive
51
+
# Bash
52
+
az webapp config set --resource-group myResourceGroup --name <app-name> --linux-fx-version "DOTNETCORE|3.1.0"
53
+
# PowerShell
54
+
az --% webapp config set --resource-group myResourceGroup --name <app-name> --linux-fx-version "DOTNETCORE|3.1.0"
0 commit comments