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/cosmos-db/create-website.md
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,19 +8,19 @@ ms.date: 06/19/2020
8
8
ms.author: mjbrown
9
9
10
10
---
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
12
12
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).
14
14
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.
16
16
17
17
* Deploy an Azure Cosmos DB account.
18
18
* Deploy an Azure App Service Hosting Plan.
19
19
* 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.
21
21
* Deploy a web application from a GitHub repository to the App Service.
22
22
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.
24
24
25
25
## Prerequisites
26
26
@@ -29,25 +29,25 @@ The resulting deployment will have a fully functional web application that can c
29
29
30
30
## Step 1: Deploy the template
31
31
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)
33
33
34
-
[](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)
35
35
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.
37
37
38
38

39
39
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.
43
43
***App Service Plan Tier** - App Service Plan's pricing tier.
44
44
***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.
46
46
***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.
49
49
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.
51
51
52
52
> [!TIP]
53
53
> 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
57
57
58
58
### View the deployed resources
59
59
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.
### View the Azure Cosmos DB keys in application settings
71
71
72
72
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.
0 commit comments