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
> The RabbitMQ bindings are only fully supported on [Premium](functions-premium-plan.md) and [Dedicated App Service](dedicated-plan.md) plans. Consumption plans aren't supported.
16
+
> The RabbitMQ bindings are only fully supported on [Premium](functions-premium-plan.md) and [Dedicated App Service](dedicated-plan.md) plans. Flex Consumption and Consumption plans aren't yet supported.
17
17
> RabbitMQ bindings are only supported for Azure Functions version 3.x and later versions.
18
18
19
19
Azure Functions integrates with [RabbitMQ](https://www.rabbitmq.com/) via [triggers and bindings](./functions-triggers-bindings.md). The Azure Functions RabbitMQ extension allows you to send and receive messages using the RabbitMQ API with Functions.
@@ -436,7 +436,7 @@ For more information about the `sku` object, see [`SkuDefinition`](/azure/templa
436
436
::: zone pivot="dedicated-plan"
437
437
In the Dedicated (App Service) plan, your function app runs on dedicated VMs on Basic, Standard, and Premium SKUs in App Service plans, similar to web apps. For more information, see [Dedicated plan](./dedicated-plan.md).
438
438
439
-
For a sample Bicep file/Azure Resource Manager template, see [Function app on Azure App Service plan]
439
+
For a sample Bicep file/Azure Resource Manager template, see [Function app on Azure App Service plan].
440
440
441
441
In Functions, the Dedicated plan is just a regular App Service plan, which is defined by a `serverfarm` resource. You must provide at least the `name` value. For a list of supported plan names, see the `--sku` setting in [`az appservice plan create`](/cli/azure/appservice/plan#az-appservice-plan-create) for the current list of supported values for a Dedicated plan.
442
442
@@ -1208,7 +1208,13 @@ Your Bicep file or ARM template can optionally also define a deployment for your
In the Flex Consumption plan, your project code is deployed from a zip-compressed package published to a Blob storage container. For more information, see [Deployment](flex-consumption-plan.md#deployment). The specific storage account and container used for deployments, the authentication method, and credentials are set in the `functionAppConfig.deployment.storage` element of the `properties` for the site. The container and any application settings must exist when the app is created. For an example of how to create the storage container, see [Deployment container](#deployment-container).
1211
+
The Flex Consumption plan maintains your project code in zip-compressed package file in a blob storage container known as the _deployment container_. You can configure both the storage account and container used for deployment. For more information, see [Deployment](flex-consumption-plan.md#deployment).
1212
+
1213
+
You must use _[one deploy](functions-deployment-technologies.md#one-deploy)_ to publish your code package to the deployment container. During an ARM or Bicep deployment, you can do this by [defining a package source](#deployment-package) that uses the `/onedeploy` extension. If you choose to instead directly upload your package to the container, the package doesn't get automatically deployed.
1214
+
1215
+
### Deployment container
1216
+
1217
+
The specific storage account and container used for deployments, the authentication method, and credentials are set in the `functionAppConfig.deployment.storage` element of the `properties` for the site. The container and any application settings must exist when the app is created. For an example of how to create the storage container, see [Deployment container](#deployment-container).
1212
1218
1213
1219
This example uses a system assigned managed identity to access the specified blob storage container, which is created elsewhere in the deployment:
1214
1220
@@ -1238,26 +1244,43 @@ For a complete reference example, see [this ARM template](https://github.com/Azu
1238
1244
1239
1245
---
1240
1246
1247
+
This example requires you to know the GUID value for the role being assigned. You can get this ID value for any friendly role name by using the [az role definition list](/cli/azure/role/definition#az-role-definition-list) command, as in this example:
1248
+
1249
+
```azure-cli
1250
+
az role definition list --output tsv --query "[?roleName=='Storage Blob Data Owner'].{name:name}"
1251
+
```
1252
+
1241
1253
When using a connection string instead of managed identities, you need to instead set the `authentication.type` to `StorageAccountConnectionString` and set `authentication.storageAccountConnectionStringName` to the name of the application setting that contains the deployment storage account connection string.
1242
-
::: zone-end
1243
-
::: zone pivot="consumption-plan"
1244
-
Your Bicep file or ARM template can optionally also define a deployment for your function code using a [zip deployment package](./deployment-zip-push.md).
1245
-
::: zone-end
1246
-
::: zone pivot="dedicated-plan,premium-plan,consumption-plan"
1247
-
To successfully deploy your application by using Azure Resource Manager, it's important to understand how resources are deployed in Azure. In most examples, top-level configurations are applied by using `siteConfig`. It's important to set these configurations at a top level, because they convey information to the Functions runtime and deployment engine. Top-level information is required before the child `sourcecontrols/web` resource is applied. Although it's possible to configure these settings in the child-level `config/appSettings` resource, in some cases your function app must be deployed _before_`config/appSettings` is applied.
1248
1254
1249
-
##Zip deployment package
1255
+
### Deployment package
1250
1256
1251
-
Zip deployment is a recommended way to deploy your function app code. By default, functions that use zip deployment run in the deployment package itself. For more information, including the requirements for a deployment package, see [Zip deployment for Azure Functions](deployment-zip-push.md). When using resource deployment automation, you can reference the .zip deployment package in your Bicep or ARM template.
1257
+
The Flex Consumption plan uses _one deploy_ for deploying your code project. The code package itself is the same as you would use for zip deployment in other Functions hosting plans. However, the name of the package file itself must be `released-package.zip`.
1252
1258
1253
-
To use zip deployment in your template, set the `WEBSITE_RUN_FROM_PACKAGE` setting in the app to `1` and include the `/zipDeploy` resource definition.
1254
-
::: zone-end
1255
-
::: zone pivot="consumption-plan"
1256
-
For a Consumption plan on Linux, instead set the URI of the deployment package directly in the `WEBSITE_RUN_FROM_PACKAGE` setting, as shown in [this example template](https://github.com/Azure-Samples/function-app-arm-templates/tree/main/function-app-linux-consumption#L152).
1257
-
::: zone-end
1258
-
::: zone pivot="dedicated-plan,premium-plan,consumption-plan"
1259
-
This example adds a zip deployment source to an existing app:
1259
+
To include a one deploy package in your template, use the `/onedeploy` resource definition for the remote URL that contains the deployment package. The Functions host must be able to access both this remote package source and the deployment container.
1260
+
1261
+
This example adds a one deploy source to an existing app:
1262
+
1263
+
### [Bicep](#tab/bicep)
1264
+
1265
+
```bicep
1266
+
@description('The name of the function app.')
1267
+
param functionAppName string
1260
1268
1269
+
@description('The location into which the resources should be deployed.')
1270
+
param location string = resourceGroup().location
1271
+
1272
+
@description('The zip content URL for released-package.zip.')
@@ -1298,6 +1321,27 @@ This example adds a zip deployment source to an existing app:
1298
1321
]
1299
1322
}
1300
1323
```
1324
+
---
1325
+
1326
+
::: zone-end
1327
+
::: zone pivot="consumption-plan"
1328
+
Your Bicep file or ARM template can optionally also define a deployment for your function code using a [zip deployment package](./deployment-zip-push.md).
1329
+
::: zone-end
1330
+
::: zone pivot="dedicated-plan,premium-plan,consumption-plan"
1331
+
To successfully deploy your application by using Azure Resource Manager, it's important to understand how resources are deployed in Azure. In most examples, top-level configurations are applied by using `siteConfig`. It's important to set these configurations at a top level, because they convey information to the Functions runtime and deployment engine. Top-level information is required before the child `sourcecontrols/web` resource is applied. Although it's possible to configure these settings in the child-level `config/appSettings` resource, in some cases your function app must be deployed _before_`config/appSettings` is applied.
1332
+
1333
+
## Zip deployment package
1334
+
1335
+
Zip deployment is a recommended way to deploy your function app code. By default, functions that use zip deployment run in the deployment package itself. For more information, including the requirements for a deployment package, see [Zip deployment for Azure Functions](deployment-zip-push.md). When using resource deployment automation, you can reference the .zip deployment package in your Bicep or ARM template.
1336
+
1337
+
To use zip deployment in your template, set the `WEBSITE_RUN_FROM_PACKAGE` setting in the app to `1` and include the `/zipDeploy` resource definition.
1338
+
::: zone-end
1339
+
::: zone pivot="consumption-plan"
1340
+
For a Consumption plan on Linux, instead set the URI of the deployment package directly in the `WEBSITE_RUN_FROM_PACKAGE` setting, as shown in [this example template](https://github.com/Azure-Samples/function-app-arm-templates/tree/main/function-app-linux-consumption#L152).
1341
+
::: zone-end
1342
+
::: zone pivot="dedicated-plan,premium-plan,consumption-plan"
1343
+
This example adds a zip deployment source to an existing app:
Keep the following things in mind when including zip deployment resources in your template:
@@ -1838,7 +1922,7 @@ These application settings are required for container deployments:
1838
1922
1839
1923
Keep these considerations in mind when working with site and application settings using Bicep files or ARM templates:
1840
1924
::: zone pivot="flex-consumption-plan"
1841
-
+ The optional `alwaysReady` setting contains an array of one or more `{name,instanceCount}` objects, with one for each [per-function scale group](flex-consumption-plan.md#per-function-scaling). These are the scale groups being used to make always-ready scale decisions. This example sets always-ready counts for both the `http` group and a single function named `helloworld`, which is of a non-grouped trigger type:
1925
+
+ The optional `alwaysReady` setting contains an array of one or more `{name,instanceCount}` objects, with one for each [per-function scale group](flex-consumption-plan.md#per-function-scaling). These are the scale groups being used to make always-ready scale decisions. This example sets always-ready counts for both the `http` group and a single function named `helloworld`, which is of a nongrouped trigger type:
1842
1926
### [Bicep](#tab/bicep)
1843
1927
```bicep
1844
1928
alwaysReady: [
@@ -2068,7 +2152,7 @@ Here's an example that uses HTML:
2068
2152
2069
2153
### Deploy using PowerShell
2070
2154
2071
-
The following PowerShell commands create a resource group and deploy a Bicep file or ARM template that creates a function app with its required resources. To run locally, you must have [Azure PowerShell](/powershell/azure/install-azure-powershell) installed. Run [`Connect-AzAccount`](/powershell/module/az.accounts/connect-azaccount) to sign in.
2155
+
The following PowerShell commands create a resource group and deploy a Bicep file or ARM template that creates a function app with its required resources. To run locally, you must have [Azure PowerShell](/powershell/azure/install-azure-powershell) installed. To sign in to Azure, you must first run [`Connect-AzAccount`](/powershell/module/az.accounts/connect-azaccount).
0 commit comments