Skip to content

Commit 19443b9

Browse files
authored
Merge pull request #106831 from Blackmist/freshness
freshness
2 parents 3263320 + 7aa56a0 commit 19443b9

File tree

4 files changed

+61
-12
lines changed

4 files changed

+61
-12
lines changed

articles/machine-learning/how-to-assign-roles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.topic: conceptual
99
ms.reviewer: jmartens
1010
ms.author: larryfr
1111
author: Blackmist
12-
ms.date: 11/06/2019
12+
ms.date: 03/06/2020
1313
ms.custom: seodec18
1414

1515
---

articles/machine-learning/how-to-change-storage-access-key.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.topic: conceptual
99
ms.author: aashishb
1010
author: aashishb
1111
ms.reviewer: larryfr
12-
ms.date: 11/06/2019
12+
ms.date: 03/06/2020
1313

1414

1515
---
@@ -29,6 +29,9 @@ For security purposes, you may need to change the access keys for an Azure Stora
2929

3030
* The [Azure Machine Learning CLI extension](reference-azure-machine-learning-cli.md).
3131

32+
> [!NOTE]
33+
> The code snippets in this document were tested with version 1.0.83 of the Python SDK.
34+
3235
<a id="whattoupdate"></a>
3336

3437
## What needs to be updated

articles/machine-learning/how-to-deploy-functions.md

Lines changed: 55 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.topic: conceptual
99
ms.author: vaidyas
1010
author: vaidyas
1111
ms.reviewer: larryfr
12-
ms.date: 11/22/2019
12+
ms.date: 03/06/2020
1313

1414

