Skip to content

Commit 1620653

Browse files
committed
update linux quickstart
1 parent 2ad278c commit 1620653

File tree

4 files changed

+39
-32
lines changed

4 files changed

+39
-32
lines changed

articles/app-service/app-service-web-get-started-dotnet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "Quickstart: Create a C# ASP.NET Core app"
33
description: Learn how to run web apps in Azure App Service by deploying the default C# ASP.NET Core web app template from Visual Studio.
44
ms.assetid: b1e6bd58-48d1-4007-9d6c-53fd6db061e3
55
ms.topic: quickstart
6-
ms.date: 03/17/2020
6+
ms.date: 04/22/2020
77
ms.custom: mvc, devcenter, vs-azure, seodec18
88
---
99

@@ -102,7 +102,7 @@ Follow these steps to update and redeploy your web app:
102102

103103
1. In **Solution Explorer**, under your project, open **Pages** > **Index.cshtml**.
104104

105-
1. Replace the two `<div>` tags with the following code:
105+
1. Replace the entire `<div>` tag with the following code:
106106

107107
```HTML
108108
<div class="jumbotron">
-207 KB
Loading

articles/app-service/containers/quickstart-dotnetcore.md

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ keywords: azure app service, web app, dotnet, core, linux, oss
55
ms.assetid: c02959e6-7220-496a-a417-9b2147638e2e
66
ms.tgt_pltfrm: linux
77
ms.topic: quickstart
8-
ms.date: 03/27/2019
8+
ms.date: 04/22/2020
99
ms.custom: mvc, cli-validate, seodec18
1010
---
1111

@@ -28,7 +28,7 @@ You can follow the steps in this article using a Mac, Windows, or Linux machine.
2828
To complete this quickstart:
2929

3030
* <a href="https://git-scm.com/" target="_blank">Install Git</a>
31-
* <a href="https://www.microsoft.com/net/core/" target="_blank">Install .NET Core</a>
31+
* <a href="https://dotnet.microsoft.com/download/dotnet-core/3.1" target="_blank">Install the latest .NET Core SDK 3.1</a>
3232

3333
## Create the app locally
3434

@@ -84,7 +84,7 @@ git commit -m "first commit"
8484
Browse to your newly created app. Replace _&lt;app-name>_ with your app name.
8585

8686
```bash
87-
http://<app-name>.azurewebsites.net
87+
https://<app-name>.azurewebsites.net
8888
```
8989

9090
Here is what your new app should look like:
@@ -94,32 +94,30 @@ Here is what your new app should look like:
9494
[!INCLUDE [Push to Azure](../../../includes/app-service-web-git-push-to-azure.md)]
9595

9696
```bash
97-
Counting objects: 22, done.
98-
Delta compression using up to 8 threads.
99-
Compressing objects: 100% (18/18), done.
100-
Writing objects: 100% (22/22), 51.21 KiB | 3.94 MiB/s, done.
101-
Total 22 (delta 1), reused 0 (delta 0)
97+
Enumerating objects: 5, done.
98+
Counting objects: 100% (5/5), done.
99+
Compressing objects: 100% (3/3), done.
100+
Writing objects: 100% (3/3), 285 bytes | 95.00 KiB/s, done.
101+
Total 3 (delta 2), reused 0 (delta 0), pack-reused 0
102+
remote: Deploy Async
102103
remote: Updating branch 'master'.
103104
remote: Updating submodules.
104-
remote: Preparing deployment for commit id '741f16d1db'.
105-
remote: Generating deployment script.
106-
remote: Project file path: ./hellodotnetcore.csproj
107-
remote: Generated deployment script files
108-
remote: Running deployment command...
109-
remote: Handling ASP.NET Core Web Application deployment.
110-
remote: ...............................................................................................
111-
remote: Restoring packages for /home/site/repository/hellodotnetcore.csproj...
112-
remote: ....................................
113-
remote: Installing System.Xml.XPath 4.0.1.
114-
remote: Installing System.Diagnostics.Tracing 4.1.0.
115-
remote: Installing System.Threading.Tasks.Extensions 4.0.0.
116-
remote: Installing System.Reflection.Emit.ILGeneration 4.0.1.
117-
remote: ...
118-
remote: Finished successfully.
119-
remote: Running post deployment command(s)...
105+
remote: Preparing deployment for commit id 'd6b54472f7'.
106+
remote: Repository path is /home/site/repository
107+
remote: Running oryx build...
108+
remote: Build orchestrated by Microsoft Oryx, https://github.com/Microsoft/Oryx
109+
remote: You can report issues at https://github.com/Microsoft/Oryx/issues
110+
remote:
111+
remote: Oryx Version : 0.2.20200114.13, Commit: 204922f30f8e8d41f5241b8c218425ef89106d1d, ReleaseTagName: 20200114.13
112+
remote: Build Operation ID: |imoMY2y77/s=.40ca2a87_
113+
remote: Repository Commit : d6b54472f7e8e9fd885ffafaa64522e74cf370e1
114+
.
115+
.
116+
.
120117
remote: Deployment successful.
121-
To https://<app-name>.scm.azurewebsites.net/<app-name>.git
122-
* [new branch] master -> master
118+
remote: Deployment Logs : 'https://<app-name>.scm.azurewebsites.net/newui/jsonviewer?view_url=/api/deployments/d6b54472f7e8e9fd885ffafaa64522e74cf370e1/log'
119+
To https://<app-name>.scm.azurewebsites.net:443/<app-name>.git
120+
d87e6ca..d6b5447 master -> master
123121
```
124122

125123
## Browse to the app

includes/app-service-web-create-web-app-dotnetcore-linux-no-h.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ services: app-service
55
author: cephalin
66
ms.service: app-service
77
ms.topic: "include"
8-
ms.date: 08/06/2019
8+
ms.date: 04/22/2020
99
ms.author: cephalin
1010
ms.custom: "include file"
1111
---
1212

1313
Create a [web app](../articles/app-service/containers/app-service-linux-intro.md) in the `myAppServicePlan` App Service plan.
1414

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).
1616

1717
```azurecli-interactive
1818
# Bash
19-
az webapp create --resource-group myResourceGroup --plan myAppServicePlan --name <app-name> --runtime "DOTNETCORE|2.2" --deployment-local-git
19+
az webapp create --resource-group myResourceGroup --plan myAppServicePlan --name <app-name> --runtime "DOTNETCORE|LTS" --deployment-local-git
2020
# PowerShell
21-
az --% webapp create --resource-group myResourceGroup --plan myAppServicePlan --name <app-name> --runtime "DOTNETCORE|2.2" --deployment-local-git
21+
az --% webapp create --resource-group myResourceGroup --plan myAppServicePlan --name <app-name> --runtime "DOTNETCORE|LTS" --deployment-local-git
2222
```
2323

2424
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
4444
> [!NOTE]
4545
> 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.
4646
>
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"
55+
```

0 commit comments

Comments
 (0)