General command to set
az functionapp scale config set --resource-group <RESOURCE_GROUP> --name <APP_NAME> --trigger-type http --trigger-settings perInstanceConcurrency=10e.g. set to 2 events per instance
| apiVersion: dapr.io/v1alpha1 | |
| kind: Component | |
| metadata: | |
| name: statestore | |
| spec: | |
| type: state.redis | |
| version: v1 | |
| metadata: | |
| # These settings will work out of the box if you use `helm install | |
| # bitnami/redis`. If you have your own setup, replace |
This shows how to take a simple Function App (e.g. the output of our client tools templates for a trigger or binding) or a simple sample and "modernize" it from using ConnectionStrings and secrets in favor of Managed Identity and RBAC.
| { | |
| "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | |
| "contentVersion": "1.0.0.0", | |
| "parameters": { | |
| "sites_py_flex_beta_function2_name": { | |
| "defaultValue": "py-flex-beta-function2", | |
| "type": "String" | |
| }, | |
| "serverfarms_py_flex_beta_function2FlexPlan_externalid": { | |
| "defaultValue": "/subscriptions/ca5ce512-88e1-44b1-97c6-22caf84fb2b0/resourceGroups/py-flex-beta-2/providers/Microsoft.Web/serverfarms/py-flex-beta-function2FlexPlan", |
unzip the tools that match your OS and Arch, and copy to your usr folder ~/funccli/Azure.Functions.Cli.osx-x64.4.0.5194
make the func cli executable
cd ~/funccli/Azure.Functions.Cli.osx-x64.4.0.5194
chmod +x func./func version