Skip to content

Commit 6b6dfb0

Browse files
authored
PowerShell 7 and Functions v4 updates
1 parent 2be219f commit 6b6dfb0

File tree

1 file changed

+32
-7
lines changed

1 file changed

+32
-7
lines changed

articles/azure-functions/create-first-function-arc-custom-container.md

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,34 @@ On your local computer:
2121
# [C\#](#tab/csharp)
2222

2323
+ [.NET 6.0 SDK](https://dotnet.microsoft.com/download)
24-
+ [Azure Functions Core Tools version 4.x.](functions-run-local.md?tabs=v4%2Csharp#v2)
24+
+ [Azure Functions Core Tools version 4.x](functions-run-local.md?tabs=v4%2Ccsharp#install-the-azure-functions-core-tools)
2525
+ [Azure CLI](/cli/azure/install-azure-cli) version 2.4 or later.
2626
+ [Docker](https://docs.docker.com/install/)
2727
+ [Docker ID](https://hub.docker.com/signup)
2828

2929
# [JavaScript](#tab/nodejs)
3030

3131
+ [Node.js](https://nodejs.org/) version 12. Node.js version 10 is also supported.
32-
+ [Azure Functions Core Tools](functions-run-local.md#v2) version 3.0.3245.
32+
+ [Azure Functions Core Tools version 4.x.](functions-run-local.md?tabs=v4%2Cnode#install-the-azure-functions-core-tools).
3333
+ [Azure CLI](/cli/azure/install-azure-cli) version 2.4 or later.
3434
+ [Docker](https://docs.docker.com/install/)
3535
+ [Docker ID](https://hub.docker.com/signup)
3636

3737
# [Python](#tab/python)
3838

3939
+ [Python versions that are supported by Azure Functions](supported-languages.md#languages-by-runtime-version)
40-
+ [Azure Functions Core Tools](functions-run-local.md#v2) version 3.0.3245.
40+
+ [Azure Functions Core Tools version 4.x.](functions-run-local.md?tabs=v4%2Cpython#install-the-azure-functions-core-tools)
4141
+ [Azure CLI](/cli/azure/install-azure-cli) version 2.4 or later.
4242
+ [Docker](https://docs.docker.com/install/)
4343
+ [Docker ID](https://hub.docker.com/signup)
4444

45+
# [PowerShell](#tab/powershell)
46+
47+
+ [PowerShell 7](/powershell/scripting/install/installing-powershell-core-on-windows)
48+
+ [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+
+ 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.
51+
4552
---
4653

4754
[!INCLUDE [functions-arc-create-environment](../../includes/functions-arc-create-environment.md)]
@@ -88,6 +95,13 @@ In Azure Functions, a function project is the context for one or more individual
8895
```console
8996
func init LocalFunctionProj --python --docker
9097
```
98+
# [PowerShell](#tab/powershell)
99+
100+
101+
```console
102+
func init LocalFunctionProj --powershell --docker
103+
```
104+
91105
---
92106

93107
The `--docker` option generates a `Dockerfile` for the project, which defines a suitable custom container for use with Azure Functions and the selected runtime.
@@ -173,7 +187,7 @@ az storage account create --name <STORAGE_NAME> --location westeurope --resource
173187
```
174188

175189
> [!NOTE]
176-
> A storage account is currently required by Azure Functions tooling.
190+
> 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.
177191
178192
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.
179193

@@ -183,18 +197,24 @@ Run the [az functionapp create](/cli/azure/functionapp#az-functionapp-create) co
183197

184198
# [C\#](#tab/csharp)
185199
```azurecli
186-
az functionapp create --resource-group MyResourceGroup --name <APP_NAME> --custom-location <CUSTOM_LOCATION_ID> --storage-account <STORAGE_NAME> --functions-version 3 --runtime dotnet --deployment-container-image-name <DOCKER_ID>/azurefunctionsimage:v1.0.0
200+
az functionapp create --resource-group MyResourceGroup --name <APP_NAME> --custom-location <CUSTOM_LOCATION_ID> --storage-account <STORAGE_NAME> --functions-version 4 --runtime dotnet --deployment-container-image-name <DOCKER_ID>/azurefunctionsimage:v1.0.0
187201
```
188202

189203
# [JavaScript](#tab/nodejs)
190204
```azurecli
191-
az functionapp create --resource-group MyResourceGroup --name <APP_NAME> --custom-location <CUSTOM_LOCATION_ID> --storage-account <STORAGE_NAME> --functions-version 3 --runtime node --runtime-version 12 --deployment-container-image-name <DOCKER_ID>/azurefunctionsimage:v1.0.0
205+
az functionapp create --resource-group MyResourceGroup --name <APP_NAME> --custom-location <CUSTOM_LOCATION_ID> --storage-account <STORAGE_NAME> --functions-version 4 --runtime node --runtime-version 12 --deployment-container-image-name <DOCKER_ID>/azurefunctionsimage:v1.0.0
192206
```
193207

194208
# [Python](#tab/python)
195209
```azurecli
196-
az functionapp create --resource-group MyResourceGroup --name <APP_NAME> --custom-location <CUSTOM_LOCATION_ID> --storage-account <STORAGE_NAME> --functions-version 3 --runtime python --runtime-version 3.8 --deployment-container-image-name <DOCKER_ID>/azurefunctionsimage:v1.0.0
210+
az functionapp create --resource-group MyResourceGroup --name <APP_NAME> --custom-location <CUSTOM_LOCATION_ID> --storage-account <STORAGE_NAME> --functions-version 4 --runtime python --runtime-version 3.8 --deployment-container-image-name <DOCKER_ID>/azurefunctionsimage:v1.0.0
197211
```
212+
# [PowerShell](#tab/powershell)
213+
214+
```azurecli
215+
az functionapp create --resource-group myResourceGroup --name <APP_NAME> --custom-location <CUSTOM_LOCATION_ID> --storage-account <STORAGE_NAME> --functions-version 4 --runtime powershell --runtime-version 7.0
216+
```
217+
198218
---
199219

200220
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 +257,9 @@ Now that you have your function app running in a container an Azure Arc-enabled
237257
> [!div class="nextstepaction"]
238258
> [Connect to an Azure Storage queue](functions-add-output-binding-storage-queue-cli.md?pivots=programming-language-python)
239259
260+
# [PowerShell](#tab/powershell)
261+
262+
> [!div class="nextstepaction"]
263+
> [Connect to an Azure Storage queue](functions-add-output-binding-storage-queue-cli.md?pivots=programming-language-powershell)
264+
240265
---

0 commit comments

Comments
 (0)