存储帐户不存在,无法找到 Function App 的引用

Storage account doesn't exist, cannot find reference for Function App

我在 Azure 中写了两个函数。一个函数使用存储帐户,另一个使用 SQL 存储。 两者都在同一个应用服务下。

对我编写的 SQL 函数的方法感到满意,我删除了不需要的函数,然后删除了存储帐户。

在此之后,应用服务抱怨它无法再联系存储帐户(其余功能未使用)。

"Storage account xxx doesn't exist. Deleting the storage account the function app is using will cause the function app to stop working. Update the app setting with a valid existing storage connection string."

然后

"We are not able to retrieve your functions right now. Please try again later"

我从函数应用程序设置中删除了引用存储的行,但这没有任何区别。重启也没什么区别。

愚蠢的是我无法从 Azure 中的 Functions 应用程序访问代码,我都是在线编写的。

是否有任何恢复?

我猜某处有对已删除存储的引用,但我找不到它。

是的。 Function App 需要 Azure 存储。遗憾的是,您的函数代码不可恢复,因为 Azure Functions 使用该存储帐户上的 Azure 存储文件共享作为基础文件系统。

通常您可以从 Kudu 端点访问代码。转到功能应用程序的平台功能 --> 高级工具 (Kudu) --> 调试控制台 --> 站点 --> wwwroot