Skip to content

Commit 163548d

Browse files
author
Larry Franks
committed
incorporating feedback
1 parent 5c1a7c5 commit 163548d

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

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

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,25 +153,34 @@ When `show_output=True`, the output of the Docker build process is shown. Once t
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 as the trigger and get it's connection string. Replace `<triggerStorage>` with the name you want to use.
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.
157157
158158
```azurecli-interactive
159159
az storage account create --name triggerStorage --location westeurope --resource-group myresourcegroup --sku Standard_LRS
160160
```
161161
```azurecli-interactive
162-
az storage account show-connection-string --resource-group myresourcegroup --name triggerStorage --query connectionString --output tsv
162+
az storage account show-connection-string --resource-group myresourcegroup --name <webJobStorage> --query connectionString --output tsv
163163
```
164-
Record this connection string to provide to the function app. We will use it later when we ask for `<triggerConnectionString>`
165164
166-
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 `<triggerStorage>` with the name of the storage account:
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:
167166
168167
```azurecli-interactive
169-
az functionapp create --resource-group myresourcegroup --plan myplanname --name <app-name> --deployment-container-image-name <acrinstance>.azurecr.io/package:<imagename> --storage-account triggerStorage
168+
az functionapp create --resource-group myresourcegroup --plan myplanname --name <app-name> --deployment-container-image-name <acrinstance>.azurecr.io/package:<imagename> --storage-account <webjobStorage>
170169
```
171170
172171
> [!IMPORTANT]
173172
> 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.
174173
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.
175+
176+
```azurecli-interactive
177+
az storage account create --name triggerStorage --location westeurope --resource-group myresourcegroup --sku Standard_LRS
178+
```
179+
```azurecli-interactive
180+
az storage account show-connection-string --resource-group myresourcegroup --name <triggerStorage> --query connectionString --output tsv
181+
```
182+
Record this connection string to provide to the function app. We will use it later when we ask for `<triggerConnectionString>`
183+
175184
1. Create the containers for the input and output in the storage account. Replace `<triggerConnectionString>` with the connection string returned earlier:
176185
177186
```azurecli-interactive

0 commit comments

Comments
 (0)