Skip to content

Commit 8555bfe

Browse files
authored
Merge pull request #210853 from HeidiSteen/heidist-fresh
[azure search] Freshness pass over private endpoint doc
2 parents 5532e4e + ba29eda commit 8555bfe

File tree

1 file changed

+81
-77
lines changed

1 file changed

+81
-77
lines changed

articles/search/service-create-private-endpoint.md

Lines changed: 81 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -2,104 +2,106 @@
22
title: Create a Private Endpoint for a secure connection
33
titleSuffix: Azure Cognitive Search
44
description: Set up a private endpoint in a virtual network for a secure connection to an Azure Cognitive Search service.
5-
author: nitinme
6-
ms.author: nitinme
5+
author: HeidiSteen
6+
ms.author: heidist
77
manager: nitinme
88
ms.service: cognitive-search
99
ms.topic: conceptual
10-
ms.date: 02/16/2021
10+
ms.date: 09/12/2022
1111
---
1212

1313
# Create a Private Endpoint for a secure connection to Azure Cognitive Search
1414

15-
In this article, you'll use the Azure portal to create a new Azure Cognitive Search service instance that can't be accessed via the internet. Next, you'll configure an Azure virtual machine in the same virtual network and use it to access the search service via a private endpoint.
15+
In this article, you'll learn how to secure an Azure Cognitive Search service so that it can't be accessed over the internet:
1616

