【问题标题】:Define WebApp slots in Resource Manager Template在资源管理器模板中定义 WebApp 插槽
【发布时间】:2016-03-14 11:21:52
【问题描述】:

我无法找到有关使用资源管理器模板以编程方式向 WebApps 添加插槽的信息/指南。我的基本配置运行良好,创建了 WebApp 本身、SQL 服务器、SQL DB 等,但我也很想完成这些插槽,以便我可以将它们用于开发/测试构建。

有人知道这方面的好资源吗?

【问题讨论】:

    标签: azure deployment azure-resource-manager dsc


    【解决方案1】:

    我正在使用以下 ARM 模板为 Azure 应用服务预配部署槽:

    {
        "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
        "contentVersion": "1.0.0.0",
        "parameters": {
            "siteName": {
                "type": "string"
            },
            "slotName": {
                "type": "string"
            }
        },
        "resources": [
            {
                "apiVersion": "2015-04-01",
                "type": "Microsoft.Web/Sites/Slots",
                "name": "[concat(parameters('siteName'), '/', parameters('slotName'))]",
                "location": "[resourceGroup().location]",
                "properties": {},
                "resources": []
            }
        ]
    }
    

    希望这会有所帮助。

    【讨论】:

      【解决方案2】:

      我在 GitHub 上找到了这些 templates

      另外 - 您是否看过或使用过 Azure 资源管理器可视化工具?很棒的资源http://armviz.io/#/

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2023-03-20
        • 2015-11-28
        • 1970-01-01
        相关资源
        最近更新 更多