Skip to content

Commit 9f804c3

Browse files
Apply suggestions from code review
Co-authored-by: Sneha Gunda <sngun@microsoft.com>
1 parent 0acc951 commit 9f804c3

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

articles/cosmos-db/create-website.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ ms.date: 06/19/2020
88
ms.author: mjbrown
99

1010
---
11-
# Deploy Azure Cosmos DB and Azure App Service with a web app from Git Hub using an Azure Resource Manager Template
11+
# Deploy Azure Cosmos DB and Azure App Service with a web app from GitHub using an Azure Resource Manager Template
1212

13-
This tutorial shows you how to do a "no touch" deployment of a web application that connects to Azure Cosmos DB on first run without having to cut and paste any connection information from Cosmos DB to `appsettings.json` or to Azure App Services Application Settings in the Azure Portal. This can all be accomplished using an Azure Resource Manager template in a single operation. In the example here we will deploy the [Cosmos DB To Do Sample](https://github.com/Azure-Samples/cosmos-dotnet-core-todo-app) from our [Web App Tutorial](sql-api-dotnet-application.md).
13+
This tutorial shows you how to do a "no touch" deployment of a web application that connects to Azure Cosmos DB on first run without having to cut and paste any connection information from Azure Cosmos DB to `appsettings.json` or to the Azure App Services application settings in the Azure portal. All these actions are accomplished using an Azure Resource Manager template in a single operation. In the example here we will deploy the [Azure Cosmos DB ToDo sample](https://github.com/Azure-Samples/cosmos-dotnet-core-todo-app) from a [Web app tutorial](sql-api-dotnet-application.md).
1414

15-
Azure Resource Manager templates, are quite flexible and allow you to compose complex deployments across any service in Azure. This includes advanced tasks such as deploying applications from GitHub and injecting connection information into Azure App Service's Application Settings in the Azure Portal. This tutorial will show you how to do the following things using a single Azure Resource Manager template.
15+
Resource Manager templates, are quite flexible and allow you to compose complex deployments across any service in Azure. This includes advanced tasks such as deploying applications from GitHub and injecting connection information into Azure App Service's application settings in the Azure portal. This tutorial will show you how to do the following things using a single Resource Manager template.
1616

1717
* Deploy an Azure Cosmos DB account.
1818
* Deploy an Azure App Service Hosting Plan.
1919
* Deploy an Azure App Service.
20-
* Inject the endpoint and keys from the Cosmos DB account into the App Service Application Settings in the Azure Portal.
20+
* Inject the endpoint and keys from the Azure Cosmos account into the App Service application settings in the Azure Portal.
2121
* Deploy a web application from a GitHub repository to the App Service.
2222

23-
The resulting deployment will have a fully functional web application that can connect to Cosmos DB without ever having to cut and paste the Cosmos DB endpoint uri or authentication keys from the Azure Portal.
23+
The resulting deployment has a fully functional web application that can connect to Azure Cosmos DB without having to cut and paste the Azure Cosmos DB's endpoint URL or authentication keys from the Azure portal.
2424

2525
## Prerequisites
2626

@@ -29,25 +29,25 @@ The resulting deployment will have a fully functional web application that can c
2929
3030
## Step 1: Deploy the template
3131

32-
First, click the **Deploy to Azure** button below to open the Azure portal to create a custom deployment. You can also view the Azure Resource Management template from the [Azure Quickstart Templates Gallery](https://github.com/Azure/azure-quickstart-templates/tree/master/101-cosmosdb-webapp)
32+
First, select the **Deploy to Azure** button below to open the Azure portal to create a custom deployment. You can also view the Azure Resource Management template from the [Azure Quickstart Templates Gallery](https://github.com/Azure/azure-quickstart-templates/tree/master/101-cosmosdb-webapp)
3333

34-
[![Deploy To Azure](https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/1-CONTRIBUTION-GUIDE/images/deploytoazure.svg?sanitize=true)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-cosmosdb-webapp%2Fazuredeploy.json)
34+
[:::image type="content" source="../media/template-deployments/deploy-to-azure.svg" alt-text="Deploy to Azure":::](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-cosmosdb-webapp%2Fazuredeploy.json)
3535

36-
Once in the Azure Portal you will need to select the subscription to deploy into and select or create a new resource group. Then fill in the following values.
36+
Once in the Azure Portal, select the subscription to deploy into and select or create a new resource group. Then fill in the following values.
3737

3838
![Screenshot of the template deployment UI](./media/create-website/template-deployment.png)
3939

40-
* **Region** - This is required by ARM. Enter the same region used by Location where your resources will be located.
41-
* **Application Name** - This name will be used by all the resources for this deployment. Make sure to choose a unique name to avoid conflicts with existing Cosmos DB and App Service accounts.
42-
* **Location** - The region where your resources will be deployed.
40+
* **Region** - This is required by the Resource Manager. Enter the same region used by the location parameter where your resources are located.
41+
* **Application Name** - This name is used by all the resources for this deployment. Make sure to choose a unique name to avoid conflicts with existing Azure Cosmos DB and App Service accounts.
42+
* **Location** - The region where your resources are deployed.
4343
* **App Service Plan Tier** - App Service Plan's pricing tier.
4444
* **App Service Plan Instances** - The number of workers for the app service plan.
45-
* **Repository URL** - The repository to the web application on Git Hub.
45+
* **Repository URL** - The repository to the web application on GitHub.
4646
* **Branch** - The branch for the GitHub repository.
47-
* **Database Name** - The Cosmos DB database name.
48-
* **Container Name** - The Cosmos DB container name.
47+
* **Database Name** - The Azure Cosmos database name.
48+
* **Container Name** - The Azure Cosmos container name.
4949

50-
After filling in the values, click the Create button to start the deployment. This step should take between 5 and 10 minutes to complete.
50+
After filling in the values, select the **Create** button to start the deployment. This step should take between 5 and 10 minutes to complete.
5151

5252
> [!TIP]
5353
> The template does not validate that the Azure App Service name and Azure Cosmos DB account name entered in the template are valid and available. It is highly recommended that you verify the availability of the names you plan to supply prior to submitting the deployment.
@@ -57,17 +57,17 @@ After filling in the values, click the Create button to start the deployment. Th
5757

5858
### View the deployed resources
5959

60-
Once the template has completed deploying the resources, you can now see each of them in your resource group.
60+
After the template has deployed the resources, you can now see each of them in your resource group.
6161

6262
![Resource Group](./media/create-website/resource-group.png)
6363

6464
### View Cosmos DB endpoint and keys
6565

66-
Next, open the Cosmos DB account in the portal. Below you can see the endpoint and keys for this Cosmos DB account.
66+
Next, open the Azure Cosmos DB account in the portal. The following screenshot shows the endpoint and keys for an Azure Cosmos DB account.
6767

6868
![Cosmos Keys](./media/create-website/cosmos-keys.png)
6969

70-
### View Cosmos DB keys in Application Settings
70+
### View the Azure Cosmos DB keys in application settings
7171

7272
Next, navigate to the Azure App Service in the resource group. Click the Configuration tab to view the Application Settings for the App Service. The Application Settings contains the Cosmos DB account and primary key values necessary to connect to Cosmos DB as well as the database and container names that were passed in from the template deployment.
7373

0 commit comments

Comments
 (0)