Skip to content

Commit 349e0ab

Browse files
committed
Merge remote-tracking branch 'samuel/az-cli-deploy' into samz
2 parents 82c6fe8 + cdc8389 commit 349e0ab

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

articles/azure-functions/flex-consumption-how-to.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,36 @@ You can choose to deploy your project code to an existing function app using var
170170
171171
[!INCLUDE [functions-deploy-project-vs-code](../../includes/functions-deploy-project-vs-code.md)]
172172
173+
### [Azure CLI](#tab/azure-cli)
174+
175+
You can use the `az functionapp deployment source config-zip` command to deploy a ready-to-run .zip containing your application package to your function app.
176+
177+
1. First, produce a ready-to-run .zip of your application package. From your project root, perform the required build steps for your project's runtime. Then zip the contents of the build directory. Refer to the "Folder structure" section of your runtime's Developer reference guide ([Python example](./functions-reference-python.md#folder-structure)).
178+
179+
1. Before you can deploy, sign in to your Azure subscription using the Azure CLI.
180+
181+
```azurecli
182+
az login
183+
```
184+
185+
The [`az login`](/cli/azure/reference-index#az-login) command signs you into your Azure account.
186+
187+
1. Run the following command to deploy the application package located in the relative `<FILE_PATH>`. Only set `--build-remote true` if you need to perform a [remote build](./functions-deployment-technologies.md#remote-build).
188+
189+
```azurecli
190+
az functionapp deployment source config-zip --src <FILE_PATH> --name <APP_NAME> --resource-group <RESOURCE_GROUP> --build-remote false
191+
```
192+
173193
### [Core Tools](#tab/core-tools)
174194
175-
[!INCLUDE [functions-publish-project-cli-clean](../../includes/functions-publish-project-cli-clean.md)]
195+
[!INCLUDE [functions-publish-project-CLI-clean](../../includes/functions-publish-project-cli-clean.md)]
196+
197+
### [Continuous Deployment](#tab/continuous-deployment)
198+
199+
Azure Functions has a custom GitHub Action and Azure DevOps Task to support continuous deployment. Please refer the the following guides to incorporate these tools in your CI/CD pipelines:
200+
201+
- [Build and deploy using Azure Pipelines](./functions-how-to-azure-devops.md)
202+
- [Build and deploy using GitHub Actions](./functions-how-to-github-actions.md)
176203
177204
---
178205

0 commit comments

Comments
 (0)