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/includes/cosmos-db-create-tableapi-account.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,4 +9,5 @@ ms.date: 04/06/2018
9
9
ms.author: mimig
10
10
ms.custom: include file
11
11
---
12
-
For instructions on creating an Azure Cosmos DB for Table account, see [Create a database account](../table/quickstart-dotnet.md#create-an-azure-cosmos-db-account).
12
+
13
+
For instructions on creating an Azure Cosmos DB for Table account, see [Create a database account](../how-to-manage-database-account.md).
Copy file name to clipboardExpand all lines: articles/cosmos-db/table/how-to-create-container.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,13 +19,13 @@ This article explains the different ways to create a container in Azure Cosmos D
19
19
This article explains the different ways to create a container in Azure Cosmos DB for Table. If you are using a different API, see [API for MongoDB](../mongodb/how-to-create-container.md), [API for Cassandra](../cassandra/how-to-create-container.md), [API for Gremlin](../gremlin/how-to-create-container.md), and [API for NoSQL](../how-to-create-container.md) articles to create the container.
20
20
21
21
> [!NOTE]
22
-
> When creating containers, make sure you don’t create two containers with the same name but different casing. That’s because some parts of the Azure platform are not case-sensitive, and this can result in confusion/collision of telemetry and actions on containers with such names.
22
+
> When creating containers, make sure you don't create two containers with the same name but different casing. That's because some parts of the Azure platform are not case-sensitive, and this can result in confusion/collision of telemetry and actions on containers with such names.
23
23
24
24
## <aid="portal-table"></a>Create using Azure portal
25
25
26
26
1. Sign in to the [Azure portal](https://portal.azure.com/).
27
27
28
-
1.[Create a new Azure Cosmos DB account](quickstart-dotnet.md#create-an-azure-cosmos-db-account), or select an existing account.
28
+
1.[Create a new Azure Cosmos DB account](../how-to-manage-database-account.md), or select an existing account.
29
29
30
30
1. Open the **Data Explorer** pane, and select **New Table**. Next, provide the following details:
> GitHub accounts include an entitlement of storage and core hours at no cost. For more information, see [included storage and core hours for GitHub accounts](https://docs.github.com/billing/managing-billing-for-github-codespaces/about-billing-for-github-codespaces#monthly-included-storage-and-core-hours-for-personal-accounts).
16
+
17
+
::: zone-end
18
+
19
+
::: zone pivot="devcontainer-vscode"
20
+
21
+
::: zone-end
22
+
23
+
1. Open a terminal in the root directory of the project.
24
+
25
+
1. Authenticate to the Azure Developer CLI using `azd auth login`. Follow the steps specified by the tool to authenticate to the CLI using your preferred Azure credentials.
26
+
27
+
```azurecli
28
+
azd auth login
29
+
```
30
+
31
+
1. Use `azd init` to initialize the project.
32
+
33
+
```azurecli
34
+
azd init
35
+
```
36
+
37
+
1. During initialization, configure a unique environment name.
38
+
39
+
> [!TIP]
40
+
> The environment name will also be used as the target resource group name. For this quickstart, consider using `msdocs-cosmos-db`.
41
+
42
+
1. Deploy the Azure Cosmos DB account using `azd up`. The Bicep templates also deploy a sample web application.
43
+
44
+
```azurecli
45
+
azd up
46
+
```
47
+
48
+
1. During the provisioning process, select your subscription and desired location. Wait for the provisioning process to complete. The process can take **approximately five minutes**.
49
+
50
+
1. Once the provisioning of your Azure resources is done, a URL to the running web application is included in the output.
This quickstart shows how to get started with the Azure Cosmos DB for Table from a .NET application. The Azure Cosmos DB for Table is a schemaless data store allowing applications to store structured NoSQL data in the cloud. You'll learn how to create tables, rows, and perform basic tasks within your Azure Cosmos DB resource using the [Azure.Data.Tables Package (NuGet)](https://www.nuget.org/packages/Azure.Data.Tables/).
27
+
This quickstart shows how to get started with the Azure Cosmos DB for Table from a .NET application. The Azure Cosmos DB for Table is a schemaless data store allowing applications to store structured table data in the cloud. You'll learn how to create tables, rows, and perform basic tasks within your Azure Cosmos DB resource using the [Azure.Data.Tables Package (NuGet)](https://www.nuget.org/packages/Azure.Data.Tables/).
27
28
28
29
> [!NOTE]
29
30
> The [example code snippets](https://github.com/Azure-Samples/cosmos-db-table-api-dotnet-samples) are available on GitHub as a .NET project.
@@ -32,72 +33,49 @@ This quickstart shows how to get started with the Azure Cosmos DB for Table from
32
33
33
34
## Prerequisites
34
35
35
-
* An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free).
*[Azure Command-Line Interface (CLI)](/cli/azure/) or [Azure PowerShell](/powershell/azure/)
38
-
39
-
### Prerequisite check
40
-
41
-
* In a terminal or command window, run ``dotnet --list-sdks`` to check that .NET 6.x is one of the available versions.
42
-
* Run ``az --version`` (Azure CLI) or ``Get-Module -ListAvailable AzureRM`` (Azure PowerShell) to check that you have the appropriate Azure command-line tools installed.
This section walks you through how to create an Azure Cosmos DB account and set up a project that uses the API for Table NuGet packages.
47
-
48
-
### Create an Azure Cosmos DB account
49
-
50
-
This quickstart will create a single Azure Cosmos DB account using the API for Table.
40
+
Deploy this project's development container to your environment. Then, use the Azure Developer CLI (azd) to create an Azure Cosmos DB for Table account and deploy a containerized sample application. The sample application uses the client library to manage, create, read, and query sample data.
[](https://codespaces.new/Azure-Samples/cosmos-db-table-dotnet-quickstart?template=false&quickstart=1&azure-portal=true)
55
45
56
-
#### [PowerShell](#tab/azure-powershell)
46
+
::: zone-end
57
47
58
-
[!INCLUDE [Powershell - create resource group and resources](./includes/quickstart-dotnet/powershell-create-resource-group-and-resource.md)]
48
+
::: zone pivot="devcontainer-vscode"
59
49
60
-
#### [Portal](#tab/azure-portal)
50
+
[](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/Azure-Samples/cosmos-db-table-dotnet-quickstart)
[!INCLUDE [Azure CLI - get connection string](./includes/quickstart-dotnet/azure-cli-get-connection-string.md)]
58
+
The client library is available through NuGet, as the `Microsoft.Azure.Cosmos` package.
71
59
72
-
#### [PowerShell](#tab/azure-powershell)
60
+
1. Open a terminal and navigate to the `/src/web` folder.
73
61
74
-
[!INCLUDE [Powershell - get connection string](./includes/quickstart-dotnet/powershell-get-connection-string.md)]
62
+
```bash
63
+
cd ./src/web
64
+
```
75
65
76
-
#### [Portal](#tab/azure-portal)
66
+
1. If not already installed, install the `Microsoft.Azure.Cosmos` package using `dotnet add package`.
77
67
78
-
[!INCLUDE [Portal - get connection string](./includes/quickstart-dotnet/portal-get-connection-string-from-resource.md)]
79
-
80
-
---
68
+
```bash
69
+
dotnet add package Microsoft.Azure.Cosmos
70
+
```
81
71
82
-
### Create a new .NET app
83
-
84
-
Create a new .NET application in an empty folder using your preferred terminal. Use the [``dotnet new console``](/dotnet/core/tools/dotnet-new) to create a new console app.
85
-
86
-
```console
87
-
dotnet new console --output <app-name>
88
-
```
89
-
90
-
### Install the NuGet package
91
-
92
-
Add the [Azure.Data.Tables](https://www.nuget.org/packages/Azure.Data.Tables) NuGet package to the new .NET project. Use the [``dotnet add package``](/dotnet/core/tools/dotnet-add-package) command specifying the name of the NuGet package.
93
-
94
-
```console
95
-
dotnet add package Azure.Data.Tables
96
-
```
72
+
1. Also, install the `Azure.Identity` package if not already installed.
1. Open and review the **src/web/Cosmos.Samples.Table.Quickstart.Web.csproj** file to validate that the `Microsoft.Azure.Cosmos` and `Azure.Identity` entries both exist.
0 commit comments