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
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:
| 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:
| Subscription | Select your Azure subscription. |
173
-
| Resource Group | Select **myResourceGroup**. |
79
+
| Resource Group | Select **test-rg**. |
174
80
| Location | Select **East US**. |
175
-
| Name | Enter **myPrivateEndpoint**. |
81
+
| Name | Enter **private-endpoint**. |
176
82
| Azure Cosmos DB sub-resource | Leave the default **Azure Cosmos DB for NoSQL - Recommended**. |
177
83
|**Networking**||
178
-
| Virtual network | Select **myVNet**. |
179
-
| Subnet | Select **mySubnet**. |
84
+
| Virtual network | Select **test-1**. |
85
+
| Subnet | Select **subnet-1**. |
180
86
|**Private DNS integration**||
181
87
| Integrate with private DNS zone | Leave the default **Yes**. |
182
88
| 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
189
95
190
96
### Add a database and a container
191
97
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**.
193
99
194
100
2. In the left-hand menu, select **Data Explorer**.
195
101
@@ -216,11 +122,11 @@ In this section, you'll use the virtual machine you created in the previous step
216
122
217
123
1. Select **Resource groups** in the left-hand navigation pane.
218
124
219
-
1. Select **myResourceGroup**.
125
+
1. Select **test-rg**.
220
126
221
-
1. Select **myVM**.
127
+
1. Select **vm-1**.
222
128
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**.
224
130
225
131
1. Enter the username and password that you entered during the virtual machine creation.
226
132
@@ -235,31 +141,19 @@ In this section, you'll use the virtual machine you created in the previous step
235
141
Address: 168.63.129.16
236
142
237
143
Non-authoritative answer:
238
-
Name: mycosmosdb.privatelink.documents.azure.com
144
+
Name: cosmosdb.privatelink.documents.azure.com
239
145
Address: 10.1.0.5
240
-
Aliases: mycosmosdb.documents.azure.com
146
+
Aliases: cosmosdb.documents.azure.com
241
147
```
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.
243
149
244
150
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**.
245
151
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**.
259
153
260
-
4. Enter **myResourceGroup** in **TYPE THE RESOURCE GROUP NAME**.
0 commit comments