Skip to content

Commit 45d2cc9

Browse files
committed
added include files for new vnet changes
1 parent d6c496b commit 45d2cc9

File tree

1 file changed

+18
-124
lines changed

1 file changed

+18
-124
lines changed

articles/private-link/tutorial-private-endpoint-cosmosdb-portal.md

Lines changed: 18 additions & 124 deletions
Original file line numberDiff line numberDiff line change
@@ -32,103 +32,9 @@ If you don't have an Azure subscription, create a [free account](https://azure.m
3232

3333
Sign in to the [Azure portal](https://portal.azure.com).
3434

35-
## Create a virtual network and bastion host
35+
[!INCLUDE [virtual-network-create-with-bastion.md](../../includes/virtual-network-create-with-bastion.md)]
3636

37-
In this section, you'll create a virtual network, subnet, and bastion host.
38-
39-
The bastion host will be used to connect securely to the virtual machine for testing the private endpoint.
40-
41-
1. On the upper-left side of the screen, select **Create a resource > Networking > Virtual network** or search for **Virtual network** in the search box.
42-
43-
2. In **Create virtual network**, enter or select this information in the **Basics** tab:
44-
45-
| Setting | Value |
46-
|------------------|-----------------------------------------|
47-
| **Project Details** | |
48-
| Subscription | Select your Azure subscription. |
49-
| Resource Group | Select **Create new**. </br> Enter **myResourceGroup** in **Name**. </br> Select **OK**. |
50-
| **Instance details** | |
51-
| Name | Enter **myVNet**. |
52-
| Region | Select **East US**. |
53-
54-
3. Select the **IP Addresses** tab or select the **Next: IP Addresses** button at the bottom of the page.
55-
56-
4. In the **IP Addresses** tab, enter this information:
57-
58-
| Setting | Value |
59-
|--------------------|----------------------------|
60-
| IPv4 address space | Enter **10.1.0.0/16**. |
61-
62-
5. Under **Subnet name**, select the word **default**.
63-
64-
6. In **Edit subnet**, enter this information:
65-
66-
| Setting | Value |
67-
|--------------------|----------------------------|
68-
| Subnet name | Enter **mySubnet**. |
69-
| Subnet address range | Enter **10.1.0.0/24**. |
70-
71-
7. Select **Save**.
72-
73-
8. Select the **Security** tab.
74-
75-
9. Under **BastionHost**, select **Enable**. Enter this information:
76-
77-
| Setting | Value |
78-
|--------------------|----------------------------|
79-
| Bastion name | Enter **myBastionHost**. |
80-
| AzureBastionSubnet address space | Enter **10.1.1.0/24**. |
81-
| Public IP Address | Select **Create new**. </br> For **Name**, enter **myBastionIP**. </br> Select **OK**. |
82-
83-
84-
8. Select the **Review + create** tab or select the **Review + create** button.
85-
86-
9. Select **Create**.
87-
88-
## Create a virtual machine
89-
90-
In this section, you'll create a virtual machine that will be used to test the private endpoint.
91-
92-
1. On the upper-left side of the portal, select **Create a resource** > **Compute** > **Virtual machine** or search for **Virtual machine** in the search box.
93-
94-
2. In **Create a virtual machine**, type or select the values in the **Basics** tab:
95-
96-
| Setting | Value |
97-
|-----------------------|----------------------------------|
98-
| **Project Details** | |
99-
| Subscription | Select your Azure subscription. |
100-
| Resource Group | Select **myResourceGroup**. |
101-
| **Instance details** | |
102-
| Virtual machine name | Enter **myVM**. |
103-
| Region | Select **East US**. |
104-
| Availability Options | Select **No infrastructure redundancy required**. |
105-
| Security type | Select **Standard**. |
106-
| Image | Select **Windows Server 2019 Datacenter - Gen2**. |
107-
| Azure Spot instance | Select **No**. |
108-
| Size | Choose VM size or take default setting. |
109-
| **Administrator account** | |
110-
| Username | Enter a username. |
111-
| Password | Enter a password. |
112-
| Confirm password | Reenter password. |
113-
114-
3. Select the **Networking** tab, or select **Next: Disks**, then **Next: Networking**.
115-
116-
4. In the Networking tab, select or enter:
117-
118-
| Setting | Value |
119-
|-|-|
120-
| **Network interface** | |
121-
| Virtual network | **myVNet**. |
122-
| Subnet | **mySubnet**. |
123-
| Public IP | Select **None**. |
124-
| NIC network security group | **Basic**. |
125-
| Public inbound ports | Select **None**. |
126-
127-
5. Select **Review + create**.
128-
129-
6. Review the settings, and then select **Create**.
130-
131-
[!INCLUDE [ephemeral-ip-note.md](../../includes/ephemeral-ip-note.md)]
37+
[!INCLUDE [create-test-virtual-machine.md](../../includes/create-test-virtual-machine.md)]
13238

13339
## Create an Azure Cosmos DB account with a private endpoint
13440

@@ -144,9 +50,9 @@ In this section, you'll create an Azure Cosmos DB account and configure the priv
14450
|-----------------------|----------------------------------|
14551
| **Project Details** | |
14652
| Subscription | Select your Azure subscription. |
147-
| Resource Group | Select **myResourceGroup**. |
53+
| Resource Group | Select **test-rg**. |
14854
| **Instance details** | |
149-
| Account name | Enter **mycosmosdb**. If the name is unavailable, enter a unique name. |
55+
| Account name | Enter **cosmosdb**. If the name is unavailable, enter a unique name. |
15056
| Location | Select **(US) East US**. |
15157
| Capacity mode | Leave the default **Provisioned throughput**. |
15258
| Apply Free Tier Discount | Leave the default **Do Not Apply**. |
@@ -170,13 +76,13 @@ In this section, you'll create an Azure Cosmos DB account and configure the priv
17076
| Setting | Value |
17177
|-----------------------|----------------------------------|
17278
| Subscription | Select your Azure subscription. |
173-
| Resource Group | Select **myResourceGroup**. |
79+
| Resource Group | Select **test-rg**. |
17480
| Location | Select **East US**. |
175-
| Name | Enter **myPrivateEndpoint**. |
81+
| Name | Enter **private-endpoint**. |
17682
| Azure Cosmos DB sub-resource | Leave the default **Azure Cosmos DB for NoSQL - Recommended**. |
17783
| **Networking** | |
178-
| Virtual network | Select **myVNet**. |
179-
| Subnet | Select **mySubnet**. |
84+
| Virtual network | Select **test-1**. |
85+
| Subnet | Select **subnet-1**. |
18086
| **Private DNS integration** | |
18187
| Integrate with private DNS zone | Leave the default **Yes**. |
18288
| Private DNS Zone | Leave the default **(New) privatelink.documents.azure.com**. |
@@ -189,7 +95,7 @@ In this section, you'll create an Azure Cosmos DB account and configure the priv
18995

19096
### Add a database and a container
19197

192-
1. Select **Go to resource**, or in the left-hand menu of the Azure portal, select **All Resources** > **mycosmosdb**.
98+
1. Select **Go to resource**, or in the left-hand menu of the Azure portal, select **All Resources** > **cosmosdb**.
19399

194100
2. In the left-hand menu, select **Data Explorer**.
195101

@@ -216,11 +122,11 @@ In this section, you'll use the virtual machine you created in the previous step
216122

217123
1. Select **Resource groups** in the left-hand navigation pane.
218124

219-
1. Select **myResourceGroup**.
125+
1. Select **test-rg**.
220126

221-
1. Select **myVM**.
127+
1. Select **vm-1**.
222128

223-
1. On the overview page for **myVM**, select **Connect** then **Bastion**.
129+
1. On the overview page for **vm-1**, select **Connect** then **Bastion**.
224130

225131
1. Enter the username and password that you entered during the virtual machine creation.
226132

@@ -235,31 +141,19 @@ In this section, you'll use the virtual machine you created in the previous step
235141
Address: 168.63.129.16
236142
237143
Non-authoritative answer:
238-
Name: mycosmosdb.privatelink.documents.azure.com
144+
Name: cosmosdb.privatelink.documents.azure.com
239145
Address: 10.1.0.5
240-
Aliases: mycosmosdb.documents.azure.com
146+
Aliases: cosmosdb.documents.azure.com
241147
```
242-
A private IP address of **10.1.0.5** is returned for the Azure Cosmos DB account name. This address is in **mySubnet** subnet of **myVNet** virtual network you created previously.
148+
A private IP address of **10.1.0.5** is returned for the Azure Cosmos DB account name. This address is in **subnet-1** subnet of **test-1** virtual network you created previously.
243149
244150
1. Go to [Azure Cosmos DB](https://cosmos.azure.com/). Select **Connect to your account with connection string**, then paste the connection string that you copied in the previous steps and select **Connect**.
245151
246-
1. Under the **Azure Cosmos DB for NoSQL** menu on the left, you see **mydatabaseid** and **mycontainerid** that you previously created in **mycosmosdb**.
247-
248-
1. Close the connection to **myVM**.
249-
250-
## Clean up resources
251-
252-
If you're not going to continue to use this application, delete the virtual network, virtual machine, and Azure Cosmos DB account with the following steps:
253-
254-
1. From the left-hand menu, select **Resource groups**.
255-
256-
2. Select **myResourceGroup**.
257-
258-
3. Select **Delete resource group**.
152+
1. Under the **Azure Cosmos DB for NoSQL** menu on the left, you see **mydatabaseid** and **mycontainerid** that you previously created in **cosmosdb**.
259153
260-
4. Enter **myResourceGroup** in **TYPE THE RESOURCE GROUP NAME**.
154+
1. Close the connection to **vm-1**.
261155
262-
5. Select **Delete**.
156+
[!INCLUDE [portal-clean-up.md](../../includes/portal-clean-up.md)]
263157
264158
## Next steps
265159

0 commit comments

Comments
 (0)