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
+[Azure Functions Core Tools version 4.x.](functions-run-local.md?tabs=v4%2Cpowershell#install-the-azure-functions-core-tools)
45
+
+[Azure CLI](/cli/azure/install-azure-cli) version 2.4 or later
46
+
+ PowerShell 7 requires version 1.2.5 of the connectedk8s Azure CLI extension, or a later version. It also requires version 0.1.3 of the appservice-kube Azure CLI extension, or a later version. Make sure you install the correct version of both of these extensions as you complete this quickstart article.
40
47
41
48
---
42
49
@@ -84,6 +91,13 @@ In Azure Functions, a function project is the unit of deployment and execution f
84
91
```console
85
92
func init LocalFunctionProj --python
86
93
```
94
+
95
+
# [PowerShell](#tab/powershell)
96
+
97
+
98
+
```console
99
+
func init LocalFunctionProj --powershell
100
+
```
87
101
88
102
---
89
103
@@ -108,7 +122,7 @@ In Azure Functions, a function project is the unit of deployment and execution f
108
122
109
123
Before you can deploy your function code to your new App Service Kubernetes environment, you need to create two more resources:
110
124
111
-
- A [Storage account](../storage/common/storage-account-create.md), which is currently required by tooling and isn't part of the environment.
125
+
- A [Storage account](../storage/common/storage-account-create.md). While this article creates a storage account, in some cases a storage account may not be required. For more information, see [Azure Arc-enabled clusters](storage-considerations.md#azure-arc-enabled-clusters) in the storage considerations article.
112
126
- A function app, which provides the context for executing your function code. The function app runs in the App Service Kubernetes environment and maps to your local function project. A function app lets you group functions as a logical unit for easier management, deployment, and sharing of resources.
> A storage account is currently required by Azure Functions tooling.
140
+
> In some cases, a storage account may not be required. For more information, see [Azure Arc-enabled clusters](storage-considerations.md#azure-arc-enabled-clusters) in the storage considerations article.
127
141
128
142
In the previous example, replace `<STORAGE_NAME>` with a name that is appropriate to you and unique in Azure Storage. Names must contain three to 24 characters numbers and lowercase letters only. `Standard_LRS` specifies a general-purpose account, which is [supported by Functions](storage-considerations.md#storage-account-requirements). The `--location` value is a standard Azure region.
129
143
@@ -133,25 +147,32 @@ Run the [az functionapp create](/cli/azure/functionapp#az-functionapp-create) co
In this example, replace `<CUSTOM_LOCATION_ID>` with the ID of the custom location you determined for the App Service Kubernetes environment. Also, replace `<STORAGE_NAME>` with the name of the account you used in the previous step, and replace `<APP_NAME>` with a globally unique name appropriate to you.
Because it can take some time for a full deployment to complete on an Azure Arc-enabled Kubernetes cluster, you may want to re-run the following command to verify your published functions:
175
+
Because it can take some time for a full deployment to complete on an Azure Arc-enabled Kubernetes cluster, you may want to rerun the following command to verify your published functions:
155
176
156
177
```command
157
178
func azure functionapp list-functions
@@ -178,4 +199,9 @@ Now that you have your function app running in a container an Azure Arc-enabled
178
199
> [!div class="nextstepaction"]
179
200
> [Connect to an Azure Storage queue](functions-add-output-binding-storage-queue-cli.md?pivots=programming-language-python)
180
201
202
+
# [PowerShell](#tab/powershell)
203
+
204
+
> [!div class="nextstepaction"]
205
+
> [Connect to an Azure Storage queue](functions-add-output-binding-storage-queue-cli.md?pivots=programming-language-powershell)
+[Azure Functions Core Tools version 4.x](functions-run-local.md?tabs=v4%2Cpowershell#install-the-azure-functions-core-tools)
49
+
+[Azure CLI](/cli/azure/install-azure-cli) version 2.4 or later
50
+
+[Docker](https://docs.docker.com/install/)
51
+
+[Docker ID](https://hub.docker.com/signup)
52
+
+ PowerShell 7 requires recent versions of two Azure CLI extensions. Make sure you install the correct versions of the following extensions as you complete this quickstart article:
53
+
+`connectedk8s` version 1.2.5, or a later version
54
+
+`appservice-kube` version 0.1.3 or a later version
@@ -88,6 +99,13 @@ In Azure Functions, a function project is the context for one or more individual
88
99
```console
89
100
func init LocalFunctionProj --python --docker
90
101
```
102
+
# [PowerShell](#tab/powershell)
103
+
104
+
105
+
```console
106
+
func init LocalFunctionProj --powershell --docker
107
+
```
108
+
91
109
---
92
110
93
111
The `--docker` option generates a `Dockerfile` for the project, which defines a suitable custom container for use with Azure Functions and the selected runtime.
@@ -158,7 +176,7 @@ Docker Hub is a container registry that hosts images and provides image and cont
158
176
159
177
Before you can deploy your container to your new App Service Kubernetes environment, you need to create two more resources:
160
178
161
-
- A [Storage account](../storage/common/storage-account-create.md), which is currently required by tooling and isn't part of the environment.
179
+
- A [Storage account](../storage/common/storage-account-create.md). While this article creates a storage account, in some cases a storage account may not be required. For more information, see [Azure Arc-enabled clusters](storage-considerations.md#azure-arc-enabled-clusters) in the storage considerations article.
162
180
- A function app, which provides the context for running your container. The function app runs in the App Service Kubernetes environment and maps to your local function project. A function app lets you group functions as a logical unit for easier management, deployment, and sharing of resources.
> A storage account is currently required by Azure Functions tooling.
194
+
> In some cases, a storage account may not be required. For more information, see [Azure Arc-enabled clusters](storage-considerations.md#azure-arc-enabled-clusters) in the storage considerations article.
177
195
178
196
In the previous example, replace `<STORAGE_NAME>` with a name that is appropriate to you and unique in Azure Storage. Names must contain three to 24 characters numbers and lowercase letters only. `Standard_LRS` specifies a general-purpose account, which is [supported by Functions](storage-considerations.md#storage-account-requirements). The `--location` value is a standard Azure region.
179
197
@@ -183,18 +201,24 @@ Run the [az functionapp create](/cli/azure/functionapp#az-functionapp-create) co
In this example, replace `<CUSTOM_LOCATION_ID>` with the ID of the custom location you determined for the App Service Kubernetes environment. Also, replace `<STORAGE_NAME>` with the name of the account you used in the previous step, `<APP_NAME>` with a globally unique name appropriate to you, and `<DOCKER_ID>` with your Docker Hub ID.
@@ -237,4 +261,9 @@ Now that you have your function app running in a container an Azure Arc-enabled
237
261
> [!div class="nextstepaction"]
238
262
> [Connect to an Azure Storage queue](functions-add-output-binding-storage-queue-cli.md?pivots=programming-language-python)
239
263
264
+
# [PowerShell](#tab/powershell)
265
+
266
+
> [!div class="nextstepaction"]
267
+
> [Connect to an Azure Storage queue](functions-add-output-binding-storage-queue-cli.md?pivots=programming-language-powershell)
Copy file name to clipboardExpand all lines: articles/azure-functions/storage-considerations.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,6 +93,18 @@ You can explicitly set a specific host ID for your function app in the applicati
93
93
94
94
When the collision occurs between slots, you may need to mark this setting as a slot setting. To learn how to create app settings, see [Work with application settings](functions-how-to-use-azure-function-app-settings.md#settings).
95
95
96
+
## Azure Arc-enabled clusters
97
+
98
+
When your function app is deployed to an Azure Arc-enabled Kubernetes cluster, a storage account may not be required by your function app. In this case, a storage account is only required by Functions when your function app uses a trigger that requires storage. The following table indicates which triggers may require a storage account and which don't.
To create a function app on an Azure Arc-enabled Kubernetes cluster without storage, you must use the Azure CLI command [az functionapp create](/cli/azure/functionapp#az-functionapp-create). The version of the Azure CLI must include version 0.1.7 or a later version of the [appservice-kube extension](/cli/azure/appservice/kube). Use the `az --version` command to verify that the extension is installed and is the correct version.
105
+
106
+
Creating your function app resources using methods other than the Azure CLI requires an existing storage account. If you plan to use any triggers that require a storage account, you should create the account before you create the function app.
107
+
96
108
## Create an app without Azure Files
97
109
98
110
Azure Files is set up by default for Premium and non-Linux Consumption plans to serve as a shared file system in high-scale scenarios. The file system is used by the platform for some features such as log streaming, but it primarily ensures consistency of the deployed function payload. When an app is [deployed using an external package URL](./run-functions-from-deployment-package.md), the app content is served from a separate read-only file system. This means that you can create your function app without Azure Files. If you create your function app with Azure Files, a writeable file system is still provided. However, this file system may not be available for all function app instances.
0 commit comments