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
Copy file name to clipboardExpand all lines: articles/search/service-create-private-endpoint.md
+81-77Lines changed: 81 additions & 77 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,104 +2,106 @@
2
2
title: Create a Private Endpoint for a secure connection
3
3
titleSuffix: Azure Cognitive Search
4
4
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
7
7
manager: nitinme
8
8
ms.service: cognitive-search
9
9
ms.topic: conceptual
10
-
ms.date: 02/16/2021
10
+
ms.date: 09/12/2022
11
11
---
12
12
13
13
# Create a Private Endpoint for a secure connection to Azure Cognitive Search
14
14
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:
16
16
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/).
18
23
19
24
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).
20
25
21
26
> [!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.
23
28
24
29
## Why use a Private Endpoint for secure access?
25
30
26
31
[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.
27
32
28
-
Private endpoints for your search service enables you to:
33
+
Private endpoints for your search service enable you to:
29
34
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.
33
38
34
39
## Create the virtual network
35
40
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.
37
42
38
43
1. From the Azure portal home tab, select **Create a resource** > **Networking** > **Virtual network**.
39
44
40
-
1. In **Create virtual network**, enter or select this information:
45
+
1. In **Create virtual network**, enter or select the following values:
41
46
42
47
| Setting | Value |
43
48
| ------- | ----- |
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. |
49
53
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**.
51
55
52
56
## Create a search service with a private endpoint
53
57
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.
55
59
56
60
1. On the upper-left side of the screen in the Azure portal, select **Create a resource** > **Web** > **Azure Cognitive Search**.
57
61
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:
59
63
60
64
| Setting | Value |
61
65
| ------- | ----- |
62
66
|**PROJECT DETAILS**||
63
67
| 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.|
65
69
|**INSTANCE DETAILS**||
66
70
| 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. |
70
73
71
74
1. Select **Next: Scale**.
72
75
73
-
1.Leave the values as default and select **Next: Networking**.
76
+
1.Accept the defaults and select **Next: Networking**.
74
77
75
78
1. In **New Search Service - Networking**, select **Private** for **Endpoint connectivity(data)**.
76
79
77
-
1.In **New Search Service - Networking**, select**+ Add** under **Private endpoint**.
80
+
1.Select**+ Add** under **Private endpoint**.
78
81
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:
80
83
81
84
| Setting | Value |
82
85
| ------- | ----- |
83
86
| 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**. |
88
91
|**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. |
91
94
|**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**. |
95
97
96
98
1. Select **OK**.
97
99
98
100
1. Select **Review + create**. You're taken to the **Review + create** page where Azure validates your configuration.
99
101
100
102
1. When you see the **Validation passed** message, select **Create**.
101
103
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.
103
105
104
106
1. Select **Keys** from the left content menu.
105
107
@@ -111,64 +113,61 @@ In this section, you will create a new Azure Cognitive Search service with a Pri
111
113
112
114
1. On the upper-left side of the screen in the Azure portal, select **Create a resource** > **Compute** > **Virtual machine**.
113
115
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:
115
117
116
118
| Setting | Value |
117
119
| ------- | ----- |
118
120
|**PROJECT DETAILS**||
119
121
| 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.|
121
123
|**INSTANCE DETAILS**||
122
-
| Virtual machine name | Enter *myVm*. |
123
-
| Region | Select **West US** or whatever region you are using. |
| Size | Accept the default **Standard D2S v3**. |
127
130
|**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-).|
130
133
| Confirm Password | Reenter password. |
131
134
|**INBOUND PORT RULES**||
132
-
| Public inbound ports | Leave the default **Allow selected ports**. |
> 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):
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.
162
161
163
162
1. When you see the **Validation passed** message, select **Create**.
164
163
165
164
## Connect to the VM
166
165
167
-
Download and then connect to the VM *myVm* as follows:
166
+
Download and then connect to the virtual machine as follows:
168
167
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.
170
169
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.
172
171
173
172
1. Select **Download RDP File**. Azure creates a Remote Desktop Protocol (*.rdp*) file and downloads it to your computer.
174
173
@@ -189,16 +188,17 @@ Download and then connect to the VM *myVm* as follows:
189
188
190
189
## Test connections
191
190
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.
193
192
194
193
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.
195
194
196
195
1. In the Remote Desktop of *myVM*, open PowerShell.
197
196
198
-
1. Enter 'nslookup [search service name].search.windows.net'
197
+
1. Enter `nslookup [search service name].search.windows.net`.
199
198
200
199
You'll receive a message similar to this:
201
-
```azurepowershell
200
+
201
+
```
202
202
Server: UnKnown
203
203
Address: 168.63.129.16
204
204
Non-authoritative answer:
@@ -213,22 +213,26 @@ When the search service endpoint is private, some portal features are disabled.
213
213
214
214
1. Close the remote desktop connection to *myVM*.
215
215
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.
217
217
218
218
<a id="portal-access-private-search-service"></a>
219
219
220
220
## Use the Azure portal to access a private search service
221
221
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.
223
225
224
226
1. Follow the [steps to provision a VM that can access the search service through a private endpoint](#create-virtual-machine-private-endpoint).
227
+
225
228
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.
226
229
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**.
232
235
233
236
## Next steps
237
+
234
238
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