【问题标题】:Azure Service Plan - Convert Consumption App to Premium AppAzure 服务计划 - 将消费应用转换为高级应用
【发布时间】:2020-04-10 20:40:31
【问题描述】:

标题基本上说明了一切。我有一个关于消费计划的功能应用程序,我需要将它放到 P2V2 上。是否可以转换消费计划,还是只需要重新部署到新的资源组?

【问题讨论】:

    标签: azure azure-functions azure-web-app-service azure-resource-group


    【解决方案1】:

    很好的问题 MrRobot。不幸的是,没有官方方法可以将基于消费的函数应用程序转移到专用的应用程序服务计划(基本、标准、P2v2 等)中。您必须将设置重新部署到使用专用硬件创建的新功能应用程序中。

    如果您有任何其他问题或疑虑,请告诉我。

    编辑:为了更加清晰,我建议查看this 以获取有关如何轻松复制您的 Function App 的信息。

    此外,某些客户可以进行切换,但由于需要将您的应用部署到支持 P2v2 的 Web 空间(这又是一个小群体),因此客户数量非常少。有关切换的示例,请查看here。如果您无法在基于消费的 Function App 的资源组中创建 P2v2 Function App,则您可能没有资格使用 this 解决方案,需要手动部署到专用的 Function App。

    【讨论】:

      【解决方案2】:

      试试这个:

      1. 创建新的 AppService 计划

      2. 打开 CloudShell (PowerShell)

      3. 运行命令

        • Select-AzureRmSubscription -SubscriptionId "[id]"
        • Set-AzureRmWebApp -Name "[function name]" -ResourceGroupName "[resource group]" -AppServicePlan "[new app service plan name]"

      来源:https://github.com/Azure/Azure-Functions/issues/155#issuecomment-619980271


      反之亦然,将功能从应用服务计划移动到消费计划,使用 Azure 资源浏览器:

      来源: https://www.gitmemory.com/issue/Azure/Azure-Functions/155/747559677 通过使用https://resources.azure.com/ 网站,我能够将我的功能从应用服务计划移回消费计划。

      Enter edit mode, find your Function App and change the following:
      
      {
        serverFarmId: "..../<your-consumption-app-service-name>"
        ...
        // Scroll a bit down
        sku: "Dynamic"
      }
      Update the resource and you are done.
      
      Make sure that you turn Always On off in the App Service Plan settings before the resource update to make this work.
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2022-11-02
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-05-30
        相关资源
        最近更新 更多