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: articles/app-service/tutorial-dotnetcore-sqldb-app.md
+18-6Lines changed: 18 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
title: Deploy ASP.NET Core and Azure SQL Database app
4
4
description: Learn how to deploy an ASP.NET Core web app to Azure App Service and connect to an Azure SQL Database.
5
5
ms.topic: tutorial
6
-
ms.date: 09/30/2024
6
+
ms.date: 09/06/2024
7
7
author: cephalin
8
8
ms.author: cephalin
9
9
ms.devlang: csharp
@@ -31,12 +31,25 @@ In this tutorial, you learn how to:
31
31
32
32
## Prerequisites
33
33
34
+
::: zone pivot="azure-portal"
35
+
34
36
* 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).
35
37
* A GitHub account. you can also [get one for free](https://github.com/join).
36
38
* Knowledge of ASP.NET Core development.
37
39
***(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.
38
40
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
40
53
41
54
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:
42
55
@@ -46,7 +59,6 @@ cd msdocs-app-service-sqldb-dotnetcore
@@ -259,7 +271,7 @@ The creation wizard generated the connectivity string for you already as [.NET c
259
271
1. Select **Save**. Wait until the **Update succeeded** notification appears.
260
272
:::column-end:::
261
273
:::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":::
263
275
:::column-end:::
264
276
:::row-end:::
265
277
:::row:::
@@ -641,7 +653,7 @@ With the SQL Database protected by the virtual network, the easiest way to run d
641
653
1. In the azd output, find the URL forthe SSH session and navigate to itin the browser. It looks like this in the output:
642
654
643
655
<pre>
644
-
Open SSH session to App Service container at: https://<app-name>-<hash>.scm.azurewebsites.net/webssh/host
656
+
Open SSH session to App Service container at: https://<app-name>-<hash>.scm.azurewebsites.net/webssh/host
645
657
</pre>
646
658
647
659
1. In the SSH terminal, run the following commands:
@@ -759,7 +771,7 @@ Pricing for the created resources is as follows:
759
771
760
772
### How do I connect to the Azure SQL Database server that's secured behind the virtual network with other tools?
761
773
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.
763
775
- 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.
764
776
765
777
### How does local app development work with GitHub Actions?
0 commit comments