You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-functions/deployment-zip-push.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,12 +89,12 @@ When you're using Azure CLI on your local computer, `<zip_file_path>` is the pat
89
89
90
90
## Run functions from the deployment package
91
91
92
-
You can also choose to run your functions directly from the .zip deployment file. This method skips the deployment step of copying files from the package to the `wwwroot` directory of your function app. Instead, the .zip file is mounted by the Functions runtime, and the contents of the `wwwroot` directory become read-only.
92
+
You can also choose to run your functions directly from the deployment package file. This method skips the deployment step of copying files from the package to the `wwwroot` directory of your function app. Instead, the package file is mounted by the Functions runtime, and the contents of the `wwwroot` directory become read-only.
93
93
94
94
> [!NOTE]
95
95
> The ability to run your function app from the deployment package is in preview.
96
96
97
-
Zip deployment integrates with this feature, which you can enable by setting the function app setting `WEBSITE_RUN_FROM_ZIP` to a value of `1`. For more information, see [Run your functions from a compressed deployment package](run-functions-from-deployment-package.md).
97
+
Zip deployment integrates with this feature, which you can enable by setting the function app setting `WEBSITE_RUN_FROM_ZIP` to a value of `1`. For more information, see [Run your functions from a deployment package file](run-functions-from-deployment-package.md).
Copy file name to clipboardExpand all lines: articles/azure-functions/run-functions-from-deployment-package.md
+13-10Lines changed: 13 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
-
title: Run your Azure Functions from a .zip deployment package | Microsoft Docs
3
-
description: Have the Azure Functions runtime run your functions by mounting a .zip compressed file deployment file that contains your function app project files.
2
+
title: Run your Azure Functions from a package | Microsoft Docs
3
+
description: Have the Azure Functions runtime run your functions by mounting a deployment package file that contains your function app project files.
4
4
services: functions
5
5
documentationcenter: na
6
6
author: ggailey777
@@ -12,23 +12,23 @@ ms.service: functions
12
12
ms.devlang: multiple
13
13
ms.topic: conceptual
14
14
ms.workload: na
15
-
ms.date: 08/13/2018
15
+
ms.date: 08/22/2018
16
16
ms.author: glenga
17
17
18
18
---
19
19
20
-
# Run your Azure Functions from a deployment package
20
+
# Run your Azure Functions from a package file
21
21
22
22
> [!NOTE]
23
23
> The functionality described in this article is currently in preview; it is not available for Functions on Linux.
24
24
25
25
By default, your function project files are deployed to the `d:\home\site\wwwroot` directory of your function app in Azure. These files are used to run your functions.
26
26
27
-
You can also choose to run your functions directly from a .zip deployment file. This article describes the benefits of running your functions from a .zip package file, and how to enable it in your function app.
27
+
You can also choose to run your functions directly from a deployment package file. This article describes the benefits of running your functions from a package, and how to enable it in your function app.
28
28
29
29
## Benefits of running from the zip file
30
30
31
-
There are several benefits to running from a .zip file:
31
+
There are several benefits to running from a package file:
32
32
33
33
+ Reduces the risk of file copy locking issues.
34
34
+ Can be deployed to a production app (with restart).
@@ -40,21 +40,24 @@ For more information, see [this announcement](https://github.com/Azure/app-servi
40
40
41
41
## Enabling the run from zip functionality
42
42
43
-
To enable your function app to run from a .zip file, you just add a `WEBSITE_RUN_FROM_ZIP` setting to your function app settings. The `WEBSITE_RUN_FROM_ZIP` setting can have one of the following values:
43
+
To enable your function app to run from a package, you just add a `WEBSITE_RUN_FROM_ZIP` setting to your function app settings. The `WEBSITE_RUN_FROM_ZIP` setting can have one of the following values:
44
44
45
45
46
46
| Value | Description |
47
47
|---------|---------|
48
-
|**`<url>`**| Location of a specific .zip file package you want to run. When using Blob storage, you should use a private container with a [Shared Access Signature (SAS)](../vs-azure-tools-storage-manage-with-storage-explorer.md#attach-a-storage-account-by-using-a-shared-access-signature-sas) to enable the Functions runtime to access to the package. You can use the [Azure Storage Explorer](https://azure.microsoft.com/features/storage-explorer/) to upload .zip files to your Blob storage account. |
49
-
|**`1`**| Run from a .zip file in the `d:\home\data\SitePackages` folder of your function app. You can use the zip deployment APIs to automatically create and copy a deployment package to this folder. |
48
+
|**`<url>`**| Location of a specific package file you want to run. When using Blob storage, you should use a private container with a [Shared Access Signature (SAS)](../vs-azure-tools-storage-manage-with-storage-explorer.md#attach-a-storage-account-by-using-a-shared-access-signature-sas) to enable the Functions runtime to access to the package. You can use the [Azure Storage Explorer](https://azure.microsoft.com/features/storage-explorer/) to upload package files to your Blob storage account. |
49
+
|**`1`**| Run from a pacakge file in the `d:\home\data\SitePackages` folder of your function app. You can use the zip deployment APIs to automatically create and copy a deployment package to this folder. |
50
50
51
51
The following shows a function app configured to run from a .zip file hosted in Azure Blob storage:
> Currently, only .zip package files are supported.
57
+
55
58
## Integration with .zip deployment
56
59
57
-
[Zip deployment][Zip deployment for Azure Functions] is a feature of Azure App Service that lets you deploy a .zip file containing your function app project to the `wwwroot` directory. The same APIs can be used to deploy your package to the `d:\home\data\SitePackages` folder. When you have the app setting `WEBSITE_RUN_FROM_ZIP` set to a value of `1`, the zip deployment APIs copy the .zip package to the `d:\home\data\SitePackages` folder instead of extracting the files to `d:\home\site\wwwroot`. The function app is then run from the package after a restart and `wwwroot` becomes read-only. For more information about zip deployment, see [Zip deployment for Azure Functions](deployment-zip-push.md).
60
+
[Zip deployment][Zip deployment for Azure Functions] is a feature of Azure App Service that lets you deploy a .zip file containing your function app project to the `wwwroot` directory. The same APIs can be used to deploy your package to the `d:\home\data\SitePackages` folder. When you have the app setting `WEBSITE_RUN_FROM_ZIP` set to a value of `1`, the zip deployment APIs copy your package to the `d:\home\data\SitePackages` folder instead of extracting the files to `d:\home\site\wwwroot`. The function app is then run from the package after a restart and `wwwroot` becomes read-only. For more information about zip deployment, see [Zip deployment for Azure Functions](deployment-zip-push.md).
0 commit comments