Skip to content

Commit 33fadf0

Browse files
committed
not working
1 parent e763662 commit 33fadf0

File tree

3 files changed

+9
-14
lines changed

3 files changed

+9
-14
lines changed

articles/app-service/app-service-web-tutorial-dotnet-sqldatabase.md

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Before you can create a database, you need a [logical SQL server](/azure/azure-s
123123

124124
1. On the **Azure SQL Database** screen, next to **Database server**, select **New**.
125125

126-
Change the server name to a value you want. The server name is used as part of the default URL for your server, `<server_name>.database.windows.net`. It must be unique across all servers in Azure SQL.
126+
Change the server name to a value you want. The server name is part of the default URL for your server, `<server_name>.database.windows.net`. It must be unique across all servers in Azure SQL.
127127

128128
1. Add an administrator username and password. For password requirements, see [Password policy](/sql/relational-databases/security/password-policy).
129129

@@ -144,16 +144,16 @@ Before you can create a database, you need a [logical SQL server](/azure/azure-s
144144

145145
1. When the database resources are created, select **Next**.
146146

147-
1. Under **Connection string Name**, enter the name of the connection string referenced in *Models/MyDatabaseContext.cs*, in this case *MyDbConnection*.
148-
149-
1. Select **Next**, and then select **Finish**.
147+
1. Under **Connection string name**, enter the name of the connection string referenced in *Models/MyDatabaseContext.cs*, in this case *MyDbConnection*.
150148

151149
> [!NOTE]
152150
> If you see **Local user secrets files** instead, you might have configured SQL Database from the **Connected Services** page instead of the **Publish** page.
153151
152+
1. Select **Additional settings**, make sure **Azure App Settings** is selected, and select **Finish**.
153+
154154
### Deploy the ASP.NET app
155155

156-
1. At the top of the **Publish** tab, select **Publish**. Your ASP.NET app deploys to Azure, and your default browser launches to the URL of the deployed app.
156+
1. When the connection succeeds, at the top of the **Publish** tab, select **Publish**. Your ASP.NET app deploys to Azure, and your default browser launches to the URL of the deployed app.
157157

158158
1. Add a few to-do items.
159159

@@ -174,17 +174,12 @@ Congratulations! Your data-driven ASP.NET application is running live in Azure A
174174

175175
1. At the top of the **SQL Server Object Explorer** window, select the icon to **Add SQL Server**.
176176

177-
### Configure the database connection
178-
179-
1. In the **Connect** dialog, expand the **Azure** node to view all your Azure SQL Database instances.
180-
181-
1. Select the database you created earlier. The connection you created earlier is automatically filled at the bottom.
182-
183-
1. Type your database administrator password and select **Connect**.
177+
1. On the **Connect** screen, your connection appears under the **Azure** node. Fill in the information for your **Server Name**, **User Name**, **Password**, and **Database Name**, and select **Connect**.
184178

185179
![Screenshot that shows configuring the database connection from Visual Studio.](./media/app-service-web-tutorial-dotnet-sqldatabase/connect-to-sql-database.png)
186180

187-
### Allow client connection from your computer
181+
182+
<!--### Allow client connection from your computer
188183
189184
The **Create a new firewall rule** dialog opens. By default, a server allows connections to its databases only from Azure services, such as your Azure app. To connect to your database from outside of Azure, create a firewall rule at the server level.
190185
@@ -195,7 +190,7 @@ This firewall rule allows the public IP address of your local computer. The dial
195190
![Screenshot that shows creating the firewall rule.](./media/app-service-web-tutorial-dotnet-sqldatabase/sql-set-firewall.png)
196191
197192
Once Visual Studio finishes creating the firewall setting for your SQL Database instance, your connection appears in **SQL Server Object Explorer**.
198-
193+
-->
199194
In **SQL Server Object Explorer**, you can perform most common database operations, such as running queries or creating views and stored procedures.
200195

201196
Expand your connection's > **Databases** > **\<your database>** > **Tables**. Right-click the `Todoes` table and select **View Data**.
-1.09 KB
Loading
23.2 KB
Loading

0 commit comments

Comments
 (0)