【问题标题】:Azure Resource Group Template for App Services "Mobile App"应用服务“移动应用”的 Azure 资源组模板
【发布时间】:2015-11-11 02:03:30
【问题描述】:

我正在尝试通过New-AzureRmResourceGroupDeployment找到用于应用服务“移动应用”部署的正确模板

我查看了 Web 应用程序的模板,但似乎没有任何东西可以指定移动应用程序的类型或种类 https://github.com/Azure/azure-resource-manager-schemas/blob/master/schemas/2015-08-01/Microsoft.Web.json

【问题讨论】:

    标签: powershell azure azure-resource-manager


    【解决方案1】:

    您可以将“种类”属性添加到网站资源,例如

           {
            "name": "[parameters('siteName')]",
            "type": "Microsoft.Web/sites",
            "location": "[resourceGroup().location]",
            "apiVersion": "2014-06-01",
            "kind": "mobileapp" ...
    

    【讨论】:

    • 是否需要添加站点扩展并为"type": "Microsoft.AppService/apiapp 定义新资源。移动应用程序是 apiapp 还是 webapp 的一种类型,因此上述内容就足够了吗?
    • 移动应用程序只是一种 webapp/site - 所以只需将“kind”属性添加到 Microsoft.Web/sites 资源。 (以上就足够了)。
    • 知道记录在哪里吗? “kind”属性中还能包含什么?理想情况下,我想将其添加为 ARM 参数,因此如果它不是移动应用程序,我需要知道其中的内容...
    • 它看起来像标准 Web 应用的“app”,Azure Functions 应用的“functionApp”......
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-04-10
    • 2021-02-23
    相关资源
    最近更新 更多