将 Azure Function App on Consumption Plan 设置为 64 位
Set Azure Function App on Consumption Plan to 64 bit
可用于 Functions 的新 "Consumption" 层计划不允许您通过门户更改进程位数。我可以通过其他方式将进程转换为 64 位,因为它是 DocDB 访问所必需的。
Azure Functions consumption plan is billed based on resource
consumption and executions. Consumption plan pricing includes a
monthly free grant of 1 million requests and 400,000 GB-s of resource
consumption per month. Customers can also run Functions within their
App Service plan at regular App Service plan rates.
根据Consumption pricing tierApp Service Plan尝试将Kudu放入Function App,发现总磁盘space为1GB,相当于标准应用服务计划的免费或共享定价层。
Bitness
The Basic, Standard, and Premium tiers support 64-bit and 32-bit
applications.
The Free and Shared plan tiers support 32-bit applications only.
来源:https://docs.microsoft.com/en-us/azure/app-service-web/web-sites-scale#bitness
结论是 Consumption pricing tier App Service 计划等同于 t0 Free/Shared pricing tier App Service 计划,这解释了为什么它只能支持 32 位。
您可以通过API设置。但请注意,在您看到该选项出现在门户中之前,它不受官方支持。
这里有一个简单的方法:
- 转到https://resources.azure.com/
- 找到您的函数应用,然后在树中的
config/web
下进入
- 编辑 use32BitWorkerProcess 并将其更改为 false
目前,Azure Functions 禁用 64 位选择(在消费和应用服务计划中)。我们正在进行一些验证以实现这一点,因此需要 64 位的客户可以进行更改。
需要注意的一件事是 DocumentDB 团队已在其最新版本 (1.11.3) 中添加了 32 位支持,尽管我们尚未升级到该版本(将会发生),但您可以参考他们的直接打包并在 32 位的 Functions 运行 中使用他们的客户端。
今天还为您提供了启用 64 位的方法。
可用于 Functions 的新 "Consumption" 层计划不允许您通过门户更改进程位数。我可以通过其他方式将进程转换为 64 位,因为它是 DocDB 访问所必需的。
Azure Functions consumption plan is billed based on resource consumption and executions. Consumption plan pricing includes a monthly free grant of 1 million requests and 400,000 GB-s of resource consumption per month. Customers can also run Functions within their App Service plan at regular App Service plan rates.
根据Consumption pricing tierApp Service Plan尝试将Kudu放入Function App,发现总磁盘space为1GB,相当于标准应用服务计划的免费或共享定价层。
Bitness
The Basic, Standard, and Premium tiers support 64-bit and 32-bit applications.
The Free and Shared plan tiers support 32-bit applications only.
来源:https://docs.microsoft.com/en-us/azure/app-service-web/web-sites-scale#bitness
结论是 Consumption pricing tier App Service 计划等同于 t0 Free/Shared pricing tier App Service 计划,这解释了为什么它只能支持 32 位。
您可以通过API设置。但请注意,在您看到该选项出现在门户中之前,它不受官方支持。
这里有一个简单的方法:
- 转到https://resources.azure.com/
- 找到您的函数应用,然后在树中的
config/web
下进入 - 编辑 use32BitWorkerProcess 并将其更改为 false
目前,Azure Functions 禁用 64 位选择(在消费和应用服务计划中)。我们正在进行一些验证以实现这一点,因此需要 64 位的客户可以进行更改。
需要注意的一件事是 DocumentDB 团队已在其最新版本 (1.11.3) 中添加了 32 位支持,尽管我们尚未升级到该版本(将会发生),但您可以参考他们的直接打包并在 32 位的 Functions 运行 中使用他们的客户端。