17-
Private endpoints are provided by [Azure Private Link](../private-link/private-link-overview.md), as a separate service. For more information about costs, see the [pricing page](https://azure.microsoft.com/pricing/details/private-link/).
17+
+ [Create an Azure virtual network](#create-the-virtual-network) (or use an existing one)
18+
+ [Create a search service to use a private endpoint](#create-a-search-service-with-a-private-endpoint)
19+
+ [Create a Azure virtual machine in the same virtual network](#create-a-virtual-machine)
20+
+ [Connect to search using a browser session on the virtual machine](#connect-to-the-vm)
21+
22+
Private endpoints are provided by [Azure Private Link](../private-link/private-link-overview.md), as a separate billable service. For more information about costs, see the [pricing page](https://azure.microsoft.com/pricing/details/private-link/).
1823

1924
You can create a private endpoint in the Azure portal, as described in this article. Alternatively, you can use the [Management REST API version 2020-03-13](/rest/api/searchmanagement/), [Azure PowerShell](/powershell/module/az.search), or [Azure CLI](/cli/azure/search).
2025

2126
> [!NOTE]
22-
> To access a search service using a private endpoint through the portal, [use the portal inside the virtual network](#portal-access-private-search-service)
27+
> Once a search service has a private endpoint, portal access to that service must be initiated from a browser session on a virtual machine inside the virtual network. See [this step](#portal-access-private-search-service) for details.
2328
2429
## Why use a Private Endpoint for secure access?
2530

2631
[Private Endpoints](../private-link/private-endpoint-overview.md) for Azure Cognitive Search allow a client on a virtual network to securely access data in a search index over a [Private Link](../private-link/private-link-overview.md). The private endpoint uses an IP address from the [virtual network address space](../virtual-network/ip-services/private-ip-addresses.md) for your search service. Network traffic between the client and the search service traverses over the virtual network and a private link on the Microsoft backbone network, eliminating exposure from the public internet. For a list of other PaaS services that support Private Link, check the [availability section](../private-link/private-link-overview.md#availability) in the product documentation.
2732

28-
Private endpoints for your search service enables you to:
33+
Private endpoints for your search service enable you to:
2934

30-
- Block all connections on the public endpoint for your search service.
31-
- Increase security for the virtual network, by enabling you to block exfiltration of data from the virtual network.
32-
- Securely connect to your search service from on-premises networks that connect to the virtual network using [VPN](../vpn-gateway/vpn-gateway-about-vpngateways.md) or [ExpressRoutes](../expressroute/expressroute-locations.md) with private-peering.
35+
+ Block all connections on the public endpoint for your search service.
36+
+ Increase security for the virtual network, by enabling you to block exfiltration of data from the virtual network.
37+
+ Securely connect to your search service from on-premises networks that connect to the virtual network using [VPN](../vpn-gateway/vpn-gateway-about-vpngateways.md) or [ExpressRoutes](../expressroute/expressroute-locations.md) with private-peering.
3338

3439
## Create the virtual network
3540

36-
In this section, you will create a virtual network and subnet to host the VM that will be used to access your search service's private endpoint.
41+
In this section, you'll create a virtual network and subnet to host the VM that will be used to access your search service's private endpoint.
3742

3843
1. From the Azure portal home tab, select **Create a resource** > **Networking** > **Virtual network**.
3944

40-
1. In **Create virtual network**, enter or select this information:
45+
1. In **Create virtual network**, enter or select the following values:
4146

4247
| Setting | Value |
4348
| ------- | ----- |
44-
| Subscription | Select your subscription|
45-
| Resource group | Select **Create new**, enter *myResourceGroup*, then select **OK** |
46-
| Name | Enter *MyVirtualNetwork* |
47-
| Region | Select your desired region |
48-
|||
49+
| Subscription | Select your subscription.|
50+
| Resource group | Select **Create new**, enter a name, such as "myResourceGroup", then select **OK**. |
51+
| Name | Enter a name, such as "MyVirtualNetwork". |
52+
| Region | Select a region. |
4953

50-
1. Leave the defaults for the rest of the settings. Click **Review + create** and then **Create**
54+
1. Accept the defaults for the rest of the settings. Select **Review + create** and then **Create**.
5155

5256
## Create a search service with a private endpoint
5357

54-
In this section, you will create a new Azure Cognitive Search service with a Private Endpoint.
58+
In this section, you'll create a new Azure Cognitive Search service with a Private Endpoint.
5559

5660
1. On the upper-left side of the screen in the Azure portal, select **Create a resource** > **Web** > **Azure Cognitive Search**.
5761

58-
1. In **New Search Service - Basics**, enter or select this information:
62+
1. In **New Search Service - Basics**, enter or select the following values:
5963

6064
| Setting | Value |
6165
| ------- | ----- |
6266
| **PROJECT DETAILS** | |
6367
| Subscription | Select your subscription. |
64-
| Resource group | Select **myResourceGroup**. You created this in the previous section.|
68+
| Resource group | Use the resource group that you created in the previous step.|
6569
| **INSTANCE DETAILS** | |
6670
| URL | Enter a unique name. |
67-
| Location | Select your desired region. |
68-
| Pricing tier | Select **Change Pricing Tier** and choose your desired service tier. (Not support on **Free** tier. Must be **Basic** or higher.) |
69-
|||
71+
| Location | Select your region. |
72+
| Pricing tier | Select **Change Pricing Tier** and choose your desired service tier. Private endpoints aren't supported on the **Free** tier. You must select **Basic** or higher. |
7073

7174
1. Select **Next: Scale**.
7275

73-
1. Leave the values as default and select **Next: Networking**.
76+
1. Accept the defaults and select **Next: Networking**.
7477

7578
1. In **New Search Service - Networking**, select **Private** for **Endpoint connectivity(data)**.
7679

77-
1. In **New Search Service - Networking**, select **+ Add** under **Private endpoint**.
80+
1. Select **+ Add** under **Private endpoint**.
7881

79-
1. In **Create Private Endpoint**, enter or select this information:
82+
1. In **Create Private Endpoint**, enter or select values that associate your search service with the virtual network you created:
8083

8184
| Setting | Value |
8285
| ------- | ----- |
8386
| Subscription | Select your subscription. |
84-
| Resource group | Select **myResourceGroup**. You created this in the previous section.|
85-
| Location | Select **West US**.|
86-
| Name | Enter *myPrivateEndpoint*. |
87-
| Target sub-resource | Leave the default **searchService**. |
87+
| Resource group | Use the resource group that you created in the previous step. |
88+
| Location | Select a region. |
89+
| Name | Enter a name, such as "myPrivateEndpoint". |
90+
| Target subresource | Accept the default **searchService**. |
8891
| **NETWORKING** | |
89-
| Virtual network | Select *MyVirtualNetwork* from resource group *myResourceGroup*. |
90-
| Subnet | Select *mySubnet*. |
92+
| Virtual network | Select the virtual network you created in the previous step. |
93+
| Subnet | Select the default. |
9194
| **PRIVATE DNS INTEGRATION** | |
92-
| Integrate with private DNS zone | Leave the default **Yes**. |
93-
| Private DNS zone | Leave the default ** (New) privatelink.search.windows.net**. |
94-
|||
95+
| Integrate with private DNS zone | Accept the default "Yes". |
96+
| Private DNS zone | Accept the default **(New) privatelink.search.windows.net**. |
9597

9698
1. Select **OK**.
9799

98100
1. Select **Review + create**. You're taken to the **Review + create** page where Azure validates your configuration.
99101

100102
1. When you see the **Validation passed** message, select **Create**.
101103

102-
1. Once provisioning of your new service is complete, browse to the resource that you just created.
104+
1. Once provisioning of your new service is complete, browse to the resource that you created.
103105

104106
1. Select **Keys** from the left content menu.
105107

@@ -111,64 +113,61 @@ In this section, you will create a new Azure Cognitive Search service with a Pri
111113

112114
1. On the upper-left side of the screen in the Azure portal, select **Create a resource** > **Compute** > **Virtual machine**.
113115

114-
1. In **Create a virtual machine - Basics**, enter or select this information:
116+
1. In **Create a virtual machine - Basics**, enter or select the following values:
115117

116118
| Setting | Value |
117119
| ------- | ----- |
118120
| **PROJECT DETAILS** | |
119121
| Subscription | Select your subscription. |
120-
| Resource group | Select **myResourceGroup**. You created this in the previous section. |
122+
| Resource group | Use the resource group that you created in the previous section.|
121123
| **INSTANCE DETAILS** | |
122-
| Virtual machine name | Enter *myVm*. |
123-
| Region | Select **West US** or whatever region you are using. |
124-
| Availability options | Leave the default **No infrastructure redundancy required**. |
125-
| Image | Select **Windows Server 2019 Datacenter**. |
126-
| Size | Leave the default **Standard DS1 v2**. |
124+
| Virtual machine name | Enter a name, such as "my-vm". |
125+
| Region | Select your region. |
126+
| Availability options | You can choose **No infrastructure redundancy required**, or select another option if you need the functionality. |
127+
| Image | Select **Windows Server 2022 Datacenter: Azure Edition - Gen2**. |
128+
| VM architecture | Accept the default **x64**. |
129+
| Size | Accept the default **Standard D2S v3**. |
127130
| **ADMINISTRATOR ACCOUNT** | |
128-
| Username | Enter a username of your choosing. |
129-
| Password | Enter a password of your choosing. The password must be at least 12 characters long and meet the [defined complexity requirements](../virtual-machines/windows/faq.yml?toc=%2fazure%2fvirtual-network%2ftoc.json#what-are-the-password-requirements-when-creating-a-vm-).|
131+
| Username | Enter the user name of the administrator.. |
132+
| Password | Enter the password. The password must be at least 12 characters long and meet the [defined complexity requirements](../virtual-machines/windows/faq.yml?toc=%2fazure%2fvirtual-network%2ftoc.json#what-are-the-password-requirements-when-creating-a-vm-).|
130133
| Confirm Password | Reenter password. |
131134
| **INBOUND PORT RULES** | |
132-
| Public inbound ports | Leave the default **Allow selected ports**. |
133-
| Select inbound ports | Leave the default **RDP (3389)**. |
134-
| **SAVE MONEY** | |
135-
| Already have a Windows license? | Leave the default **No**. |
136-
|||
135+
| Public inbound ports | Accept the default **Allow selected ports**. |
136+
| Select inbound ports | Accept the default **RDP (3389)**. |
137137

138138
1. Select **Next: Disks**.
139139

140-
1. In **Create a virtual machine - Disks**, leave the defaults and select **Next: Networking**.
140+
1. In **Create a virtual machine - Disks**, accept the defaults and select **Next: Networking**.
141141

142-
1. In **Create a virtual machine - Networking**, select this information:
142+
1. In **Create a virtual machine - Networking**, provide the following values:
143143

144144
| Setting | Value |
145145
| ------- | ----- |
146-
| Virtual network | Leave the default **MyVirtualNetwork**. |
147-
| Address space | Leave the default **10.1.0.0/24**.|
148-
| Subnet | Leave the default **mySubnet (10.1.0.0/24)**.|
149-
| Public IP | Leave the default **(new) myVm-ip**. |
150-
| Public inbound ports | Select **Allow selected ports**. |
151-
| Select inbound ports | Select **HTTP** and **RDP**.|
152-
||
146+
| Virtual network | Select the virtual network you created in a previous step. |
147+
| Subnet | Accept the default (10.1.0.0/24).|
148+
| NIC network security group | Accept the default "Basic" |
149+
| Public IP | Accept the default "(new) myVm-ip". |
150+
| Public inbound ports | Select the default "Allow selected ports". |
151+
| Select inbound ports | Select "HTTP 80", "HTTPS (443)" and "RDP (3389)".|
153152

154153
> [!NOTE]
155154
> IPv4 addresses can be expressed in [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) format. Remember to avoid the IP range reserved for private networking, as described in [RFC 1918](https://tools.ietf.org/html/rfc1918):
156155
>
157-
> - `10.0.0.0 - 10.255.255.255 (10/8 prefix)`
158-
> - `172.16.0.0 - 172.31.255.255 (172.16/12 prefix)`
159-
> - `192.168.0.0 - 192.168.255.255 (192.168/16 prefix)`
156+
> + `10.0.0.0 - 10.255.255.255 (10/8 prefix)`
157+
> + `172.16.0.0 - 172.31.255.255 (172.16/12 prefix)`
158+
> + `192.168.0.0 - 192.168.255.255 (192.168/16 prefix)`
160159
161-
1. Select **Review + create**. You're taken to the **Review + create** page where Azure validates your configuration.
160+
1. Select **Review + create** for a validation check.
162161

163162
1. When you see the **Validation passed** message, select **Create**.
164163

165164
## Connect to the VM
166165

167-
Download and then connect to the VM *myVm* as follows:
166+
Download and then connect to the virtual machine as follows:
168167

169-
1. In the portal's search bar, enter *myVm*.
168+
1. In the portal's search bar, search for the virtual machine created in the previous step.
170169

171-
1. Select the **Connect** button. After selecting the **Connect** button, **Connect to virtual machine** opens.
170+
1. Select **Connect**. After selecting the **Connect** button, **Connect to virtual machine** opens.
172171

173172
1. Select **Download RDP File**. Azure creates a Remote Desktop Protocol (*.rdp*) file and downloads it to your computer.
174173

@@ -189,16 +188,17 @@ Download and then connect to the VM *myVm* as follows:
189188

190189
## Test connections
191190

192-
In this section, you will verify private network access to the search service and connect privately to the using the Private Endpoint.
191+
In this section, you'll verify private network access to the search service and connect privately to the using the Private Endpoint.
193192

194193
When the search service endpoint is private, some portal features are disabled. You'll be able to view and manage service level settings, but portal access to index data and various other components in the service, such as the index, indexer, and skillset definitions, is restricted for security reasons.
195194

196195
1. In the Remote Desktop of *myVM*, open PowerShell.
197196

198-
1. Enter 'nslookup [search service name].search.windows.net'
197+
1. Enter `nslookup [search service name].search.windows.net`.
199198

200199
You'll receive a message similar to this:
201-
```azurepowershell
200+
201+
```
202202
Server: UnKnown
203203
Address: 168.63.129.16
204204
Non-authoritative answer:
@@ -213,22 +213,26 @@ When the search service endpoint is private, some portal features are disabled.
213213
214214
1. Close the remote desktop connection to *myVM*.
215215
216-
1. To verify that your service is not accessible on a public endpoint, open Postman on your local workstation and attempt the first several tasks in the quickstart. If you receive an error that the remote server does not exist, you have successfully configured a private endpoint for your search service.
216+
1. To verify that your service isn't accessible on a public endpoint, open Postman on your local workstation and attempt the first several tasks in the quickstart. If you receive an error that the remote server doesn't exist, you've successfully configured a private endpoint for your search service.
217217
218218
<a id="portal-access-private-search-service"></a>
219219
220220
## Use the Azure portal to access a private search service
221221
222-
When the search service endpoint is private, some portal features are disabled. You can view and manage service level information, but index, indexer, and skillset information is hidden for security reasons. To work around this restriction, connect to Azure portal from a browser on a virtual machine inside the virtual network. The portal uses the private endpoint on the connection and gives you visibility into content and operations.
222+
When the search service endpoint is private, some portal features are disabled. You can view and manage service level information, but index, indexer, and skillset information is hidden for security reasons.
223+
224+
To work around this restriction, connect to Azure portal from a browser on a virtual machine inside the virtual network. The portal uses the private endpoint on the connection and gives you visibility into content and operations.
223225
224226
1. Follow the [steps to provision a VM that can access the search service through a private endpoint](#create-virtual-machine-private-endpoint).
227+
225228
1. On a virtual machine in your virtual network, open a browser and sign into the Azure portal. The portal will use the private endpoint attached to the virtual machine to connect to your search service.
226229
227-
## Clean up resources
228-
When you're done using the Private Endpoint, search service, and the VM, delete the resource group and all of the resources it contains:
229-
1. Enter *myResourceGroup* in the **Search** box at the top of the portal and select *myResourceGroup* from the search results.
230-
1. Select **Delete resource group**.
231-
1. Enter *myResourceGroup* for **TYPE THE RESOURCE GROUP NAME** and select **Delete**.
230+
## Clean up resources
231+
232+
When you're working in your own subscription, it's a good idea at the end of a project to identify whether you still need the resources you created. Resources left running can cost you money.
233+
234+
You can delete individual resources or the resource group to delete everything you created in this exercise. Select the resource group on any resource's overview page, and then select **Delete**.
232235
233236
## Next steps
237+
234238
In this article, you created a VM on a virtual network and a search service with a Private Endpoint. You connected to the VM from the internet and securely communicated to the search service using Private Link. To learn more about Private Endpoint, see [What is Azure Private Endpoint?](../private-link/private-endpoint-overview.md).

0 commit comments

Comments
 (0)