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/containers/translator-disconnected-containers.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ ms.author: lajanuar
16
16
17
17
# Use Translator containers in disconnected environments
18
18
19
-
Azure Cognitive Services Translator containers allow you to use Translator Service APIs with the benefits of containerization. Translator disconnected containers are offered through commitment tier pricing offered at a discounted rate compared to pay-as-you-go pricing. With commitment tier pricing, you can commit to using Translator Service features for a fixed fee, at a predictable total cost, based on the needs of your workload.
19
+
Azure Cognitive Services Translator containers allow you to use Translator Service APIs with the benefits of containerization. Disconnected containers are offered through commitment tier pricing offered at a discounted rate compared to pay-as-you-go pricing. With commitment tier pricing, you can commit to using Translator Service features for a fixed fee, at a predictable total cost, based on the needs of your workload.
20
20
21
21
## Get started
22
22
@@ -46,15 +46,15 @@ Access is limited to customers that meet the following requirements:
46
46
47
47
1. Create a [Translator resource](https://portal.azure.com/#create/Microsoft.CognitiveServicesTextTranslation) in the Azure portal.
48
48
49
-
2. Enter the applicable information to create your resource. Be sure to select **Commitment tier disconnected containers** as your pricing tier.
49
+
1. Enter the applicable information to create your resource. Be sure to select **Commitment tier disconnected containers** as your pricing tier.
50
50
51
51
> [!NOTE]
52
52
>
53
53
> * You will only see the option to purchase a commitment tier if you have been approved by Microsoft.
54
54
55
55
:::image type="content" source="../media/create-resource-offline-container.png" alt-text="A screenshot showing resource creation on the Azure portal.":::
56
56
57
-
3. Select **Review + Create** at the bottom of the page. Review the information, and select **Create**.
57
+
1. Select **Review + Create** at the bottom of the page. Review the information, and select **Create**.
58
58
59
59
## Gather required parameters
60
60
@@ -64,7 +64,7 @@ There are three required parameters for all Cognitive Services' containers:
64
64
* The endpoint URL for your resource from the Azure portal.
65
65
* The API key for your resource from the Azure portal.
66
66
67
-
Both the endpoint URL and API key are needed when you first run the container to configure it for disconnected usage. You can find the key and endpoint on the **Key and endpoint** page for your resource in the Azure portal.
67
+
Both the endpoint URL and API key are needed when you first run the container to configure it for disconnected usage. You can find the key and endpoint on the **Key and endpoint** page for your resource in the Azure portal:
68
68
69
69
:::image type="content" source="../media/quickstarts/keys-and-endpoint-portal.png" alt-text="Screenshot: Azure portal keys and endpoint page.":::
70
70
@@ -97,18 +97,18 @@ Now that you've downloaded your container, you'll need to execute the `docker ru
97
97
> [!IMPORTANT]
98
98
> The `docker run` command will generate a template that you can use to run the container. The template contains parameters you'll need for the downloaded models and configuration file. Make sure you save this template.
99
99
100
-
The following example shows the formatting of the `docker run` command with placeholder values. Replace these placeholder values with your own values.
100
+
The following example shows the formatting for the `docker run` command with placeholder values. Replace these placeholder values with your own values.
101
101
102
102
| Placeholder | Value | Format|
103
103
|-------------|-------|---|
104
104
|`[image]`| The container image you want to use. |`mcr.microsoft.com/azure-cognitive-services/translator/text-translation`|
105
105
|`{LICENSE_MOUNT}`| The path where the license will be downloaded, and mounted. |`/host/license:/path/to/license/directory`|
106
106
|`{MODEL_MOUNT_PATH}`| The path where the machine translation models will be downloaded, and mounted. Your directory structure must be formatted as **/usr/local/models**|`/host/translator/models:/usr/local/models`|
107
107
|`{ENDPOINT_URI}`| The endpoint for authenticating your service request. You can find it on your resource's **Key and endpoint** page, in the Azure portal. |`https://<your-custom-subdomain>.cognitiveservices.azure.com`|
108
-
|`{API_KEY}`| The key for your Text Analytics resource. You can find it on your resource's **Key and endpoint** page, in the Azure portal. |`32-character-string`|
108
+
|`{API_KEY}`| The key for your Text Analytics resource. You can find it on your resource's **Key and endpoint** page, in the Azure portal. |`{string}`|
109
109
|`{CONTAINER_LICENSE_DIRECTORY}`| Location of the license folder on the container's local filesystem. |`/path/to/license/directory`|
110
110
111
-
**Example `docker pull` command**
111
+
**Example `docker run` command**
112
112
113
113
```docker
114
114
@@ -133,7 +133,7 @@ docker run --rm -it -p 5000:5000
133
133
[image]
134
134
```
135
135
136
-
### Translation models and container configuration
136
+
### Translator translation models and container configuration
137
137
138
138
After you've [configured the container](#configure-the-container-to-run-in-a-disconnected-environment), the values for the downloaded translation models and container configuration will be generated and displayed in the container output:
This usage-logs endpoint will return a JSON response similar to this example:
246
+
This usage-logs endpoint will return a JSON response similar to the following example:
247
247
248
248
```json
249
249
{
@@ -262,15 +262,15 @@ This usage-logs endpoint will return a JSON response similar to this example:
262
262
263
263
Commitment plans for disconnected containers have a calendar year commitment period. When you purchase a plan, you'll be charged the full price immediately. During the commitment period, you can't change your commitment plan, however you can purchase more unit(s) at a pro-rated price for the remaining days in the year. You have until midnight (UTC) on the last day of your commitment, to end a commitment plan.
264
264
265
-
You can choose a different commitment plan in the **Commitment Tier pricing** settings of your resource.
265
+
You can choose a different commitment plan in the **Commitment tier pricing** settings of your resource under the **Resource Management** section.
266
266
267
267
### End a commitment plan
268
268
269
269
If you decide that you don't want to continue purchasing a commitment plan, you can set your resource's auto-renewal to **Do not auto-renew**. Your commitment plan will expire on the displayed commitment end date. After this date, you won't be charged for the commitment plan. You'll be able to continue using the Azure resource to make API calls, charged at pay-as-you-go pricing. You'll have until midnight (UTC) on the last day of the year to end a commitment plan for disconnected containers. If you do so, you won't be charged for the following year.
270
270
271
271
## Troubleshooting
272
272
273
-
Run the container with an output mount and logging enabled. These settings will enable the container to generate log files that are helpful for troubleshooting issues that happen while starting or running the container.
273
+
Run the container with an output mount and logging enabled. These settings will enable the container to generate log files that are helpful for troubleshooting issues that occur while starting or running the container.
274
274
275
275
> [!TIP]
276
276
> For more troubleshooting information and guidance, see [Disconnected containers Frequently asked questions (FAQ)](../../containers/disconnected-container-faq.yml).
0 commit comments