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
description: Find links to bash scripts for Azure Functions that use the Azure CLI. Learn how to create a function app that allows integration and deployment.
These end-to-end Azure CLI scripts are provided to help you learn how to provision and managing the Azure resources required by Azure Functions. You must use the [Azure Functions Core Tools](functions-run-local.md) to create actual Azure Functions code projects from the command line on your local computer and deploy code to these Azure resources. For a complete end-to-end example of developing and deploying from the command line using both Core Tools and the Azure CLI, see one of these language-specific command line quickstarts:
13
+
These end-to-end Azure CLI scripts are provided to help you learn how to provision and manage the Azure resources required by Azure Functions. You must use the [Azure Functions Core Tools](functions-run-local.md) to create actual Azure Functions code projects from the command line on your local computer and deploy code to these Azure resources. For a complete end-to-end example of developing and deploying from the command line using both Core Tools and the Azure CLI, see one of these language-specific command line quickstarts:
The following table includes links to bash scripts that you can use to create and manage the Azure resources required by Azure Functions using the Azure CLI.
22
+
The following table includes links to bash scripts that you can use to create and manage the Azure resources required by Azure Functions using the Azure CLI. These scripts are maintained in the [Azure-Samples/azure-cli-samples](https://github.com/Azure-Samples/azure-cli-samples/tree/master/azure-functions) GitHub repository.
23
23
24
24
<aid="create"></a>
25
25
26
26
| Create app | Description |
27
27
|---|---|
28
-
|[Create a functionapp for serverless execution](scripts/functions-cli-create-serverless.md)|Create a function app in a Consumption plan. |
29
-
|[Create a serverless Python functionapp](scripts/functions-cli-create-serverless-python.md)|Create a Python function app in a Consumption plan. |
30
-
|[Create a functionapp in a scalable Premium plan](scripts/functions-cli-create-premium-plan.md)|Create a function app in a Premium plan. |
31
-
|[Create a functionapp in a dedicated (App Service) plan](scripts/functions-cli-create-app-service-plan.md)|Create a function app in a dedicated App Service plan. |
28
+
|[create-function-app-flex-consumption.sh](https://github.com/Azure-Samples/azure-cli-samples/tree/master/azure-functions/create-function-app-flex-consumption)|Creates a function app in a Flex Consumption plan with a user-assigned managed identity. **This is the recommended serverless hosting plan.**|
29
+
|[create-function-app-consumption.sh](https://github.com/Azure-Samples/azure-cli-samples/tree/master/azure-functions/create-function-app-consumption)|Creates a function app in a Consumption plan. |
30
+
|[create-function-app-premium-plan.sh](https://github.com/Azure-Samples/azure-cli-samples/tree/master/azure-functions/create-function-app-premium-plan)|Creates a function app in a Premium (Elastic Premium) plan. |
31
+
|[create-function-app-app-service-plan.sh](https://github.com/Azure-Samples/azure-cli-samples/tree/master/azure-functions/create-function-app-app-service-plan)|Creates a function app in a dedicated App Service plan. |
32
32
33
-
|Integrate| Description|
33
+
|Connect to services| Description|
34
34
|---|---|
35
-
|[Create a function app and connect to a storage account](scripts/functions-cli-create-function-app-connect-to-storage-account.md)| Create a function app and connect it to a storage account. |
36
-
|[Create a function app and connect to an Azure Cosmos DB](scripts/functions-cli-create-function-app-connect-to-cosmos-db.md)| Create a function app and connect it to an Azure Cosmos DB instance. |
37
-
|[Create a Python function app and mount an Azure Files share](scripts/functions-cli-mount-files-storage-linux.md)| By mounting a share to your Linux function app, you can leverage existing machine learning models or other data in your functions. |
35
+
|[create-function-app-connect-to-storage-account.sh](https://github.com/Azure-Samples/azure-cli-samples/tree/master/azure-functions/create-function-app-connect-to-storage)| Creates a function app in a Flex Consumption plan and connects it to a storage account using managed identity. |
36
+
|[create-function-app-connect-to-cosmos-db.sh](https://github.com/Azure-Samples/azure-cli-samples/tree/master/azure-functions/create-function-app-connect-to-cosmos-db)| Creates a function app in a Flex Consumption plan and connects it to Azure Cosmos DB using managed identity and RBAC. |
37
+
|[connect-azure-openai-resources.sh](https://github.com/Azure-Samples/azure-cli-samples/tree/master/azure-functions/connect-azure-openai-resources)| Creates a function app in a Flex Consumption plan and connects it to Azure OpenAI using managed identity. |
38
+
|[functions-cli-mount-files-storage-linux.sh](https://github.com/Azure-Samples/azure-cli-samples/tree/master/azure-functions/functions-cli-mount-files-storage-linux)| Creates a Linux function app and mounts an Azure Files share, which lets you leverage existing data or machine learning models in your functions. |
38
39
39
-
|Continuous deployment| Description|
40
+
|Deploy code| Description|
40
41
|---|---|
41
-
|[Deploy from GitHub](scripts/functions-cli-create-function-app-github-continuous.md)|Create a function app that deploys from a GitHub repository.|
42
+
|[deploy-function-app-with-function-github-continuous.sh](https://github.com/Azure-Samples/azure-cli-samples/tree/master/azure-functions/deploy-function-app-with-function-github-continuous)|Creates a function app in a Consumption plan and deploys code from a public GitHub repository. |
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-machine-learning-tensorflow.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
@@ -134,7 +134,7 @@ To modify the `classify` function to classify an image based on its contents, yo
134
134
To build your own model using the free tier of the Custom Vision Service, follow the instructions in the [sample project repository](https://github.com/Azure-Samples/functions-python-tensorflow-tutorial/blob/master/train-custom-vision-model.md).
135
135
136
136
> [!TIP]
137
-
> If you want to host your TensorFlow model independent of the function app, you can instead mount a file share containing your model to your Linux function app. To learn more, see [Mount a file share to a Python function app using Azure CLI](./scripts/functions-cli-mount-files-storage-linux.md).
137
+
> If you want to host your TensorFlow model independent of the function app, you can instead mount a file share containing your model to your Linux function app. To learn more, see [Mount file shares](storage-considerations.md#mount-file-shares).
138
138
139
139
1. In the *start* folder, run following command to copy the model files into the *classify* folder. Be sure to include `\*` in the command.
140
140
@@ -295,4 +295,4 @@ See also:
295
295
296
296
- [Deploy the function to Azure using Visual Studio Code](https://code.visualstudio.com/docs/python/tutorial-azure-functions).
- [Mount a file share to a Python function app using Azure CLI](./scripts/functions-cli-mount-files-storage-linux.md)
298
+
- [Azure CLI: Mount a file share to a Python function app](https://github.com/Azure-Samples/azure-cli-samples/tree/master/azure-functions/functions-cli-mount-files-storage-linux)
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-reference.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,7 +104,7 @@ When the function app and any other required resources don't already exist in Az
104
104
::: zone-end
105
105
+ Using [Visual Studio Code](./functions-develop-vs-code.md#publish-to-azure)
106
106
107
-
+ Programmatically using [Azure CLI](./scripts/functions-cli-create-serverless.md), [Azure PowerShell](./create-resources-azure-powershell.md#create-a-serverless-function-app-for-c), [ARM templates](functions-create-first-function-resource-manager.md), or [Bicep files](functions-create-first-function-bicep.md)
107
+
+ Programmatically using [Azure CLI](functions-cli-samples.md#create), [Azure PowerShell](./create-resources-azure-powershell.md#create-a-serverless-function-app-for-c), [ARM templates](functions-create-first-function-resource-manager.md), or [Bicep files](functions-create-first-function-bicep.md)
108
108
109
109
+ In the [Azure portal](functions-create-function-app-portal.md)
110
110
@@ -346,7 +346,7 @@ If you're configuring `AzureWebJobsStorage` using a storage account that uses th
346
346
347
347
#### Connecting to a resource in another tenant
348
348
349
-
If your function needs to connect to a resource in a different Microsoft Entra tenant, your connection needs to use a _federated identity credential_. This requires a user-assigned managed identity and a multi-tenant Entra ID app registration. You cannot use a system-assigned managed identity for cross-tenant connections.
349
+
If your function needs to connect to a resource in a different Microsoft Entra tenant, your connection needs to use a _federated identity credential_. This requires a user-assigned managed identity and a multitenant Entra ID app registration. You cannot use a system-assigned managed identity for cross-tenant connections.
350
350
351
351
> [!IMPORTANT]
352
352
> When you configure a trigger for a cross-tenant connection in the Consumption or Flex Consumption plan types, the platform no longer scales the function app based on that trigger.
@@ -355,7 +355,7 @@ To configure a cross-tenant identity-based connection, you first need to set up
355
355
356
356
1. In the tenant where your function app is deployed, [create a new user-assigned managed identity](/entra/identity/managed-identities-azure-resources/how-manage-user-assigned-managed-identities#create-a-user-assigned-managed-identity).
357
357
1.[Assign that identity](../app-service/overview-managed-identity.md?toc=%2Fazure%2Fazure-functions%2Ftoc.json#add-a-user-assigned-identity) to the function app.
358
-
1. In the same tenant, [create a multi-tenant Entra app registration](/entra/workload-id/workload-identity-federation-config-app-trust-managed-identity#configure-a-multi-tenant-app-registration) that represents the cross-tenant resource you want to access.
358
+
1. In the same tenant, [create a multitenant Entra app registration](/entra/workload-id/workload-identity-federation-config-app-trust-managed-identity#configure-a-multi-tenant-app-registration) that represents the cross-tenant resource you want to access.
359
359
1.[Add the managed identity as a federated identity credential for the app registration.](/entra/workload-id/workload-identity-federation-config-app-trust-managed-identity)
360
360
1. In the tenant where the resource is deployed, [create an enterprise application for the app registration](/entra/identity/enterprise-apps/create-service-principal-cross-tenant).
361
361
1. Assign permissions for the enterprise application to access the resource.
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-run-local.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -403,7 +403,7 @@ The following considerations apply to this kind of deployment:
403
403
404
404
+ Publishing overwrites existing files in the remote function app deployment.
405
405
406
-
+ You must have already [created a function app in your Azure subscription](functions-cli-samples.md#create). Core Tools deploys your project code to this function app resource. To learn how to create a function app from the command prompt or terminal window using the Azure CLI or Azure PowerShell, see [Create a Function App for serverless execution](./scripts/functions-cli-create-serverless.md). You can also [create these resources in the Azure portal](./functions-create-function-app-portal.md#create-a-function-app). You get an error when you try to publish to a `<FunctionAppName>` that doesn't exist in your subscription.
406
+
+ You must have already [created a function app in your Azure subscription](functions-cli-samples.md#create). Core Tools deploys your project code to this function app resource. To learn how to create a function app from the command prompt or terminal window using the Azure CLI or Azure PowerShell, see [Azure CLI Samples](functions-cli-samples.md#create). You can also [create these resources in the Azure portal](./functions-create-function-app-portal.md#create-a-function-app). You get an error when you try to publish to a `<FunctionAppName>` that doesn't exist in your subscription.
407
407
408
408
+ A project folder may contain language-specific files and directories that shouldn't be published. Excluded items are listed in a .funcignore file in the root project folder.
0 commit comments