Skip to content

Commit 7131743

Browse files
committed
Edits
1 parent 2fb2a45 commit 7131743

1 file changed

Lines changed: 23 additions & 20 deletions

File tree

articles/azure-functions/functions-how-to-custom-container.md

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ az functionapp config container set --image <IMAGE_NAME> --registry-password <SE
143143
In this example, `<IMAGE_NAME>` is the full name of the new image with version. Private registries require you to supply a username and password. Store these credentials securely.
144144

145145
### [Azure portal](#tab/portal)
146+
146147
:::zone pivot="container-apps"
147148

148149
1. In the [Azure portal], locate your function app. In the left menu, select **Settings** > **Configuration**.
@@ -161,7 +162,7 @@ The specified image version is deployed to your app.
161162
::: zone-end
162163

163164
:::zone pivot="azure-arc"
164-
This feature is not documented.
165+
This feature isn't documented.
165166
::: zone-end
166167

167168
---
@@ -265,6 +266,7 @@ Use the following commands to get data about the image or change the deployment
265266
- [`az functionapp config container set`](/cli/azure/functionapp/config/container#az-functionapp-config-container-set): change registry settings or update the image used for deployment, as shown in the previous example.
266267

267268
### [Azure portal](#tab/portal)
269+
268270
:::zone pivot="container-apps"
269271

270272
1. In the [Azure portal], locate your function app. In the left menu, select **Settings** > **Configuration**.
@@ -287,7 +289,7 @@ The new image is deployed to your app based on your new settings.
287289
::: zone-end
288290

289291
:::zone pivot="azure-arc"
290-
This feature is not documented.
292+
This feature isn't documented.
291293
::: zone-end
292294

293295
---
@@ -315,7 +317,7 @@ When you create a containerized function app in an environment that has workload
315317
az functionapp create --name <APP_NAME> --storage-account <STORAGE_NAME> --environment MyContainerappEnvironment --resource-group AzureFunctionsContainers-rg --functions-version 4 --runtime <LANGUAGE_STACK> --image <IMAGE_URI> --workload-profile-name <PROFILE_NAME> --cpu <CPU_COUNT> --memory <MEMORY_SIZE>
316318
```
317319

318-
In the [az functionapp create](/cli/azure/functionapp#az-functionapp-create) command, the `--environment` parameter specifies the Container Apps environment and the `--image` parameter specifies the image to use for the function app. In this example, replace `<STORAGE_NAME>` with the name you used in the previous section for the storage account. Also, replace `<APP_NAME>` with a name appropriate to you that is unique in the environment.
320+
In the [az functionapp create](/cli/azure/functionapp#az-functionapp-create) command, the `--environment` parameter specifies the Container Apps environment and the `--image` parameter specifies the image to use for the function app. In this example, replace `<STORAGE_NAME>` with the name you used in the previous section for the storage account. Also, replace `<APP_NAME>` with a name appropriate to you that's unique in the environment.
319321

320322
To set the resources allocated to your app, replace `<CPU_COUNT>` with your desired number of virtual CPUs, with a minimum of 0.5 up to the maximum allowed by the profile. For `<MEMORY_SIZE>`, choose a dedicated memory amount from 1 GB up to the maximum allowed by the profile.
321323

@@ -373,23 +375,24 @@ You can enable Azure Functions to automatically update your deployment of an ima
373375

374376
### [Azure CLI](#tab/azure-cli)
375377

376-
```azurecli
377-
az functionapp deployment container config --enable-cd --query CI_CD_URL --output tsv --name <APP_NAME> --resource-group AzureFunctionsContainers-rg
378-
```
379-
380-
The [az functionapp deployment container config](/cli/azure/functionapp/deployment/container#az-functionapp-deployment-container-config) command enables continuous deployment and returns the deployment webhook URL. You can retrieve this URL at any time by using the [az functionapp deployment container show-cd-url](/cli/azure/functionapp/deployment/container#az-functionapp-deployment-container-show-cd-url) command.
381-
382-
### [Azure PowerShell](#tab/azure-powershell)
383-
```azurepowershell
384-
Update-AzFunctionAppSetting -Name <APP_NAME> -ResourceGroupName AzureFunctionsContainers-rg -AppSetting @{"DOCKER_ENABLE_CI" = "true"}
385-
Get-AzWebAppContainerContinuousDeploymentUrl -Name <APP_NAME> -ResourceGroupName AzureFunctionsContainers-rg
386-
```
387-
388-
The `DOCKER_ENABLE_CI` application setting controls whether continuous deployment is enabled from the container repository. The [Get-AzWebAppContainerContinuousDeploymentUrl](/powershell/module/az.websites/get-azwebappcontainercontinuousdeploymenturl) cmdlet returns the URL of the deployment webhook.
389-
390-
---
391-
392-
As before, replace `<APP_NAME>` with your function app name.
378+
```azurecli
379+
az functionapp deployment container config --enable-cd --query CI_CD_URL --output tsv --name <APP_NAME> --resource-group AzureFunctionsContainers-rg
380+
```
381+
382+
The [az functionapp deployment container config](/cli/azure/functionapp/deployment/container#az-functionapp-deployment-container-config) command enables continuous deployment and returns the deployment webhook URL. You can retrieve this URL at any time by using the [az functionapp deployment container show-cd-url](/cli/azure/functionapp/deployment/container#az-functionapp-deployment-container-show-cd-url) command.
383+
384+
### [Azure PowerShell](#tab/azure-powershell)
385+
386+
```azurepowershell
387+
Update-AzFunctionAppSetting -Name <APP_NAME> -ResourceGroupName AzureFunctionsContainers-rg -AppSetting @{"DOCKER_ENABLE_CI" = "true"}
388+
Get-AzWebAppContainerContinuousDeploymentUrl -Name <APP_NAME> -ResourceGroupName AzureFunctionsContainers-rg
389+
```
390+
391+
The `DOCKER_ENABLE_CI` application setting controls whether continuous deployment is enabled from the container repository. The [Get-AzWebAppContainerContinuousDeploymentUrl](/powershell/module/az.websites/get-azwebappcontainercontinuousdeploymenturl) cmdlet returns the URL of the deployment webhook.
392+
393+
---
394+
395+
As before, replace `<APP_NAME>` with your function app name.
393396

394397
1. Copy the deployment webhook URL to the clipboard.
395398

0 commit comments

Comments
 (0)