[英]Deleted Storage Account for Azure Function App.
I accidentally deleted the storage account my Azure app function was attached to.我不小心删除了我的 Azure 应用程序功能附加到的存储帐户。 Now the function is inaccessible.
现在该功能无法访问。 It won't even let me update the settings to try to point it to a newly created storage account.
它甚至不允许我更新设置以尝试将其指向新创建的存储帐户。 In fact I can't even download the app code to re-upload it as a new app function.
事实上,我什至无法下载应用程序代码以将其重新上传为新的应用程序功能。 EDIT: I have now been able to update the storage account connection string, but still the function shows as inaccessible.
编辑:我现在已经能够更新存储帐户连接字符串,但该功能仍然显示为无法访问。 Additionally if I try to download the source code, I keep getting the error here:
此外,如果我尝试下载源代码,我会在此处不断收到错误消息:
Any advice, or am i stuffed?有什么建议,还是我被塞满了?
If you have deleted the Storage Account attached to your Function App , you can create a new storage account and edit the value of either AzureWebJobsStorage
or WEBSITE_CONTENTAZUREFILECONNECTIONSTRING
(depending on your plan I believe) in the application settings with the new connection string, which you can find in the Access keys page of your newly created storage.如果您删除了附加到Function App的存储帐户,您可以创建一个新的存储帐户并使用新的连接字符串在应用程序设置中编辑
AzureWebJobsStorage
或WEBSITE_CONTENTAZUREFILECONNECTIONSTRING
(取决于您的计划)的值,您可以在新创建的存储的访问密钥页面中找到。
Edit: The only caveat is you have to still have the code locally.编辑:唯一的警告是您仍然必须在本地拥有代码。 Your deployed code will be lost, and you will have to deploy it again.
您部署的代码将丢失,您将不得不再次部署它。 Maybe that's what was missing (I didn't see the OP's edit before answering -- apologies).
也许这就是所缺少的(我在回答之前没有看到 OP 的编辑——抱歉)。
Source: https://docs.microsoft.com/en-us/azure/azure-functions/functions-recover-storage-account#storage-account-was-deleted来源: https : //docs.microsoft.com/en-us/azure/azure-functions/functions-recover-storage-account#storage-account-was-deleted
Unfortunately you cannot retrieve your Function App once the storage account that contains it is deleted.很遗憾,一旦删除包含它的存储帐户,您将无法检索您的 Function App。 Your best bet would be to recreate the Function.
最好的办法是重新创建函数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.