-
Notifications
You must be signed in to change notification settings - Fork 458
Unable to get table reference or create table. Aborting write operation. #10995
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We have been experiencing the same issue as well out of no where, since 26/04/2025. |
Neither is https://learn.microsoft.com/en-us/azure/azure-functions/functions-reference?tabs=blob&pivots=programming-language-csharp#connecting-to-host-storage-with-an-identity updated. |
The role "Storage Table Data Contributor" on the storage account is enough. |
I totally agree on all statements made by @Mikkelcv. Especially on this one: We're also experiencing this issue since april 11th, and our logs are already polluted with these messages for multiple subscriptions. |
We have also been experiencing this issue since around March 26th, with an increase in these errors since April 11th, even though we haven't deployed any new versions of the affected function apps in long time. Any acknowledgement and fix from MSFT? Preferably would not like to apply the suggested workarounds. |
Yes, we also started seeing this issue on 3/26/2025, 9:25:43.665 AM (UTC) |
+1 Multiple function apps, using Managed Identity access to storage with Storage Blob permissions only, started to throw this on 26th March 2025. |
Role assignment is not helping out. Still seeing the error even after assigning the "Storage Table Data Contributor " Role to the function app |
This is a diagnostic feature running in the background. These failures are not impactful to the health of the app. There is a PR up to improve these logs. For the time being you can add a log filter for You can also disable this feature via an app setting:
https://learn.microsoft.com/azure/azure-functions/functions-app-settings#azurewebjobsfeatureflags |
@jviau if this exception is landing on customers' App Insights are we unnecessarily inflating their app insights (cost implications)? |
Aha - thank you, it's that linked PR I missed so that customers don't need any workaround. |
This almost works for us. One question please AzureWebJobsFeatureFlags=DisableDiagnosticEventTableStorageRepository I would prefer to handle the filtering at the Environment variable level if possible as we have so many function apps to update. Many thanks, |
I am also seeing this issue with my customer, we gave the role in the storage, but we are still having the exceptions. |
I tried several environment setting / variables but no luck so far: AzureFunctionsJobHost__logging__logLevel__Azure.Data.Tables = None I think this approach may have worked, but it goes over the 100 character variable limit, so that failed also. |
I tried to rollback to the previous Image using: FUNCTIONS_EXTENSION_VERSION = 4.1037.1 (plus a few different combinations) Weirdly when I set the version to 1.37.1, it downloads image 4.1037.1, not sure why this is| I cant work out the correct way to pin to a specific image. |
@jviau |
For us this is not really a viable option unfortunately, as this will disable all logging and ideally we only want to disable Table logs for example |
|
Could we have some documentation on this diagnostic feature ? I have functions using classic connectionString with those table logs. Didn't pay attention to them until now. Is this an old feature ? What are the Microsoft recommandation, should it be disabled by default ? |
Previous function runtime: 4.1037.1.23605
Current function runtime: 4.1038.300.25164
After the function runtime version has been updated to 4.1038 then our function app periodicaly every 10 minutes reports the exception:
"Unable to get table reference or create table. Aborting write operation."
Message:
The execption originates in:
{"assembly":"Microsoft.Azure.WebJobs.Script.WebHost, Version=4.1038.0.0, Culture=neutral, PublicKeyToken=null","method":"Microsoft.Azure.WebJobs.Script.WebHost.Diagnostics.DiagnosticEventTableStorageRepository+<FlushLogs>d__30.MoveNext","level":34,"line":195,"fileName":"/_/src/WebJobs.Script.WebHost/Diagnostics/DiagnosticEventTableStorageRepository.cs"}
Granting the function app: "StorageTableDataContributor" RBAC role on the storage enables the function app to create an empty table in the storage.
Why is it now a requirement that this empty table must be created?
How do we disable this so we can have the old functionallity back?
It is NOT an option to grant this RBAC role to all function apps, we do not need this and wont grant access that is not required otherwise.
The guide:
https://learn.microsoft.com/en-us/azure/azure-functions/storage-considerations?tabs=azure-cli
Does not explain that the access is required. Is it something that is on its way?
The text was updated successfully, but these errors were encountered: