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
# Quickstart: Build a Cassandra app with Python SDK and Azure Cosmos DB
@@ -28,7 +28,7 @@ In this quickstart, you create an Azure Cosmos DB for Apache Cassandra account,
28
28
## Prerequisites
29
29
30
30
- An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio). Or [try Azure Cosmos DB for free](../try-free.md) without an Azure subscription.
31
-
-[Python 2.7 or 3.6+](https://www.python.org/downloads/).
1. Paste the PORT value from the portal over `<FILLME>` on line 12.
110
+
111
+
Line 12 should now look similar to
112
+
113
+
`'port': 10350,`
108
114
109
115
1. Copy the USERNAME value from the portal and paste it over `<FILLME>` on line 6.
110
116
@@ -119,16 +125,6 @@ Now go back to the Azure portal to get your connection string information and co
119
125
`'password' = '2Ggkr662ifxz2Mg==`';`
120
126
121
127
1. Save the *config.py* file.
122
-
123
-
## Use the X509 certificate
124
-
125
-
1. Copy the Baltimore CyberTrust Root certificate details from [https://www.digicert.com/kb/digicert-root-certificates.htm](https://www.digicert.com/kb/digicert-root-certificates.htm) into a text file. Save the file using the file extension *.cer*.
126
-
127
-
The certificate has serial number `02:00:00:b9` and SHA1 fingerprint `d4:de:20:d0:5e:66:fc:53:fe:1a:50:88:2c:78:db:28:52:ca:e4:74`.
128
-
129
-
2. Open *pyquickstart.py* and change the `path\to\cert` to point to your new certificate.
130
-
131
-
3. Save *pyquickstart.py*.
132
128
133
129
## Run the Python app
134
130
@@ -172,7 +168,7 @@ Now go back to the Azure portal to get your connection string information and co
172
168
173
169
## Next steps
174
170
175
-
In this quickstart, you learned how to create an Azure Cosmos DB account with API for Cassandra, and run a Cassandra Python app that creates a Cassandra database and container. You can now import additional data into your Azure Cosmos DB account.
171
+
In this quickstart, you learned how to create an Azure Cosmos DB account with API for Cassandra, and run a Cassandra Python app that creates a Cassandra database and container. You can now import other data into your Azure Cosmos DB account.
176
172
177
173
> [!div class="nextstepaction"]
178
174
> [Import Cassandra data into Azure Cosmos DB](migrate-data.md)
Copy file name to clipboardExpand all lines: articles/cosmos-db/includes/cosmos-db-create-dbaccount-cassandra.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,17 +17,25 @@ ms.custom: include file, ignite-2022
17
17
18
18
1. On the **Azure Cosmos DB** page, select **Create**.
19
19
20
+
1. On the **API** page, select **Create** under the **Cassandra** section.
21
+
22
+
The API determines the type of account to create. Azure Cosmos DB provides five APIs: NoSQL for document databases, Gremlin for graph databases, MongoDB for document databases, Azure Table, and Cassandra. You must create a separate account for each API.
23
+
24
+
Select **Cassandra**, because in this quickstart you are creating a table that works with the API for Cassandra.
25
+
26
+
[Learn more about the API for Cassandra](../cassandra/introduction.md).
27
+
20
28
1. In the **Create Azure Cosmos DB Account** page, enter the basic settings for the new Azure Cosmos DB account.
21
29
22
30
|Setting|Value|Description |
23
31
|---|---|---|
24
32
| Subscription|Your subscription|Select the Azure subscription that you want to use for this Azure Cosmos DB account. |
25
33
| Resource Group|Create new<br><br>Then enter the same name as Account Name|Select **Create new**. Then enter a new resource group name for your account. For simplicity, use the same name as your Azure Cosmos DB account name. |
26
34
| Account Name|Enter a unique name|Enter a unique name to identify your Azure Cosmos DB account. Your account URI will be *cassandra.cosmos.azure.com* appended to your unique account name.<br><br>The account name can use only lowercase letters, numbers, and hyphens (-), and must be between 3 and 31 characters long.|
27
-
| API|Cassandra|The API determines the type of account to create. Azure Cosmos DB provides five APIs: NoSQL for document databases, Gremlin for graph databases, MongoDB for document databases, Azure Table, and Cassandra. You must create a separate account for each API. <br><br>Select **Cassandra**, because in this quickstart you are creating a table that works with the API for Cassandra. <br><br>[Learn more about the API for Cassandra](../cassandra/introduction.md).|
28
35
|Location|The region closest to your users|Select a geographic location to host your Azure Cosmos DB account. Use the location that is closest to your users to give them the fastest access to the data.|
29
36
|Capacity mode|Provisioned throughput or Serverless|Select **Provisioned throughput** to create an account in [provisioned throughput](../set-throughput.md) mode. Select **Serverless** to create an account in [serverless](../serverless.md) mode.|
30
37
|Apply Azure Cosmos DB free tier discount|**Apply** or **Do not apply**|With Azure Cosmos DB free tier, you will get the first 1000 RU/s and 25 GB of storage for free in an account. Learn more about [free tier](https://azure.microsoft.com/pricing/details/cosmos-db/).|
38
+
|Limit total account throughput|Select to limit throughput of the account|This is useful if you want to limit the total throughput of the account to a specific value.|
31
39
32
40
> [!NOTE]
33
41
> You can have up to one free tier Azure Cosmos DB account per Azure subscription and must opt-in when creating the account. If you do not see the option to apply the free tier discount, this means another account in the subscription has already been enabled with free tier.
@@ -40,6 +48,7 @@ ms.custom: include file, ignite-2022
40
48
|---|---|---|
41
49
|Geo-Redundancy|Disable|Enable or disable global distribution on your account by pairing your region with a pair region. You can add more regions to your account later.|
42
50
|Multi-region Writes|Disable|Multi-region writes capability allows you to take advantage of the provisioned throughput for your databases and containers across the globe.|
51
+
|Availability Zones|Disable|Availability Zones are isolated locations within an Azure region. Each zone is made up of one or more datacenters equipped with independent power, cooling, and networking.|
43
52
44
53
> [!NOTE]
45
54
> The following options are not available if you select **Serverless** as the **Capacity mode**:
0 commit comments