Skip to content

Commit d34b011

Browse files
committed
Merge branch '59316-disconnected-container-documentation' of https://github.com/laujan/azure-docs-pr into 59316-disconnected-container-documentation
2 parents 1c92497 + 4d605ab commit d34b011

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

articles/cognitive-services/Translator/containers/translator-disconnected-containers.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ms.author: lajanuar
1616

1717
# Use Translator containers in disconnected environments
1818

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

2121
## Get started
2222

@@ -46,15 +46,15 @@ Access is limited to customers that meet the following requirements:
4646

4747
1. Create a [Translator resource](https://portal.azure.com/#create/Microsoft.CognitiveServicesTextTranslation) in the Azure portal.
4848

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

5151
> [!NOTE]
5252
>
5353
> * You will only see the option to purchase a commitment tier if you have been approved by Microsoft.
5454
5555
:::image type="content" source="../media/create-resource-offline-container.png" alt-text="A screenshot showing resource creation on the Azure portal.":::
5656

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**.
5858

5959
## Gather required parameters
6060

@@ -64,7 +64,7 @@ There are three required parameters for all Cognitive Services' containers:
6464
* The endpoint URL for your resource from the Azure portal.
6565
* The API key for your resource from the Azure portal.
6666

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:
6868

6969
:::image type="content" source="../media/quickstarts/keys-and-endpoint-portal.png" alt-text="Screenshot: Azure portal keys and endpoint page.":::
7070

@@ -97,18 +97,18 @@ Now that you've downloaded your container, you'll need to execute the `docker ru
9797
> [!IMPORTANT]
9898
> 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.
9999
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.
101101

102102
| Placeholder | Value | Format|
103103
|-------------|-------|---|
104104
| `[image]` | The container image you want to use. | `mcr.microsoft.com/azure-cognitive-services/translator/text-translation` |
105105
| `{LICENSE_MOUNT}` | The path where the license will be downloaded, and mounted. | `/host/license:/path/to/license/directory` |
106106
| `{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`|
107107
| `{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}`|
109109
| `{CONTAINER_LICENSE_DIRECTORY}` | Location of the license folder on the container's local filesystem. | `/path/to/license/directory` |
110110

111-
**Example `docker pull` command**
111+
**Example `docker run` command**
112112

113113
```docker
114114
@@ -133,7 +133,7 @@ docker run --rm -it -p 5000:5000
133133
[image]
134134
```
135135

136-
### Translation models and container configuration
136+
### Translator translation models and container configuration
137137

138138
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:
139139

@@ -188,7 +188,7 @@ docker run --rm -it -p 5000:5000 --memory {MEMORY_SIZE} --cpus {NUMBER_CPUS} \
188188

189189
## Other parameters and commands
190190

191-
Here are a few more parameters and commands you may need to run the container.
191+
Here are a few more parameters and commands you may need to run the container:
192192

193193
#### Usage records
194194

@@ -218,14 +218,14 @@ https://<service>/records/usage-logs/
218218

219219
**Example HTTPS endpoint**
220220

221-
`http://localhost:5000/records/usage-logs`.
221+
`http://localhost:5000/records/usage-logs`
222222

223-
This usage-logs endpoint will return a JSON response similar to this example:
223+
The usage-logs endpoint will return a JSON response similar to the following example:
224224

225225
```json
226226
{
227-
"apiType": "noop",
228-
"serviceName": "noop",
227+
"apiType": "string",
228+
"serviceName": "string",
229229
"meters": [
230230
{
231231
"name": "string",
@@ -243,7 +243,7 @@ The following endpoint will provide a report summarizing usage over a specific m
243243
https://<service>/records/usage-logs/{MONTH}/{YEAR}
244244
```
245245

246-
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:
247247

248248
```json
249249
{
@@ -262,15 +262,15 @@ This usage-logs endpoint will return a JSON response similar to this example:
262262

263263
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.
264264

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

267267
### End a commitment plan
268268

269269
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.
270270

271271
## Troubleshooting
272272

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

275275
> [!TIP]
276276
> For more troubleshooting information and guidance, see [Disconnected containers Frequently asked questions (FAQ)](../../containers/disconnected-container-faq.yml).

0 commit comments

Comments
 (0)