title | description | ms.topic | ms.assetid | ms.custom | ms.author | author | ms.date | monikerRange |
---|---|---|---|---|---|---|---|---|
Azure Function App for Container task |
Deploy Azure Functions on Linux using custom images |
reference |
F1EB01AB-EB5F-4D70-8023-87197D65B338 |
seodec18 |
atulmal |
azooinmyluggage |
03/13/2019 |
azure-devops |
[!INCLUDE version-eq-azure-devops]
Use this task to deploy an Azure Function on Linux using a custom image.
Parameters | Description |
---|---|
azureSubscription Azure subscription | (Required) Name of an Azure Resource Manager service connection. |
appName App name | (Required) Name of the Function App for Containers. |
deployToSlotOrASE Deploy to Slot or App Service Environment | (Optional) Set to true to deploy to an existing deployment slot or Azure App Service Environment. For both the targets, the task needs a Resource Group name. For the deployment slot option, the default is to deploy to the production slot, or you can specify any other existing slot name. If the deployment target is an Azure App Service environment, leave the slot name as production and just specify the Resource Group name. Default value: false |
resourceGroupName Resource group | (Required if deployToSlotOrASE is true) Name of the Resource Group containing the Function App for Containers. |
slotName Slot | (Required) Enter or select an existing slot other than the production slot. Default value: production |
imageName Image name | (Required) Image to be used for deployment. Example: myregistry.azurecr.io/nginx:latest |
containerCommand Startup command | (Optional) Startup command to be executed after deployment. |
appSettings App settings | (Optional) Application settings to be entered using the syntax '-key value'. Values containing spaces should be enclosed in double quotes. Example: -Port 5000 -RequestTimeout 5000 -WEBSITE_TIME_ZONE "Eastern Standard Time" |
configurationStrings Configuration settings | (Optional) Configuration strings to be entered using the syntax '-key value'. Values containing spaces should be enclosed in double quotes. Example: -phpVersion 5.6 -linuxFxVersion: node|6.11 |
This example deploys Azure Functions on Linux using containers:
variables:
imageName: contoso.azurecr.io/azurefunctions-containers:$(build.buildId)
azureSubscription: Contoso
# To ignore SSL error uncomment the following variable
# VSTS_ARM_REST_IGNORE_SSL_ERRORS: true
steps:
- task: AzureFunctionAppContainer@1
displayName: Azure Function App on Container deploy
inputs:
azureSubscription: $(azureSubscription)
appName: functionappcontainers
imageName: $(imageName)
[!INCLUDE rm-app-service-troubleshoot-shared]
[!INCLUDE rm-app-service-FAQs-shared]
This task is open source on GitHub. Feedback and contributions are welcome.