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/cognitive-services/Translator/firewalls.md
+7-15Lines changed: 7 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,30 +12,22 @@ ms.date: 04/19/2023
12
12
ms.author: lajanuar
13
13
---
14
14
15
-
# How to translate behind IP firewalls with Translator
15
+
# Use Translator behind firewalls
16
16
17
-
Translator can translate behind firewalls using either [Domain-name](../../firewall/dns-settings.md#configure-dns-proxy---azure-portal) or IP filtering. Domain-name filtering is the preferred method.
17
+
Translator can translate behind firewalls using either [Domain-name](../../firewall/dns-settings.md#configure-dns-proxy---azure-portal) or [IP filtering](#configure-firewall). Domain-name filtering is the preferred method.
18
18
19
-
## Virtual network endpoints
19
+
If you still require IP filtering, you can get the [IP addresses details using service tag](../../virtual-network/service-tags-overview.md#discover-service-tags-by-using-downloadable-json-files). Translator is under the **CognitiveServicesManagement** service tag.
20
+
21
+
## Configure firewall
20
22
21
-
To find the virtual network endpoint for your Translator resource complete the following steps:
23
+
Navigate to your Translator resource in the Azure portal.
22
24
23
-
1. Navigate to your Translator resource in the Azure portal.
24
25
1. Select **Networking** from the **Resource Management** section.
25
26
1. Under the **Firewalls and virtual networks** tab, choose **Selected Networks and Private Endpoints**.
26
27
27
28
:::image type="content" source="media/firewall-setting-azure-portal.png" alt-text="Screenshot of the firewall setting in the Azure portal.":::
28
29
29
-
1. Select **Save** to apply your changes.
30
-
1. Select **Keys and Endpoint** from the **Resource Management** section.
31
-
1. Select the **Virtual Network** tab.
32
-
1. Listed there are the endpoints for Text Translation and Document Translation.
33
-
34
-
:::image type="content" source="media/virtual-network-endpoint.png" alt-text="Screenshot of the virtual network endpoint.":::
35
-
36
-
## IP addresses
37
-
38
-
If you still require IP filtering, you can get the [IP addresses details using service tag](../../virtual-network/service-tags-overview.md#discover-service-tags-by-using-downloadable-json-files). Translator is under the **CognitiveServicesManagement** service tag.
30
+
1. To grant access to an internet IP range, enter the IP address or address range (in [CIDR format](https://tools.ietf.org/html/rfc4632)) under **Firewall** > **Address Range**. Only valid public IP (`non-reserved`) addresses are accepted.
39
31
40
32
Running Microsoft Translator from behind a specific IP filtered firewall is **not recommended**. The setup is likely to break in the future without notice.
Copy file name to clipboardExpand all lines: articles/cognitive-services/Translator/reference/v3-0-reference.md
+17-3Lines changed: 17 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,8 @@ There are three headers that you can use to authenticate your subscription. This
60
60
|Authorization|*Use with Cognitive Services subscription if you're passing an authentication token.*<br/>The value is the Bearer token: `Bearer <token>`.|
61
61
|Ocp-Apim-Subscription-Region|*Use with Cognitive Services multi-service and regional translator resource.*<br/>The value is the region of the multi-service or regional translator resource. This value is optional when using a global translator resource.|
62
62
63
-
### Secret key
63
+
### Secret key
64
+
64
65
The first option is to authenticate using the `Ocp-Apim-Subscription-Key` header. Add the `Ocp-Apim-Subscription-Key: <YOUR_SECRET_KEY>` header to your request.
65
66
66
67
#### Authenticating with a global resource
@@ -238,6 +239,19 @@ Once you turn on this capability, you must use the custom endpoint to call the T
238
239
239
240
You can find the custom endpoint after you create a [translator resource](https://portal.azure.com/#create/Microsoft.CognitiveServicesTextTranslation) and allow access from selected networks and private endpoints.
240
241
242
+
1. Navigate to your Translator resource in the Azure portal.
243
+
1. Select **Networking** from the **Resource Management** section.
244
+
1. Under the **Firewalls and virtual networks** tab, choose **Selected Networks and Private Endpoints**.
245
+
246
+
:::image type="content" source="../media/virtual-network-setting-azure-portal.png" alt-text="Screenshot of the virtual network setting in the Azure portal.":::
247
+
248
+
1. Select **Save** to apply your changes.
249
+
1. Select **Keys and Endpoint** from the **Resource Management** section.
250
+
1. Select the **Virtual Network** tab.
251
+
1. Listed there are the endpoints for Text Translation and Document Translation.
252
+
253
+
:::image type="content" source="../media/virtual-network-endpoint.png" alt-text="Screenshot of the virtual network endpoint.":::
254
+
241
255
|Headers|Description|
242
256
|:-----|:----|
243
257
|Ocp-Apim-Subscription-Key| The value is the Azure secret key for your subscription to Translator.|
@@ -258,8 +272,8 @@ curl -X POST "https://<your-custom-domain>.cognitiveservices.azure.com/translato
258
272
259
273
A standard error response is a JSON object with name/value pair named `error`. The value is also a JSON object with properties:
260
274
261
-
*`code`: A server-defined error code.
262
-
*`message`: A string giving a human-readable representation of the error.
275
+
*`code`: A server-defined error code.
276
+
*`message`: A string giving a human-readable representation of the error.
263
277
264
278
For example, a customer with a free trial subscription would receive the following error once the free quota is exhausted:
0 commit comments