Skip to content

Commit b3245cd

Browse files
committed
updte firewall settings
1 parent 90c1487 commit b3245cd

File tree

4 files changed

+24
-18
lines changed

4 files changed

+24
-18
lines changed

articles/cognitive-services/Translator/firewalls.md

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,22 @@ ms.date: 04/19/2023
1212
ms.author: lajanuar
1313
---
1414

15-
# How to translate behind IP firewalls with Translator
15+
# Use Translator behind firewalls
1616

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.
1818

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
2022

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.
2224

23-
1. Navigate to your Translator resource in the Azure portal.
2425
1. Select **Networking** from the **Resource Management** section.
2526
1. Under the **Firewalls and virtual networks** tab, choose **Selected Networks and Private Endpoints**.
2627

2728
:::image type="content" source="media/firewall-setting-azure-portal.png" alt-text="Screenshot of the firewall setting in the Azure portal.":::
2829

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.
3931

4032
Running Microsoft Translator from behind a specific IP filtered firewall is **not recommended**. The setup is likely to break in the future without notice.
4133

121 Bytes
Loading
240 KB
Loading

articles/cognitive-services/Translator/reference/v3-0-reference.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ There are three headers that you can use to authenticate your subscription. This
6060
|Authorization|*Use with Cognitive Services subscription if you're passing an authentication token.*<br/>The value is the Bearer token: `Bearer <token>`.|
6161
|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.|
6262

63-
### Secret key
63+
### Secret key
64+
6465
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.
6566

6667
#### 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
238239

239240
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.
240241

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+
241255
|Headers|Description|
242256
|:-----|:----|
243257
|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
258272

259273
A standard error response is a JSON object with name/value pair named `error`. The value is also a JSON object with properties:
260274

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.
263277

264278
For example, a customer with a free trial subscription would receive the following error once the free quota is exhausted:
265279

0 commit comments

Comments
 (0)