Skip to content

Commit 8bf96ce

Browse files
committed
Edits4
1 parent cb3738c commit 8bf96ce

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ In this step, you configure GitHub deployment using GitHub Actions. It's just on
354354
**Step 2 (Option 1: with GitHub Copilot):**
355355
1. Start a new chat session by selecting the **Chat** view, then selecting **+**.
356356
1. Ask, "*@workspace How does the app connect to the database and the cache?*" Copilot might give you some explanation about the `MyDatabaseContext` class and how it's configured in *Program.cs*.
357-
1. Ask, "In production mode, I want the app to use the connection string called AZURE_SQL_CONNECTIONSTRING for the database and the app setting called AZURE_REDIS_CONNECTIONSTRING." Copilot might give you a code suggestion similar to the one in the **Option 2: without GitHub Copilot** steps below and even tell you to make the change in the *Program.cs* file.
357+
1. Ask, "In production mode, I want the app to use the connection string called AZURE_SQL_CONNECTIONSTRING for the database and the app setting called AZURE_REDIS_CONNECTIONSTRING." Copilot might give you a code suggestion similar to the one in the **Option 2: without GitHub Copilot** steps that follow and even tell you to make the change in the *Program.cs* file.
358358
1. Open *Program.cs* in the explorer and add the code suggestion.
359359
GitHub Copilot doesn't give you the same response every time, and it's not always correct. You might need to ask more questions to fine-tune its response. For tips, see [What can I do with GitHub Copilot in my codespace?](#what-can-i-do-with-github-copilot-in-my-codespace).
360360
:::column-end:::
@@ -376,7 +376,7 @@ In this step, you configure GitHub deployment using GitHub Actions. It's just on
376376
:::row:::
377377
:::column span="2":::
378378
**Step 3 (Option 1: with GitHub Copilot):**
379-
1. Open *.github/workflows/starter-no-infra_msdocs-core-sql-XYZ* in the explorer. This file was created by the App Service create wizard.
379+
1. Open *.github/workflows/starter-no-infra_msdocs-core-sql-XYZ* in the explorer. The App Service create wizard created this file.
380380
1. Highlight the `dotnet publish` step and select :::image type="icon" source="media/quickstart-dotnetcore/github-copilot-in-editor.png" border="false":::.
381381
1. Ask Copilot, "*Install dotnet ef, then create a migrations bundle in the same output folder.*"
382382
1. If the suggestion is acceptable, select **Accept**.
@@ -389,7 +389,7 @@ In this step, you configure GitHub deployment using GitHub Actions. It's just on
389389
:::row:::
390390
:::column span="2":::
391391
**Step 3 (Option 2: without GitHub Copilot):**
392-
1. Open *.github/workflows/starter-no-infra_msdocs-core-sql-XYZ* in the explorer. This file was created by the App Service create wizard.
392+
1. Open *.github/workflows/starter-no-infra_msdocs-core-sql-XYZ* in the explorer. The App Service create wizard created this file
393393
1. Under the `dotnet publish` step, add a step to install the [Entity Framework Core tool](/ef/core/cli/dotnet) with the command `dotnet tool install -g dotnet-ef --version 8.*`.
394394
1. Under the new step, add another step to generate a database [migration bundle](/ef/core/managing-schemas/migrations/applying?tabs=dotnet-core-cli#bundles) in the deployment package: `dotnet ef migrations bundle --runtime linux-x64 -o ${{env.DOTNET_ROOT}}/myapp/migrationsbundle`.
395395
The migration bundle is a self-contained executable that you can run in the production environment without needing the .NET SDK. The App Service linux container only has the .NET runtime and not the .NET SDK.
@@ -484,7 +484,7 @@ Having issues? Check the [Troubleshooting section](#troubleshooting).
484484
:::row-end:::
485485

486486
> [!TIP]
487-
> The sample application implements the [cache-aside](/azure/architecture/patterns/cache-aside) pattern. When you visit a data view for the second time, or reload the same page after making data changes, **Processing time** in the webpage shows a much faster time because it's loading the data from the cache instead of the database.
487+
> The sample application implements the [cache-aside](/azure/architecture/patterns/cache-aside) pattern. When you visit a data view for the second time, or reload the same page after making data changes, **Processing time** in the webpage shows a faster time because it's loading the data from the cache instead of the database.
488488
489489
## 7. Stream diagnostic logs
490490

@@ -563,7 +563,7 @@ The dev container already has the [Azure Developer CLI](/azure/developer/azure-d
563563

564564
|Question |Answer |
565565
|---------|---------|
566-
|The current directory is not empty. Would you like to initialize a project here in '\<your-directory>'? | **Y** |
566+
|The current directory isn't empty. Would you like to initialize a project here in '\<your-directory>'? | **Y** |
567567
|What would you like to do with these files? | **Keep my existing files unchanged** |
568568
|Enter a new environment name | Type a unique name. The AZD template uses this name as part of the DNS name of your web app in Azure (`<app-name>-<hash>.azurewebsites.net`). Alphanumeric characters and hyphens are allowed. |
569569
@@ -630,7 +630,7 @@ Having issues? Check the [Troubleshooting section](#troubleshooting).
630630
631631
1. Ask, "*@workspace How does the app connect to the database and the cache?*" Copilot might give you some explanation about the `MyDatabaseContext` class and how it's configured in *Program.cs*.
632632

633-
1. Ask, "In production mode, I want the app to use the connection string called AZURE_SQL_CONNECTIONSTRING for the database and the app setting called AZURE_REDIS_CONNECTIONSTRING*." Copilot might give you a code suggestion similar to the one in the **Option 2: without GitHub Copilot** steps below and even tell you to make the change in the *Program.cs* file.
633+
1. Ask, "In production mode, I want the app to use the connection string called AZURE_SQL_CONNECTIONSTRING for the database and the app setting called AZURE_REDIS_CONNECTIONSTRING*." Copilot might give you a code suggestion similar to the one in the **Option 2: without GitHub Copilot** steps that follow and even tell you to make the change in the *Program.cs* file.
634634

635635
1. Open *Program.cs* in the explorer and add the code suggestion.
636636

@@ -736,7 +736,7 @@ In the AZD output, find the link to stream App Service logs and navigate to it i
736736
Stream App Service logs at: &lt;URL>
737737
</pre>
738738
739-
Learn more about logging in .NET apps in the series on [Enable Azure Monitor OpenTelemetry for .NET, Node.js, Python and Java applications](/azure/azure-monitor/app/opentelemetry-enable?tabs=aspnetcore).
739+
Learn more about logging in .NET apps in the series on [Enable Azure Monitor OpenTelemetry for .NET, Node.js, Python, and Java applications](/azure/azure-monitor/app/opentelemetry-enable?tabs=aspnetcore).
740740
741741
Having issues? Check the [Troubleshooting section](#troubleshooting).
742742
@@ -828,7 +828,7 @@ See [Set up GitHub Actions deployment from the Deployment Center](deploy-github-
828828
829829
### How do I change the SQL Database connection to use a managed identity instead?
830830
831-
The default connection string to the SQL database is managed by Service Connector, with the name *defaultConnector*, and it uses SQL authentication. To replace it with a connection that uses a managed identity, run the following commands in the [cloud shell](https://shell.azure.com) after replacing the placeholders:
831+
Service Connector manages the default connection string to the SQL database, with the name *defaultConnector*, and it uses SQL authentication. To replace it with a connection that uses a managed identity, run the following commands in the [cloud shell](https://shell.azure.com) after replacing the placeholders:
832832
833833
```azurecli-interactive
834834
az extension add --name serviceconnector-passwordless --upgrade

0 commit comments

Comments
 (0)