1515
---
@@ -145,24 +145,24 @@ When `show_output=True`, the output of the Docker build process is shown. Once t
145145
146146
```azurecli-interactive
147147
az group create --name myresourcegroup --location "West Europe"
148-
az appservice plan create --name myplanname --resource-group myresourcegroup --sku EP1 --is-linux
148+
az appservice plan create --name myplanname --resource-group myresourcegroup --sku B1 --is-linux
149149
```
150150
151-
In this example, a _Linux Premium_ pricing tier (`--sku EP1`) is used.
151+
In this example, a _Linux basic_ pricing tier (`--sku B1`) is used.
152152
153153
> [!IMPORTANT]
154154
> Images created by Azure Machine Learning use Linux, so you must use the `--is-linux` parameter.
155155
156-
1. Create the storage account to use for the web job storage and get it's connection string. Replace `<webjobStorage>` with the name you want to use.
156+
1. Create the storage account to use for the web job storage and get its connection string. Replace `<webjobStorage>` with the name you want to use.
157157
158158
```azurecli-interactive
159-
az storage account create --name triggerStorage --location westeurope --resource-group myresourcegroup --sku Standard_LRS
159+
az storage account create --name <webjobStorage> --location westeurope --resource-group myresourcegroup --sku Standard_LRS
160160
```
161161
```azurecli-interactive
162162
az storage account show-connection-string --resource-group myresourcegroup --name <webJobStorage> --query connectionString --output tsv
163163
```
164164
165-
1. To create the function app, use the following command. Replace `<app-name>` with the name you want to use. Replace `<acrinstance>` and `<imagename>` with the values from returned `package.location` earlier. Replace Replace `<webjobStorage>` with the name of the storage account from the previous step:
165+
1. To create the function app, use the following command. Replace `<app-name>` with the name you want to use. Replace `<acrinstance>` and `<imagename>` with the values from returned `package.location` earlier. Replace `<webjobStorage>` with the name of the storage account from the previous step:
166166
167167
```azurecli-interactive
168168
az functionapp create --resource-group myresourcegroup --plan myplanname --name <app-name> --deployment-container-image-name <acrinstance>.azurecr.io/package:<imagename> --storage-account <webjobStorage>
@@ -171,12 +171,12 @@ When `show_output=True`, the output of the Docker build process is shown. Once t
171171
> [!IMPORTANT]
172172
> At this point, the function app has been created. However, since you haven't provided the connection string for the blob trigger or credentials to the Azure Container Registry that contains the image, the function app is not active. In the next steps, you provide the connection string and the authentication information for the container registry.
173173
174-
1. Create the storage account to use for the blob trigger storage and get it's connection string. Replace `<triggerStorage>` with the name you want to use.
174+
1. Create the storage account to use for the blob trigger storage and get its connection string. Replace `<triggerStorage>` with the name you want to use.
175175
176176
```azurecli-interactive
177177
az storage account create --name <triggerStorage> --location westeurope --resource-group myresourcegroup --sku Standard_LRS
178178
```
179-
```azurecli-interactive
179+
```azurecli-interactiv
180180
az storage account show-connection-string --resource-group myresourcegroup --name <triggerStorage> --query connectionString --output tsv
181181
```
182182
Record this connection string to provide to the function app. We will use it later when we ask for `<triggerConnectionString>`
@@ -202,7 +202,7 @@ When `show_output=True`, the output of the Docker build process is shown. Once t
202202
```
203203
Save the value returned, it will be used as the `imagetag` in the next step.
204204
205-
1. To provide the function app with the credentials needed to access the container registry, use the following command. Replace `<app-name>` with the name you want to use. Replace `<acrinstance>` and `<imagetag>` with the values from the AZ CLI call in the previous step. Replace `<username>` and `<password>` with the ACR login information retrieved earlier:
205+
1. To provide the function app with the credentials needed to access the container registry, use the following command. Replace `<app-name>` with the name of the function app. Replace `<acrinstance>` and `<imagetag>` with the values from the AZ CLI call in the previous step. Replace `<username>` and `<password>` with the ACR login information retrieved earlier:
206206
207207
```azurecli-interactive
208208
az functionapp config container set --name <app-name> --resource-group myresourcegroup --docker-custom-image-name <acrinstance>.azurecr.io/package:<imagetag> --docker-registry-server-url https://<acrinstance>.azurecr.io --docker-registry-server-user <username> --docker-registry-server-password <password>
@@ -244,6 +244,52 @@ At this point, the function app begins loading the image.
244244
> [!IMPORTANT]
245245
> It may take several minutes before the image has loaded. You can monitor progress using the Azure Portal.
246246
247+
## Test the deployment
248+
249+
Once the image has loaded and the app is available, use the following steps to trigger the app:
250+
251+
1. Create a text file that contains the data that the score.py file expects. The following example would work with a score.py that expects an array of 10 numbers:
252+
253+
```json
254+
{"data": [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [10, 9, 8, 7, 6, 5, 4, 3, 2, 1]]}
255+
```
256+
257+
> [!IMPORTANT]
258+
> The format of the data depends on what your score.py and model expects.
259+
260+
2. Use the following command to upload this file to the input container in the trigger storage blob created earlier. Replace `<file>` with the name of the file containing the data. Replace `<triggerConnectionString>` with the connection string returned earlier. In this example, `input` is the name of the input container created earlier. If you used a different name, replace this value:
261+
262+
```azurecli-interactive
263+
az storage blob upload --container-name input --file <file> --name <file> --connection-string <triggerConnectionString>
264+
```
265+
266+
The output of this command is similar to the following JSON:
267+
268+
```json
269+
{
270+
"etag": "\"0x8D7C21528E08844\"",
271+
"lastModified": "2020-03-06T21:27:23+00:00"
272+
}
273+
```
274+
275+
3. To view the output produced by the function, use the following command to list the output files generated. Replace `<triggerConnectionString>` with the connection string returned earlier. In this example, `output` is the name of the output container created earlier. If you used a different name, replace this value::
276+
277+
```azurecli-interactive
278+
az storage blob list --container-name output --connection-string <triggerConnectionString> --query '[].name' --output tsv
279+
```
280+
281+
The output of this command is similar to `sample_input_out.json`.
282+
283+
4. To download the file and inspect the contents, use the following command. Replace `<file>` with the file name returned by the previous command. Replace `<triggerConnectionString>` with the connection string returned earlier:
284+
285+
```azurecli-interactive
286+
az storage blob download --container-name output --file <file> --name <file> --connection-string <triggerConnectionString>
287+
```
288+
289+
Once the command completes, open the file. It contains the data returned by the model.
290+
291+
For more information on using blob triggers, see the [Create a function triggered by Azure Blob storage](/azure/azure-functions/functions-create-storage-blob-triggered-function) article.
292+
247293
## Next steps
248294
249295
* Learn to configure your Functions App in the [Functions](/azure/azure-functions/functions-create-function-linux-custom-image) documentation.

articles/machine-learning/monitor-resource-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.topic: conceptual
1010
ms.reviewer: larryfr
1111
ms.author: aashishb
1212
author: aashishb
13-
ms.date: 11/06/2019
13+
ms.date: 03/06/2020
1414
---
1515

1616
# Azure machine learning monitoring data reference

0 commit comments

Comments
 (0)