CreateOrReplace operation possible for Azure Table Storage binding?
See original GitHub issuePlease provide a succinct description of the issue.
Repro steps
Provide the steps required to reproduce the problem
-
Use table storage output binding in node function in App Service plan
-
Output table item with existing RowKey, setting Etag: “*”
Expected behavior
A upsert operation is executed as mentioned here
Actual behavior
Function fails with: The specified entity already exists.
The docs state that upsert is not supported but there seems to be something here that should do the trick? https://github.com/Azure/azure-webjobs-sdk/blob/ea55e6ef5439b1059b43825cb9d40cc12ae219bc/src/Microsoft.Azure.WebJobs.Extensions.Storage/Tables/TableEntityWriter.cs#L100
Issue Analytics
- State:
- Created 4 years ago
- Reactions:17
- Comments:17 (5 by maintainers)
Top Results From Across the Web
Azure Tables bindings for Azure Functions
Integrating with Azure Tables allows you to build functions that read and write data using Azure Cosmos DB for Table and Azure Table...
Read more >Azure Tables output bindings for Azure Functions
Use an Azure Tables output binding to write entities to a table in Azure Cosmos DB for Table or Azure Table Storage.
Read more >Azure Tables input bindings for Azure Functions
Use the Azure Tables input binding to read a table in Azure Cosmos DB for Table or Azure Table Storage. For information on...
Read more >How to update a row in an Azure storage table using ...
This output binding only supports creating new entities in a table. If you need to update an existing entity from your function code, ......
Read more >Using the Python Connector
This topic provides a series of examples that illustrate how to use the Snowflake Connector to perform standard Snowflake operations such as user...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s a valid feature and potentially just a few lines of code, but not yet at the top of the backlog. Keep letting us know (via 👍 or whatever) that this would be a worthwhile feature to implement more explicitly in the extension. For now the recommended approach would be leveraging the Table SDKs directly in the Azure Function code (e.g. the Node Azure Table SDK) to perform an upsert operation. In general bindings are a convenience (and a great one at that 😄 ) but can accomplish the same behaviors by leveraging the SDKs if need more flexibility or control. Let us know. Thanks
Great. So looks like this can be fixed with little effort? If so when can we expect it to be shipped?