Azure Blob Storage is a great basis to store or buffer files for an application with document management functionality. On this base you may set up a Cognitive Search instance to provide search functionality and you also can generate download URL’s with limited accessebility (regarding e.g. time or IP address of clients). For such a solution you usually build sort of a synchronisation service which stages the document from a source system. This snippet provides a simple, trigger based function which you can use for this. It shows:
Ensure that following Nuget packes are installed:
Microsoft.NET.Sdk.Functions
(tested with 3.0.11)Azure.Storage.Blobs
(tested with 12.8.0)MimeMapping
(tested with 1.0.1.37)Flurl.Http
(tested with 3.0.1)Then you can adapt the function CopyFilesFunc
in your Function App.