zoukankan      html  css  js  c++  java
  • xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

    Serverless & FaaS

    Function as a Service

    通过 Functions(一个事件驱动型无服务器计算平台,还可以解决复杂的业务流程问题)更加高效地进行开发;
    在本地构建和调试,而无需额外的设置,在云中大规模部署和操作,并使用触发器和绑定集成服务;

    Azure

    https://www.cnblogs.com/xgqfrms/p/12899819.html

    https://portal.azure.com/#create/Microsoft.FunctionApp

    模板

    {
        "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
        "contentVersion": "1.0.0.0",
        "parameters": {
            "subscriptionId": {
                "type": "string"
            },
            "name": {
                "type": "string"
            },
            "location": {
                "type": "string"
            },
            "hostingEnvironment": {
                "type": "string"
            },
            "hostingPlanName": {
                "type": "string"
            },
            "serverFarmResourceGroup": {
                "type": "string"
            },
            "alwaysOn": {
                "type": "bool"
            },
            "storageAccountName": {
                "type": "string"
            },
            "linuxFxVersion": {
                "type": "string"
            },
            "sku": {
                "type": "string"
            },
            "skuCode": {
                "type": "string"
            },
            "workerSize": {
                "type": "string"
            },
            "workerSizeId": {
                "type": "string"
            },
            "numberOfWorkers": {
                "type": "string"
            }
        },
        "resources": [
            {
                "apiVersion": "2018-11-01",
                "name": "[parameters('name')]",
                "type": "Microsoft.Web/sites",
                "kind": "functionapp,linux",
                "location": "[parameters('location')]",
                "tags": null,
                "dependsOn": [
                    "[concat('Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]",
                    "[concat('Microsoft.Storage/storageAccounts/', parameters('storageAccountName'))]"
                ],
                "properties": {
                    "name": "[parameters('name')]",
                    "siteConfig": {
                        "appSettings": [
                            {
                                "name": "FUNCTIONS_EXTENSION_VERSION",
                                "value": "~3"
                            },
                            {
                                "name": "FUNCTIONS_WORKER_RUNTIME",
                                "value": "node"
                            },
                            {
                                "name": "AzureWebJobsStorage",
                                "value": "[concat('DefaultEndpointsProtocol=https;AccountName=',parameters('storageAccountName'),';AccountKey=',listKeys(resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccountName')), '2019-06-01').keys[0].value,';EndpointSuffix=','core.windows.net')]"
                            }
                        ],
                        "linuxFxVersion": "[parameters('linuxFxVersion')]"
                    },
                    "serverFarmId": "[concat('/subscriptions/', parameters('subscriptionId'),'/resourcegroups/', parameters('serverFarmResourceGroup'), '/providers/Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]",
                    "hostingEnvironment": "[parameters('hostingEnvironment')]",
                    "clientAffinityEnabled": false
                }
            },
            {
                "apiVersion": "2018-11-01",
                "name": "[parameters('hostingPlanName')]",
                "type": "Microsoft.Web/serverfarms",
                "location": "[parameters('location')]",
                "kind": "linux",
                "tags": null,
                "dependsOn": [],
                "properties": {
                    "name": "[parameters('hostingPlanName')]",
                    "workerSize": "[parameters('workerSize')]",
                    "workerSizeId": "[parameters('workerSizeId')]",
                    "numberOfWorkers": "[parameters('numberOfWorkers')]",
                    "reserved": true,
                    "hostingEnvironment": "[parameters('hostingEnvironment')]"
                },
                "sku": {
                    "Tier": "[parameters('sku')]",
                    "Name": "[parameters('skuCode')]"
                }
            },
            {
                "apiVersion": "2019-06-01",
                "type": "Microsoft.Storage/storageAccounts",
                "name": "[parameters('storageAccountName')]",
                "location": "[parameters('location')]",
                "tags": null,
                "sku": {
                    "name": "Standard_LRS"
                },
                "properties": {
                    "supportsHttpsTrafficOnly": true
                }
            }
        ]
    }
    
    

    Flag Counter

    ©xgqfrms 2012-2020

    www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


  • 相关阅读:
    dedecmsV5.7和discuz!X3.4整合之后免激活登陆
    dedecms织梦文章微信分享带缩略图与简介
    关于PHP的mkdir函数
    关于discuz的fap.php 漏洞问题
    discuzX3.4安装之后,没有任何样式怎么办?
    阿里云 RDS for MySQL支持什么引擎
    PHP随机生成要求位数个字符(大小写字母+数字)
    PHP json_decode为什么将json字符串转成数组是对象格式?
    PHP实用的功能函数
    css实现三角形图标
  • 原文地址:https://www.cnblogs.com/xgqfrms/p/12901320.html
Copyright © 2011-2022 走看看