Paul's secret mision "do this, and dont do that"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
- User-assigned managed identity is prefered. Beware if you do not select an identity to use in code (ClientId), it will default to system assigned.
- local development will make Connections to local emulators if they exist, and otherwise will make remote cloud connections to resource using identity based connections. Some resources like Service Bus, AI Cognitive, Open AI, and Datalake will
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$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
- run func cli in this folder
./func version
NewerOlder