Skip to content

Commit ae2c6ea

Browse files
authored
Merge pull request #266174 from iriaosara/vpndoc
public preview doc for adding vpn with cassandra mi
2 parents a0b3bc4 + b1827fb commit ae2c6ea

File tree

3 files changed

+61
-1
lines changed

3 files changed

+61
-1
lines changed

articles/cosmos-db/cassandra/TOC.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,9 @@
520520
- name: Improve read performance with local disks
521521
href: ../../managed-instance-apache-cassandra/write-through-cache.md?toc=/azure/cosmos-db/toc.json&bc=/azure/cosmos-db/breadcrumb/toc.json
522522
- name: Run Jaeger with Azure Managed Instance for Apache Cassandra
523-
href: ../../managed-instance-apache-cassandra/jaeger.md?toc=/azure/cosmos-db/toc.json&bc=/azure/cosmos-db/breadcrumb/toc.json
523+
href: ../../managed-instance-apache-cassandra/jaeger.md?toc=/azure/cosmos-db/toc.json&bc=/azure/cosmos-db/breadcrumb/toc.json
524+
- name: Use VPN with Azure Managed Instance for Apache Cassandra
525+
href: ../../managed-instance-apache-cassandra/use-vpn.md?toc=/azure/cosmos-db/toc.json&bc=/azure/cosmos-db/breadcrumb/toc.json
524526
- name: Nodetool Commands
525527
href: ../../managed-instance-apache-cassandra/dba-commands.md?toc=/azure/cosmos-db/toc.json&bc=/azure/cosmos-db/breadcrumb/toc.json
526528
- name: Reference

articles/managed-instance-apache-cassandra/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@
6565
href: write-through-cache.md
6666
- name: Run Jaeger with Azure Managed Instance for Apache Cassandra
6767
href: jaeger.md
68+
- name: Use VPN with Azure Managed Instance for Apache Cassandra
69+
href: use-vpn.md
6870
- name: Nodetool commands
6971
href: dba-commands.md
7072
- name: Reference
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
title: Use VPN with Azure Managed Instance for Apache Cassandra
3+
description: Discover how to secure your cluster with vpn when you use Azure Managed Instance for Apache Cassandra.
4+
author: IriaOsara
5+
ms.author: iriaosara
6+
ms.service: managed-instance-apache-cassandra
7+
ms.topic: how-to
8+
ms.date: 02/08/2024
9+
ms.devlang: azurecli
10+
11+
---
12+
# Use VPN with Azure Managed Instance for Apache Cassandra
13+
14+
By using a VPN with your Azure Managed Instance for Apache Cassandra, you can securely connect our management service and your cluster without making it public. It lets you keep full control over the network where your cluster is located, and it lets you use your own security rules to manage access to your cluster.
15+
16+
> [!IMPORTANT]
17+
> Using VPN with Azure Managed Instance for Apache Cassandra is in public preview.
18+
> This feature is provided without a service level agreement, and it's not recommended for production workloads.
19+
> For more information, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
20+
21+
## How to use VPN with Azure Managed Instance for Apache Cassandra
22+
23+
1. Create a cluster of Cassandra Managed Instance using "VPN" as the value for the `--azure-connection-method` option:
24+
25+
```bash
26+
az managed-cassandra cluster create \
27+
--cluster-name "vpn-test-cluster" \
28+
--resource-group "vpn-test-rg" \
29+
--location "eastus2" \
30+
--azure-connection-method "VPN" \
31+
--initial-cassandra-admin-password "password"
32+
```
33+
34+
1. Use the following command to see the cluster properties. From the output, make a copy of the `privateLinkResourceId` ID:
35+
36+
```bash
37+
az managed-cassandra cluster show \
38+
--resource-group "vpn-test-rg" \
39+
--cluster-name "vpn-test-cluster"
40+
```
41+
42+
1. On the portal, [create a private endpoint](../cosmos-db/how-to-configure-private-endpoints.md)
43+
1. On the Resource tab, select "Connect to an Azure resource by resource ID or alias." as the connection method and `Microsoft.Network/privateLinkServices` as the resource type. Enter the `privateLinkResourceId` from step (2).
44+
1. On the Virtual Network tab, select your virtual network's subnet and make sure to select the option for "Statically allocate IP address."
45+
1. Validate and create.
46+
47+
> [!NOTE]
48+
> At the moment, the connection between our management service and your private endpoint requires the Azure Managed Instance for Apache Cassandra team [email protected] to approve it.
49+
50+
1. Get the IP address of your private endpoint NIC.
51+
52+
1. Create a new data center using the IP address from (5) as the `--private-endpoint-ip-address` parameter.
53+
54+
55+
## Next steps
56+
- Learn about [hybrid cluster configuration](configure-hybrid-cluster.md) in Azure Managed Instance for Apache Cassandra.

0 commit comments

Comments
 (0)