简体   繁体   English

已删除 Azure Function App 的存储帐户。

[英]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存储帐户,您可以创建一个新的存储帐户并使用新的连接字符串在应用程序设置中编辑AzureWebJobsStorageWEBSITE_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.

相关问题 更改存储帐户连接字符串后 Azure Function App 无法正常工作 - Azure Function App not working after changing storage account connection string Azure Blob 触发 function 存储帐户连接 - Azure Blob triggered function storage account connection Azure 托管标识 - Function 应用程序和存储帐户 - DefaultAzureCredential 失败但 ManagedIdentityCredential 成功 - Azure Managed Identity - Function App & Storage Account - DefaultAzureCredential fails but ManagedIdentityCredential succeeds 为什么 function 应用程序中没有列出存储帐户? - Why is the Storage Account is not listed in the function app? 如何使用HTTP触发的Azure功能删除Azure存储帐户 - How to delete Azure Storage Account with a HTTP triggered Azure Function 从OSX(Mac)上的控制台应用程序访问Azure存储帐户 - Accessing Azure storage account from console app on OSX (Mac) 如何将Azure函数输入参数绑定到存储帐户? - How to bind Azure function input parameter to storage account? 使用类型CloudQueue从Azure Function指定存储帐户的名称 - Specify the name of storage account from Azure Function that uses type CloudQueue 我可以在没有存储帐户的情况下使用带有HTTP触发器的Azure功能吗 - Can I have Azure Function with HTTP trigger without Storage Account 在 Visual Studio 中开发 Azure Function 时存储帐户无效 - Invalid storage account when developing Azure Function in Visual Studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM