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/create-first-function-cli-java.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -192,6 +192,8 @@ A function app and related resources are created in Azure when you first deploy
192
192
193
193
The deployment packages the project files and deploys them to the new function app using [zip deployment](functions-deployment-technologies.md#zip-deploy). The code runs from the deployment package in Azure.
The following scripts are designed for and tested in [Azure Cloud Shell](../cloud-shell/overview.md). Choose **Try It** to open a Cloud Shell instance right in your browser.
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-deployment-technologies.md
+25-1Lines changed: 25 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ The following table describes the available deployment methods for your Function
20
20
| -- | -- | -- |
21
21
| Tools-based |• [Visual Studio Code publish](functions-develop-vs-code.md#publish-to-azure)<br/>• [Visual Studio publish](functions-develop-vs.md#publish-to-azure)<br/>• [Core Tools publish](functions-run-local.md#publish)| Deployments during development and other ad hoc deployments. Deployments are managed locally by the tooling. |
22
22
| App Service-managed|• [Deployment Center (CI/CD)](functions-continuous-deployment.md)<br/>• [Container deployments](functions-create-function-linux-custom-image.md#enable-continuous-deployment-to-azure)| Continuous deployment (CI/CD) from source control or from a container registry. Deployments are managed by the App Service platform (Kudu).|
23
-
| External pipelines|• [Azure Pipelines](functions-how-to-azure-devops.md)<br/>• [GitHub Actions](functions-how-to-github-actions.md)| Production and DevOps pipelines that include additional validation, testing, and other actions be run as part of an automated deployment. Deployments are managed by the pipeline. |
23
+
| External pipelines|• [Azure Pipelines](functions-how-to-azure-devops.md)<br/>• [GitHub Actions](functions-how-to-github-actions.md)| Production and Azure pipelines that include additional validation, testing, and other actions be run as part of an automated deployment. Deployments are managed by the pipeline. |
24
24
25
25
While specific Functions deployments use the best technology based on their context, most deployment methods are based on [zip deployment](#zip-deploy).
26
26
@@ -95,6 +95,12 @@ Linux function apps running in the Consumption plan don't have an SCM/Kudu site,
95
95
96
96
Function apps running on Linux in the [Dedicated (App Service) plan](dedicated-plan.md) and the [Premium plan](functions-premium-plan.md) also have a limited SCM/Kudu site.
97
97
98
+
### App content storage
99
+
100
+
Several deployment methods store the deployed or built application payload on the storage account associated with the function app. The Azure Files content share is generally used if configured, but some methods will instead store the payload in the blob store associated with the `AzureWebJobsStorage` connection. See the details in the "Where app content is stored" paragraphs of each deployment technology covered in the next section.
The following deployment methods are available in Azure Functions.
@@ -109,6 +115,8 @@ You can use an external package URL to reference a remote package (.zip) file th
109
115
110
116
>__When to use it:__ External package URL is the only supported deployment method for Azure Functions running on Linux in the Consumption plan, if the user doesn't want a [remote build](#remote-build) to occur. When you update the package file that a function app references, you must [manually sync triggers](#trigger-syncing) to tell Azure that your application has changed. When you change the contents of the package file and not the URL itself, you must also restart your function app manually.
111
117
118
+
>__Where app content is stored:__ App content is stored at the URL specified. This could be on Azure Blobs, possibly in the storage account specified by the `AzureWebJobsStorage` connection. Some client tools may default to deploying to a blob in this account. For example, for Linux Consumption apps, the Azure CLI will attempt to deploy through a package stored in a blob on the account specified by `AzureWebJobsStorage`.
119
+
112
120
### Zip deploy
113
121
114
122
Use zip deploy to push a .zip file that contains your function app to Azure. Optionally, you can set your app to start [running from package](run-functions-from-deployment-package.md), or specify that a [remote build](#remote-build) occurs.
@@ -119,6 +127,8 @@ Use zip deploy to push a .zip file that contains your function app to Azure. Opt
119
127
120
128
>__When to use it:__ Zip deploy is the recommended deployment technology for Azure Functions.
121
129
130
+
>__Where app content is stored:__ App content from a zip deploy by default is stored on the file system, which may be backed by Azure Files from the storage account specified when the function app was created. In Linux Consumption, the app content instead is persisted on a blob in the storage account specified by the `AzureWebJobsStorage` connection.
131
+
122
132
### Docker container
123
133
124
134
You can deploy a Linux container image that contains your function app.
@@ -132,6 +142,8 @@ You can deploy a Linux container image that contains your function app.
132
142
133
143
>__When to use it:__ Use the Docker container option when you need more control over the Linux environment where your function app runs. This deployment mechanism is available only for Functions running on Linux.
134
144
145
+
>__Where app content is stored:__ App content is stored in the specified container registry as a part of the image.
146
+
135
147
### Web Deploy (MSDeploy)
136
148
137
149
Web Deploy packages and deploys your Windows applications to any IIS server, including your function apps running on Windows in Azure.
@@ -142,6 +154,8 @@ Web Deploy packages and deploys your Windows applications to any IIS server, inc
142
154
143
155
>__When to use it:__ Web Deploy is supported and has no issues, but the preferred mechanism is [zip deploy with Run From Package enabled](#zip-deploy). To learn more, see the [Visual Studio development guide](functions-develop-vs.md#publish-to-azure).
144
156
157
+
>__Where app content is stored:__ App content is stored on the file system, which may be backed by Azure Files from the storage account specified when the function app was created.
158
+
145
159
### Source control
146
160
147
161
Use source control to connect your function app to a Git repository. An update to code in that repository triggers deployment. For more information, see the [Kudu Wiki](https://github.com/projectkudu/kudu/wiki/VSTS-vs-Kudu-deployments).
@@ -150,6 +164,8 @@ Use source control to connect your function app to a Git repository. An update t
150
164
151
165
>__When to use it:__ Using source control is the best practice for teams that collaborate on their function apps. Source control is a good deployment option that enables more sophisticated deployment pipelines.
152
166
167
+
>__Where app content is stored:__ The app content is in the source control system, but a locally cloned and built app content from is stored on the app file system, which may be backed by Azure Files from the storage account specified when the function app was created.
168
+
153
169
### Local Git
154
170
155
171
You can use local Git to push code from your local machine to Azure Functions by using Git.
@@ -158,6 +174,8 @@ You can use local Git to push code from your local machine to Azure Functions by
158
174
159
175
>__When to use it:__ In general, we recommend that you use a different deployment method. When you publish from local Git, you must [manually sync triggers](#trigger-syncing).
160
176
177
+
>__Where app content is stored:__ App content is stored on the file system, which may be backed by Azure Files from the storage account specified when the function app was created.
178
+
161
179
### Cloud sync
162
180
163
181
Use cloud sync to sync your content from Dropbox and OneDrive to Azure Functions.
@@ -166,6 +184,8 @@ Use cloud sync to sync your content from Dropbox and OneDrive to Azure Functions
166
184
167
185
>__When to use it:__ In general, we recommend other deployment methods. When you publish by using cloud sync, you must [manually sync triggers](#trigger-syncing).
168
186
187
+
>__Where app content is stored:__ The app content is in the cloud store, but a local copy is stored on the app file system, which may be backed by Azure Files from the storage account specified when the function app was created.
188
+
169
189
### FTP
170
190
171
191
You can use FTP to directly transfer files to Azure Functions.
@@ -174,6 +194,8 @@ You can use FTP to directly transfer files to Azure Functions.
174
194
175
195
>__When to use it:__ In general, we recommend other deployment methods. When you publish by using FTP, you must [manually sync triggers](#trigger-syncing).
176
196
197
+
>__Where app content is stored:__ App content is stored on the file system, which may be backed by Azure Files from the storage account specified when the function app was created.
198
+
177
199
### Portal editing
178
200
179
201
In the portal-based editor, you can directly edit the files that are in your function app (essentially deploying every time you save your changes).
@@ -186,6 +208,8 @@ In the portal-based editor, you can directly edit the files that are in your fun
>__Where app content is stored:__ App content is stored on the file system, which may be backed by Azure Files from the storage account specified when the function app was created.
212
+
189
213
The following table shows the operating systems and languages that support portal editing:
190
214
191
215
| Language | Windows Consumption | Windows Premium | Windows Dedicated | Linux Consumption | Linux Premium | Linux Dedicated |
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-infrastructure-as-code.md
+80-15Lines changed: 80 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,16 +52,22 @@ An Azure Functions deployment typically consists of these resources:
52
52
53
53
A storage account is required for a function app. You need a general purpose account that supports blobs, tables, queues, and files. For more information, see [Azure Functions storage account requirements](storage-considerations.md#storage-account-requirements).
You must also specify the `AzureWebJobsStorage` property as an app setting in the site configuration. If the function app doesn't use Application Insights for monitoring, it should also specify `AzureWebJobsDashboard` as an app setting.
88
-
89
-
The Azure Functions runtime uses the `AzureWebJobsStorage` connection string to create internal queues. When Application Insights isn't enabled, the runtime uses the `AzureWebJobsDashboard` connection string to log to Azure Table storage and power the **Monitor** tab in the portal.
90
-
91
-
These properties are specified in the `appSettings` collection in the `siteConfig` object:
97
+
You must also specify the `AzureWebJobsStorage` connection in the site configuration. This can be set in the `appSettings` collection in the `siteConfig` object:
In some hosting plan options, function apps should also have an Azure Files content share, and they will need additional app settings referencing this storage account. These are covered later in this article as a part of the hosting plan options to which this applies.
147
+
148
+
#### Storage logs
149
+
150
+
Because the storage account is used for important function app data, you may want to monitor for modification of that content. To do this, you need to configure Azure Monitor resource logs for Azure Storage. In the following example, a Log Analytics workspace named `myLogAnalytics` is used as the destination for these logs. This same workspace can be used for the Application Insights resource defined later.
See [Monitoring Azure Storage](../storage/blobs/monitor-blob-storage.md) for instructions on how to work with these logs.
212
+
148
213
### Application Insights
149
214
150
215
Application Insights is recommended for monitoring your function apps. The Application Insights resource is defined with the type `Microsoft.Insights/components` and the kind **web**:
0 commit comments