删除并重新创建发布配置文件VS 2017后,旧的Azure函数返回 [英] Old Azure functions return after deleting and recreating publishing profile VS 2017

查看:84
本文介绍了删除并重新创建发布配置文件VS 2017后,旧的Azure函数返回的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到,如果使用Azure门户删除Azure功能(例如"My-Function-App"),并且使用Visual Studio 2017在同一资源组中创建了一个名为"My-Function-App"的新应用,旧功能将以只读模式返回到该新功能应用.知道这里发生了什么吗?

I have noticed that if Azure function e.g 'My-Function-App' is deleted using Azure portal and a new app with same name 'My-Function-App' is created in same resource group using Visual Studio 2017, then all old functions return to that new function app in read-only mode. Any idea what is happening here?

推荐答案

@David所说的正确,我想提供一些详细信息供您参考.

What @David has said is right, and I want to provide some details for you to refer.

所有旧功能返回该新功能应用

all old functions return to that new function app

对于在消费计划中创建的Azure功能,一个功能应用程序在您指定的存储帐户中具有一个单独的文件共享文件夹.您可以在门户网站的应用程序设置"选项卡中看到文件共享名.

For Azure functions created in Consumption plan, one function app has one individual file share folder in the storage account you specified. You can see the file share name in your application settings tab in portal.

  • 对于在门户网站中创建的功能,文件共享名对应于功能应用程序名称以及由azure生成的唯一后缀,例如 myfunctionae23 .
  • 对于使用VS创建的函数,文件共享名与函数应用程序名称完全相同,例如 myfunction .

因此,如果我们从VS发布功能应用程序,并且其名称恰好与用于存储功能的某些现有文件共享相同,则这些功能将在新的功能应用程序中恢复.

So if we publish a function app from VS, and its name happens to be identical to some existing file share which was used to store functions, these functions will be restored in the new function app.

处于只读模式

由于VS的发布功能,它由Azure设置.不建议对本地开发的文件进行更改.

It is set by Azure due to publishing functions from VS. It's not recommended to make changes to files developed locally.

如果要通过最少的更改来解决此问题,请在发布"面板中,单击"<代码>管理配置文件设置",然后单击"<代码>删除目标位置的其他文件" ,然后再次发布.

If you want to solve this with minimum changes, in publish panel, click Manage profile settings and click Remove addition files at destination and publish again.

这篇关于删除并重新创建发布配置文件VS 2017后,旧的Azure函数返回的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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