Skip to content

Commit d9b3493

Browse files
authored
Merge pull request MicrosoftDocs#28920 from MarkMcGeeAtAquent/table-api-quickstarts
Cosmos DB: Table API quickstart updates
2 parents 53c64b8 + 2be514b commit d9b3493

12 files changed

+46
-25
lines changed

articles/cosmos-db/create-table-dotnet.md

Lines changed: 45 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ms.workload:
1414
ms.tgt_pltfrm: na
1515
ms.devlang: dotnet
1616
ms.topic: quickstart
17-
ms.date: 11/20/2017
17+
ms.date: 12/01/2017
1818
ms.author: mimig
1919

2020
---
@@ -33,7 +33,7 @@ If you don’t already have Visual Studio 2017 installed, you can download and u
3333
## Create a database account
3434

3535
> [!IMPORTANT]
36-
> You need to create a new Table API account to work with the generally available Table API SDKs. Table API accounts created during preview are not supported by the generally available SDKs.
36+
> You must create a new Table API account to work with the generally available Table API SDKs. Table API accounts created during preview are not supported by the generally available SDKs.
3737
>
3838
3939
[!INCLUDE [cosmos-db-create-dbaccount-table](../../includes/cosmos-db-create-dbaccount-table.md)]
@@ -49,17 +49,17 @@ You can now add data to your new table using Data Explorer.
4949
1. In Data Explorer, expand **sample-table**, click **Entities**, and then click **Add Entity**.
5050

5151
![Create new entities in Data Explorer in the Azure portal](./media/create-table-dotnet/azure-cosmosdb-data-explorer-new-document.png)
52-
2. Now add data to the PartitionKey value box and RowKey value boxes, and click **Add Entity**.
52+
2. Now add data to the PartitionKey value box and RowKey value box, and click **Add Entity**.
5353

5454
![Set the Partition Key and Row Key for a new entity](./media/create-table-dotnet/azure-cosmosdb-data-explorer-new-entity.png)
5555

56-
You can now add more entities to your table, edit your entities, or query your data in Data Explorer. Data Explorer is also where you can scale your throughput and add stored procedures, user defined functions, and triggers to your table.
56+
You can now add more entities to your table, edit your entities, or query your data in Data Explorer. Data Explorer is also where you can scale your throughput and add stored procedures, user-defined functions, and triggers to your table.
5757

5858
## Clone the sample application
5959

60-
Now let's clone a Table app from github, set the connection string, and run it. You'll see how easy it is to work with data programmatically.
60+
Now let's clone a Table app from GitHub, set the connection string, and run it. You'll see how easy it is to work with data programmatically.
6161

62-
1. Open a git terminal window, such as git bash, and use the `cd` command to change to a folder to install the sample app.
62+
1. Open a Git terminal window, such as Git Bash, and use the `cd` command to change to a folder to install the sample app.
6363

