无法在同一资源组中创建Linux功能应用程序(消费计划)和Linux应用程序服务计划

时间:2020-01-10 20:04:14

标签: azure azure-functions azure-web-app-service azure-linux

我无法在资源组中创建一个Azure Function App(在Linux上按消费计划托管),该资源组中已经包含2个在Linux上托管的App Services。我从Azure门户收到一个错误,说“请求的功能在资源组中不可用”。 在同一个RG中在Linux上制定动态和应用服务计划是否有任何限制?

这是完整的错误: <b> { "Code": "BadRequest", "Message": "Requested feature is not available in resource group *******. Please try using a different resource group or create a new one.", "Target": null, "Details": [ { "Message": "Requested feature is not available in resource group ********. Please try using a different resource group or create a new one." }, { "Code": "BadRequest" }, { "ErrorEntity": { "ExtendedCode": "59324", "MessageTemplate": "Requested feature is not available in resource group {0}. Please try using a different resource group or create a new one.", "Parameters": [ "************" ], "Code": "BadRequest", "Message": "Requested feature is not available in resource group *******. Please try using a different resource group or create a new one." } } ], "Innererror": null } </b>

我还附上了我要创建的Function App的屏幕截图: Event-Store-issue

3 个答案:

答案 0 :(得分:2)

您找到解决方案了吗?

通过ARM模板创建它时,我遇到同样的问题。

有一种方法可以做到(尽管在欧盟西部尝试过):

  1. 创建一个新的资源组
  2. 在新的RG中创建函数
  3. 将功能计划,存储和功能移至所需的RG

我希望可以从ARM或通过接口创建相同的计划。让我知道是否有人找到方法。我宁愿通过ARM模板来执行此操作,因此可以控制计划的名称。

编辑:

如果先创建消费计划,然后再创建应用程序服务计划,那么它也应该起作用。

从界面:只需创建一个功能应用程序(它是Linux版本),然后就应该创建计划。然后添加linux应用服务计划。

来自ARM:只需使应用服务计划取决于使用计划即可。

如果将来有更多了解,我会进行更新。

答案 1 :(得分:1)

您不能在已经托管了非Linux Web Apps的App Service计划中创建Linux Web App。

基于当前限制,对于同一资源组,您不能在同一区域中混合使用Windows和Linux应用程序。

公共文档https://docs.microsoft.com/en-us/azure/app-service/containers/app-service-linux-intro#limitations

中提到了

此处提供更多说明。 https://github.com/Azure/Azure-Functions/wiki/Creating-Function-Apps-in-an-existing-Resource-Group

答案 2 :(得分:0)

正如DixitArora所说,通常不能在同一资源组中同时创建Window OS功能和Linux OS功能。

关键是服务计划和区域。

通过这种方式,您可以成功创建:

1。第一种方式: 如Badrequest消息所示,您可以重新创建一个新的资源组并将功能应用程序放在该新的资源组中。(消费计划会成功。)

2。第二种方法: 您可以使用应用服务计划创建函数,如下所示:

enter image description here

(我可以在同一资源组中同时创建Linux OS功能应用程序和Windows OS功能应用程序。请尝试一下。)

enter image description here (首先是Windows操作系统,消费应用程序。其次是Linux操作系统,应用程序服务计划。这两个功能位于名为“美国中部”的同一区域。)

3。第三种方式: 如果您仍要创建消费应用程序。请选择另一个支持消费计划的地区。然后您可以成功创建函数。