Skip to content

Commit 7bea800

Browse files
author
Cephas Lin
committed
validation
1 parent 1300e49 commit 7bea800

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

articles/app-service/tutorial-dotnetcore-sqldb-app.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
title: Deploy ASP.NET Core and Azure SQL Database app
44
description: Learn how to deploy an ASP.NET Core web app to Azure App Service and connect to an Azure SQL Database.
55
ms.topic: tutorial
6-
ms.date: 09/30/2024
6+
ms.date: 09/06/2024
77
author: cephalin
88
ms.author: cephalin
99
ms.devlang: csharp
@@ -31,12 +31,25 @@ In this tutorial, you learn how to:
3131
3232
## Prerequisites
3333

34+
::: zone pivot="azure-portal"
35+
3436
* An Azure account with an active subscription. If you don't have an Azure account, you [can create one for free](https://azure.microsoft.com/free).
3537
* A GitHub account. you can also [get one for free](https://github.com/join).
3638
* Knowledge of ASP.NET Core development.
3739
* **(Optional)** To try GitHub Copilot, a [GitHub Copilot account](https://docs.github.com/copilot/using-github-copilot/using-github-copilot-code-suggestions-in-your-editor). A 30-day free trial is available.
3840

39-
<!-- ## Skip to the end
41+
::: zone-end
42+
43+
::: zone pivot="azure-developer-cli"
44+
45+
* An Azure account with an active subscription. If you don't have an Azure account, you [can create one for free](https://azure.microsoft.com/free/java).
46+
* [Azure Developer CLI](/azure/developer/azure-developer-cli/install-azd) installed. You can follow the steps with the [Azure Cloud Shell](https://shell.azure.com) because it already has Azure Developer CLI installed.
47+
* Knowledge of ASP.NET Core development.
48+
* **(Optional)** To try GitHub Copilot, a [GitHub Copilot account](https://docs.github.com/copilot/using-github-copilot/using-github-copilot-code-suggestions-in-your-editor). A 30-day free trial is available.
49+
50+
::: zone-end
51+
52+
## Skip to the end
4053

4154
You can quickly deploy the sample app in this tutorial and see it running in Azure. Just run the following commands in the [Azure Cloud Shell](https://shell.azure.com), and follow the prompt:
4255

@@ -46,7 +59,6 @@ cd msdocs-app-service-sqldb-dotnetcore
4659
azd init --template msdocs-app-service-sqldb-dotnetcore
4760
azd up
4861
```
49-
-->
5062

5163
## 1. Run the sample
5264

@@ -259,7 +271,7 @@ The creation wizard generated the connectivity string for you already as [.NET c
259271
1. Select **Save**. Wait until the **Update succeeded** notification appears.
260272
:::column-end:::
261273
:::column:::
262-
:::image type="content" source="./media/tutorial-dotnetcore-sqldb-app/azure-portal-secure-connection-secrets-7.png" alt-text="A screenshot showing how to edit the SQL Database service connector with a key vault connection." lightbox="./media/tutorial-dotnetcore-sqldb-app/azure-portal-secure-connection-secrets-7.png":::
274+
:::image type="content" source="./media/tutorial-dotnetcore-sqldb-app/azure-portal-secure-connection-secrets-7.png" alt-text="A screenshot showing how to edit the Cache for Redis service connector with a key vault connection." lightbox="./media/tutorial-dotnetcore-sqldb-app/azure-portal-secure-connection-secrets-7.png":::
263275
:::column-end:::
264276
:::row-end:::
265277
:::row:::
@@ -641,7 +653,7 @@ With the SQL Database protected by the virtual network, the easiest way to run d
641653
1. In the azd output, find the URL for the SSH session and navigate to it in the browser. It looks like this in the output:
642654
643655
<pre>
644-
Open SSH session to App Service container at: https://&lt;app-name>-<hash>.scm.azurewebsites.net/webssh/host
656+
Open SSH session to App Service container at: https://&lt;app-name>-&lt;hash>.scm.azurewebsites.net/webssh/host
645657
</pre>
646658
647659
1. In the SSH terminal, run the following commands:
@@ -759,7 +771,7 @@ Pricing for the created resources is as follows:
759771
760772
### How do I connect to the Azure SQL Database server that's secured behind the virtual network with other tools?
761773
762-
- For basic access from a command-line tool, you can run `sqlcmd` from the app's SSH terminal. The app's container doesn't come with `sqlcmd`, so you must [install it manually](/sql/tools/sqlcmd/sqlcmd-utility?view=sql-server-ver16&tabs=go%2Clinux&pivots=cs1-bash#download-and-install-sqlcmd). Remember that the installed client doesn't persist across app restarts.
774+
- For basic access from a command-line tool, you can run `sqlcmd` from the app's SSH terminal. The app's container doesn't come with `sqlcmd`, so you must [install it manually](/sql/tools/sqlcmd/sqlcmd-utility?tabs=go%2Clinux&pivots=cs1-bash#download-and-install-sqlcmd). Remember that the installed client doesn't persist across app restarts.
763775
- To connect from a SQL Server Management Studio client or from Visual Studio, your machine must be within the virtual network. For example, it could be an Azure VM that's connected to one of the subnets, or a machine in an on-premises network that has a [site-to-site VPN](../vpn-gateway/vpn-gateway-about-vpngateways.md) connection with the Azure virtual network.
764776
765777
### How does local app development work with GitHub Actions?

0 commit comments

Comments
 (0)