无法使用现有功能升级 [英] Cannot Upgrade with Existing Functions

查看:55
本文介绍了无法使用现有功能升级的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从Azure门户创建一个新的Azure Function应用.向其添加一个新功能.您将看到一个带有以下文本的警告图标:

Create a new Azure Function App from the Azure Portal. Add a new function to it. You will be presented with a warning icon with the following text:

无法使用现有功能升级

主要版本升级可能会导致语言和绑定的重大更改.在升级运行时的主要版本时,请考虑创建一个新的功能应用程序,然后将功能迁移到该新应用程序.

Cannot Upgrade with Existing Functions

Major version upgrades can introduce breaking changes to languages and bindings. When upgrading major versions of the runtime, consider creating a new function app and migrate your functions to this new app.

我的问题是需要采取什么行动?这仅仅是警告,将来的升级可能会引起问题吗?也许与有关Visual Studio中新模板版本的GitHub评论

My question is what action is required? Is it simply a warning that a future upgrade might cause issues? Perhaps is it related to the GitHub commentary about new template versions in Visual Studio

注意:从功能应用程序中删除所有功能,导致问题消失.

Note: deleting the all functions from the function app, causes the issue to disappear.

推荐答案

您是正确的,这只是给您一个提示,无需采取任何行动.

You are right, it's just a tip for you to refer, no action required.

在门户中创建功能应用程序时,默认情况下,该应用程序使用运行时〜1 .

When you create a function app in portal, the app uses the runtime ~1 by default.

在应用程序中创建任何功能之前,允许您在功能应用程序设置面板中更改运行时版本.

Before you create any function in the app, you are allowed to change the runtime version in the function app settings panel.

在那之后,不建议您也不要更改它,因为此面板中的按钮为灰色,并显示警告.因为运行时升级可能会导致代码出错,具体取决于特定的运行时.

After that, it's not recommended and also not allowed to change as the button is grey in this panel, with the warning you see. Because the runtime upgrade may cause error to your code depending on the specific runtime.

如您所见,一旦应用程序中不存在任何功能,警告就会消失,并且能够再次更改运行时间.

And as you see, once no function exists in the app, the warning disappears and is able to change the runtime again.

尽管有现有功能,但应用程序设置面板允许我们在〜1 beta 之间更改 FUNCTIONS_EXTENSION_VERSION (即运行时),但仍要记住运行时开关可能会导致重大更改.

The application settings panel allows us to change FUNCTIONS_EXTENSION_VERSION (i.e. the runtime)between ~1 and beta despite existing functions, but still remember the runtime switch may cause breaking changes.

更新

预览 beta 运行时已经过GA,并且相应的 FUNCTIONS_EXTENSION_VERSION 更改为〜2 ,当我们创建函数应用时,默认运行时已更改也要〜2.

Preview beta runtime has been GA and corresponding FUNCTIONS_EXTENSION_VERSION is changed to ~2, when we create a function app, default runtime is changed to ~2 as well.

这篇关于无法使用现有功能升级的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