6464
```bash
6565
cd "C:\git-samples"
@@ -70,71 +70,92 @@ Now let's clone a Table app from github, set the connection string, and run it.
7070
```bash
7171
git clone https://github.com/Azure-Samples/storage-table-dotnet-getting-started.git
7272
```
73+
## Open the sample application in Visual Studio
7374

74-
3. Then open the TableStorage solution file in Visual Studio.
75+
1. In Visual Studio, from the **File** menu, choose **Open**, then choose **Project/Solution**.
76+
77+
![Open the solution](media/create-table-dotnet/azure-cosmosdb-open-solution.png)
78+
79+
2. Navigate to the folder where you cloned the sample application, and open the TableStorage.sln file.
80+
81+
![Open the cloned application](media/create-table-dotnet/azure-cosmos-db-open-clone.png)
7582

7683
## Update your connection string
7784

7885
Now go back to the Azure portal to get your connection string information and copy it into the app. This enables your app to communicate with your hosted database.
7986

8087
1. In the [Azure portal](http://portal.azure.com/), click **Connection String**.
8188

82-
Use the copy buttons on the right side of the screen to copy the PRIMARY CONNECTION STRING.
89+
Use the copy button on the right side of the window to copy the **PRIMARY CONNECTION STRING**.
8390

8491
![View and copy the PRIMARY CONNECTION STRING in the Connection String pane](./media/create-table-dotnet/connection-string.png)
8592

8693
2. In Visual Studio, open the App.config file.
8794

88-
3. Uncomment the StorageConnectionString on line 8 and comment out the StorageConnectionString on line 7 as this tutorial does not use the Storage Emulator. Line 7 and 8 should now look like this:
95+
3. Uncomment the StorageConnectionString on line 8 and comment out the StorageConnectionString on line 7, because this tutorial does not use the Azure SDK Storage Emulator. Lines 7 and 8 should now look like this:
8996

9097
```
9198
<!--key="StorageConnectionString" value="UseDevelopmentStorage=true;" />-->
9299
<add key="StorageConnectionString" value="DefaultEndpointsProtocol=https;AccountName=[AccountName];AccountKey=[AccountKey]" />
93100
```
94101

95-
4. Paste the PRIMARY CONNECTION STRING from the portal into the StorageConnectionString value on line 8. Paste the string inside the quotes.
102+
4. Paste the **PRIMARY CONNECTION STRING** from the portal into the StorageConnectionString value on line 8. Paste the string inside the quotes.
96103

97104
> [!IMPORTANT]
98-
> If your Endpoint uses documents.azure.com, that means you have a preview account, and you need to create a [new Table API account](#create-a-database-account) to work with the generally available Table API SDK.
105+
> If your Endpoint uses documents.azure.com, that means you have a preview account, and you must create a [new Table API account](#create-a-database-account) to work with the generally available Table API SDK.
99106
>
100107

101-
Line 8 should now look similar to:
108+
Line 8 should now appear similar to:
102109

103110
```
104111
<add key="StorageConnectionString" value="DefaultEndpointsProtocol=https;AccountName=<account name>;AccountKey=txZACN9f...==;TableEndpoint=https://<account name>.table.cosmosdb.azure.com;" />
105112
```
106113

107-
5. Save the App.config file.
114+
5. Press CTRL+S to save the App.config file.
108115

109116
You've now updated your app with all the info it needs to communicate with Azure Cosmos DB.
110117
111118
## Build and deploy the app
112119
113120
1. In Visual Studio, right-click on the **TableStorage** project in **Solution Explorer** and then click **Manage NuGet Packages**.
114121
115-
2. In the NuGet **Browse** box, type *Microsoft.Azure.CosmosDB.Table*.
122+
![Manage NuGet Packages](media/create-table-dotnet/azure-cosmosdb-manage-nuget.png)
123+
2. In the NuGet **Browse** box, type *Microsoft.Azure.CosmosDB.Table*. This will find the Cosmos DB Table API client library.
124+
125+
![NuGet Browse tab](media/create-table-dotnet/azure-cosmosdb-nuget-browse.png)
126+
127+
3. Click **Install** to install the **Microsoft.Azure.CosmosDB.Table** library. This installs the Azure Cosmos DB Table API package and all dependencies.
116128
117-
3. From the results, install the **Microsoft.Azure.CosmosDB.Table** library. This installs the Azure Cosmos DB Table API package as well as all dependencies.
129+
![Click Install](media/create-table-dotnet/azure-cosmosdb-nuget-install.png)
118130
119-
4. Open BasicSamples.cs and add a breakpoint to line 30 and line 52.
131+
4. Open BasicSamples.cs. Right-click on line 52, select **Breakpoint**, then select **Insert Breakpoint**. Insert another breakpoint on line 55.
120132
121-
5. Click CTRL + F5 to run the application.
133+
![Add a breakpoint](media/create-table-dotnet/azure-cosmosdb-breakpoint.png)
122134
123-
The console window displays the table data being added to the new table database in Azure Cosmos DB.
135+
5. Press F5 to run the application.
136+
137+
The console window displays the name of the new table database (in this case, demo91ab4) in Azure Cosmos DB.
124138
139+
![Console output](media/create-table-dotnet/azure-cosmosdb-console.png)
140+
125141
If you get an error about dependencies, see [Troubleshooting](table-sdk-dotnet.md#troubleshooting).
126142
127-
When you hit the first breakpoint, go back to Data Explorer in the Azure portal and expand the demo* table and click **Entities**. The **Entities** tab on the right shows the new entity that was added, note that phone number for the user is 425-555-0101.
143+
When you hit the first breakpoint, go back to Data Explorer in the Azure portal. Click the **Refresh** button, expand the demo* table, and click **Entities**. The **Entities** tab on the right shows the new entity that was added for Walter Harp. Note that the phone number for the new entity is 425-555-0101.
144+
145+
![New entity](media/create-table-dotnet/azure-cosmosdb-entity.png)
128146
129-
6. Close the Entities tab in Data Explorer.
147+
6. Close the **Entities** tab in Data Explorer.
130148
131-
7. Continue to run the app to the next breakpoint.
149+
7. Press F5 to run the app to the next breakpoint.
132150
133-
When you hit the breakpoint, switch back to the portal, click Entities again to open the Entities tab, and note that the phone number has been updated to 425-555-0105.
151+
When you hit the breakpoint, switch back to the Azure portal, click **Entities** again to open the **Entities** tab, and note that the phone number has been updated to 425-555-0105.
134152
135-
8. Back in the console window, press CTRL + C to end the execution of the app.
153+
8. Press F5 to run the app.
154+
155+
The app adds entities for use in an advanced sample app that the Table API currently does not support. The app then deletes the table created by the sample app.
136156
137-
You can now go back to Data Explorer and add or modify the entitites, and query the data.
157+
9. In the console window, press Enter to end the execution of the app.
158+
138159
139160
## Review SLAs in the Azure portal
140161
26.4 KB
Loading
24.5 KB
Loading
10.8 KB
Loading
32 KB
Loading
18.8 KB
Loading
10.6 KB
Loading
17.9 KB
Loading
25 KB
Loading

articles/time-series-insights/time-series-insights-manage-reference-data-csharp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Manage reference data in Azure Time Series Insights environment by using C# | Microsoft Docs
2+
title: Manage reference data in Azure Time Series Insights environment using C# | Microsoft Docs
33
description: This article describes how to manage reference data for an Azure Time Series Insights environment by creating a custom application written in the C# (c-sharp) .NET language.
44
services: time-series-insights
55
ms.service: time-series-insights

0 commit comments

Comments
 (0)