Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do Azure storage-related APIs participate in System.Transactions?

I can't find any information on this anywhere and yet the question is simple.

Can I wrap storage-related actions in a TransactionScope such that e.g. if there is a rollback, the uploaded file is rolled back also?

If the native APIs don't do this already, is there a public implementation anywhere?

like image 938
georgiosd Avatar asked Aug 04 '13 17:08

georgiosd


People also ask

What is the type of permission that needs to be used for the Azure storage API?

Azure Files supports identity-based authorization over Server Message Block (SMB) through Azure AD DS. You can use RBAC for fine-grained control over a client's access to Azure Files resources in a storage account.

What is an Azure storage transaction?

Azure Storage space is charged based on storage capacity, storage transaction numbers (the number of read and write operations performed on the storage), and the amount of data transferred.

What are the four main types of storage services provided by Azure?

Different Azure Storage types (File, Blob, Queue and Table)


1 Answers

If you're referring to Table or Blob updates, there's no notion of explicit commit or rollback. When you make an API call (whether direct REST call or via PowerShell / CLI / SDK), it's just an action against storage, and it will either succeed or fail (although some actions take a while and the call may return before completion). There's no transaction scope wrapping this action. You'd need to take care of undoing your Table / Blob updates at an app level.

like image 187
David Makogon Avatar answered Sep 27 '22 22:09

David Makogon