Migrating from Blob Storage to Azure Files

Andrew Hawken 6 Reputation points
2020-12-03T10:52:19.983+00:00

Other than the additional SMB/NFS, can I treat Azure Files as Blob Storage - can I use my existing code to access the same API for CRUD and access the resulting files as blobs from websites via HTTPS?
(I'm trying to see if I can copy all the blobs, change some connection strings, and URLs and everything will just work, or if there's more to it)

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,162 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,427 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 33,296 Reputation points Microsoft Employee
    2020-12-03T17:53:25.507+00:00

    @Andrew Hawken
    They are not the same and there would probably need to be some updates made to your code. It probably depends on what exactly you are doing with the blobs. Delete, Get, Copy are all similar and might not require changes. I think most likely the issue would be in Azure Files you need to Create File followed by Put Range. In Blobs you can simply do Put Blob. I recommend checking what you are already doing with blobs and seeing if that is possible without editing your code, likely it will not be.

    -------------------------------

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.
    0 comments No comments