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
Azure Cosmos DB is Microsoft's globally distributed multi-model database service. You can quickly create and query document, key/value, and graph databases, all of which benefit from the global distribution and horizontal scale capabilities at the core of Azure Cosmos DB.
25
+
Azure Cosmos DB is Microsoft's globally distributed multi-model database service. You can quickly create and query document, key/value, and graph databases. All of which benefit from the global distribution and horizontal scale capabilities at the core of Azure Cosmos DB.
26
26
27
27
This quickstart demonstrates how to create an Azure Cosmos DB [Gremlin API](graph-introduction.md) account, database, and graph (container) using the Azure portal. You then build and run a console app built using the open-source driver [Gremlin.Net](https://tinkerpop.apache.org/docs/3.2.7/reference/#gremlin-DotNet).
28
28
@@ -56,16 +56,15 @@ Now let's clone a Gremlin API app from GitHub, set the connection string, and ru
56
56
cd"C:\git-samples"
57
57
```
58
58
59
-
3. Run the following command to clone the sample repository. Thiscommand creates a copy of the sample app on your computer.
59
+
3. Run the following command to clone the sample repository. The ``git clone``command creates a copy of the sample app on your computer.
4. Then open Visual Studio and open the solution file.
66
66
67
-
5. Restore the NuGet packages in the project. This should include the Gremlin.Net driver, and the Newtonsoft.Json package.
68
-
67
+
5. Restore the NuGet packages in the project. The restore operation should include the Gremlin.Net driver, and the Newtonsoft.Json package.
69
68
70
69
6. You can also install the [email protected] driver manually using the NuGet package manager, or the [NuGet command-line utility](/nuget/install-nuget-client-tools):
71
70
@@ -110,16 +109,27 @@ Now go back to the Azure portal to get your connection string information and co
110
109
111
110
:::image type="content" source="./media/create-graph-dotnet/endpoint.png" alt-text="Copy the endpoint":::
112
111
113
-
To run this sample, copy the **Gremlin Endpoint**value, delete the port number at the end, that is the URI becomes `https://<your cosmos db account name>.gremlin.cosmosdb.azure.com`. The endpoint value should look like `testgraphacct.gremlin.cosmosdb.azure.com`
112
+
For this sample, record the *Host*value of the **Gremlin Endpoint**. For example, ifthe URI is ``https://graphtest.gremlin.cosmosdb.azure.com``, the *Host* value would be ``graphtest.gremlin.cosmosdb.azure.com``.
114
113
115
-
1. Next, navigate to the **Keys** tab and copy the **PRIMARY KEY** value from the Azure portal.
114
+
1. Next, navigate to the **Keys** tab and record the *PRIMARY KEY* value from the Azure portal.
116
115
117
-
1. After you've copied the URI and PRIMARY KEY of your account, save them to a new environment variable on the local machine running the application. To set the environment variable, open a command prompt window, and run the following command. Make sure to replace <Your_Azure_Cosmos_account_URI> and <Your_Azure_Cosmos_account_PRIMARY_KEY> values.
116
+
1. After you've copied the URI and PRIMARY KEY of your account, save them to a new environment variable on the local machine running the application. To set the environment variable, open a command prompt window, and run the following command. Make sure to replace ``<cosmos-account-name>`` and ``<cosmos-account-primary-key>`` values.
1. Open the *Program.cs* file and update the "database and "container" variables with the database and container (which is also the graph name) names created above.
0 commit comments