简体   繁体   中英

Azure Functions Docker Deployment Linux workers are not available in resource group

Trying to deploy a nginix container from Azure Container Registry through function app,

Getting an error as,

Linux workers are not available in resource group

How to enable linux workers to a resource group?

Dockerfile for deployment,

FROM nginx
COPY dist /usr/share/nginx/html

Seems like you can't have linux and windows resources in the same resource group

There is a current limitation in regards to not mixing Windows and Linux apps in the same resource group as well.

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

So you're only option at the moment is to create a new resource group for linux resources

It is not possible to create a linux app service plan and a windows app service plan in the same resource group AND in the same location, but you can use the same resource group and deploy both plans in different locations.

Based on a current limitation, for the same resource group you cannot mix Windows and Linux apps in the same region.

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

Though I have discovered that the same error can also occur if you have created an app service certificate via the REST api or via terraform (which is also using the REST api) BEFORE creating the linux app service plan. You must create the linux app service plan before creating the certificate in the same location.

如果您为不同区域的 LINUX 应用创建应用服务计划(尽管资源组可以与 Windows 应用服务计划在同一地区),它应该仍然有效。

In some cases, when trying to create a Function App, you may receive the following error...

  • you're creating the Function App in an existing resource group
  • this resource group already contains regular (ie non-Dynamic or Premium) Web Apps in the same region that you're trying to create the Function App. This can even occur if you are creating a Azure Functions Premium Plan in a resource group that has an App Service Premium Plan of the same OS.
  • the scale unit that those non-Dynamic or Premium resources are in does not yet support this SKU
  • you are attempting to create a Linux Consumption app in a resource group with any other app service plan type.

...

Even in some situations we have pools specifically for one plan. For example, Linux consumption stamps can only run linux consumption apps, so you aren't able to place a linux consumption plan in the same resource group as any other app service plan. The functions themselves can be in the same resource group, but the plan cannot be.

Ref

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM