az functionapp deployment: Deploy Functions in CI
Deploy an Azure Functions app, commonly with the source config zip subcommand.
az functionapp deployment manages deployments for a Function App. The most common CI path is az functionapp deployment source config-zip, which pushes a packaged zip to the app via Kudu. It is the function-app analogue of az webapp deploy.
Common flags
source config-zip- deploy a zip package (subcommand)-g RESOURCE_GROUPand-n NAME- target function app--src PATH- the zip artifact to deploy--build-remote true- run remote build (Oryx)
Example in CI
Push a packaged function app zip.
shell
az functionapp deployment source config-zip \
-g my-rg -n my-func --src functionapp.zipCommon errors in CI
- ResourceNotFound: ... functionapp ... not found - wrong app name or resource group
- Deployment failed ... 401 - SP lacks Contributor or SCM basic auth disabled
- Zip deployment failed ... Oryx build - missing build dependencies or wrong runtime stack
Key takeaways
- Deploys a packaged zip to an Azure Functions app via Kudu.
- Use --build-remote true when dependencies must be built on Azure.
- Name/resource-group and SCM-auth issues cause most deploy failures.
Related guides
az webapp deploy: Deploy App Service in CIDeploy a zip or artifact to Azure App Service from CI: source and type flags, an example, and the deploy erro…
az login: Authenticate Azure CLI in CIAuthenticate the Azure CLI in CI with a service principal or federated token: flags, an example, and the auth…
az storage blob upload: Upload to Blob in CIUpload a file to Azure Blob Storage from CI: container and auth flags, an example, and the storage errors you…