question

Jochen1980-2266 avatar image
0 Votes"
Jochen1980-2266 asked Jochen1980-2266 edited

File Storage like OneDrive

Hello,
I'm looking for simple file storage like onedrive which can be accessed by anybody. It should be possible to create a link to each file so anybody who gets this link can assess this file.
For what kind of ressource do I have to search?

azure-storage-accounts
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SumanthMarigowda-MSFT avatar image
1 Vote"
SumanthMarigowda-MSFT answered SumanthMarigowda-MSFT edited

@Jochen1980-2266 Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

Let me explain, what all option's, features and security we have in Azure storage, based on that you can choose on your requirement.

It's depends what kind of data you need your client or users to view and what level of access or security is required(Read, write, modify and more)

One of the best way to access Azure Storage account is through Azure Storage explorer tool (Free tool to easily manage your Azure cloud storage resources anywhere, from Windows, macOS, or Linux

**Azure Files** enables you to set up highly available network file shares that can be accessed by using the standard Server Message Block (SMB) protocol. That means that multiple VMs can share the same files with both read and write access. You can also read the files using the REST interface or the storage client libraries.

  • One thing that distinguishes Azure Files from files on a corporate file share is that you can access the files from anywhere in the world using a URL that points to the file and includes a shared access signature (SAS) token. You can generate SAS tokens; they allow specific access to a private asset for a specific amount of time.

A shared access signature (SAS) provides secure delegated access to resources in your storage account. With a SAS, you have granular control over how a client can access your data. For example:

  • What resources the client may access.

  • What permissions they have to those resources.

  • How long the SAS is valid.

You can use shared access signatures (SAS) to generate tokens that have specific permissions, and which are valid for a specified time interval. For example, you can generate a token with read-only access to a specific file that has a 10-minute expiry. Anyone who possesses the token while the token is valid has read-only access to that file for those 10 minutes. Shared access signature keys are supported only via the REST API or in client libraries. You must mount the Azure file share over SMB by using the storage account keys.

Authorizing access to data in Azure Storage

Additional information:
Blob Storage Objects in Blob storage can be accessed from anywhere in the world via HTTP or HTTPS. Users or client applications can access blobs via URLs, the Azure Storage REST API, Azure PowerShell, Azure CLI, or an Azure Storage client library. The storage client libraries are available for multiple languages, including .NET, Java, Node.js, Python, PHP, and Ruby.

You can serve static content (HTML, CSS, JavaScript, and image files) directly from a storage container named $web. Hosting your content in Azure Storage enables you to use serverless architectures that include Azure Functions and other Platform as a service (PaaS) services. Azure Storage static website hosting is a great option in cases where you don't require a web server to render content. Static website hosting in Azure Storage

For more information about Blob storage, see Introduction to Blob storage.


Hope this helps!

Kindly let us know if the above helps or you need further assistance on this issue.


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


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

VaibhavChaudhari avatar image
1 Vote"
VaibhavChaudhari answered Jochen1980-2266 edited

You can try to go with Azure blob storage account.

Read the details here - https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blobs-introduction


Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav

· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Sumarigo-MSFT and @VaibhavChaudhari :
Thanks for your response. That helped. Now I have created a storage account which I can share.
But:
I tried to share a PDF.
If I do this with OneDrive, the Browser directly opens the document. -> perfect
If I do this with Azure Blob storage, any browser asks for saving the file. -> not what I want

Why???

0 Votes 0 ·

Can you check if the content type is set as below to application/PDF

94736-image.png


1 Vote 1 ·
image.png (27.1 KiB)

@VaibhavChaudhari
Today I tried again to share a file. But now I'm not able to set the content-type. In the storage explorer I change it to application/pdf and save the setting but when I check the setting it is reset to an empty string.
When I try to open the URL I get an XML output
<Error>
<Code>InvalidHeaderValue</Code>
<Message>The value for one of the HTTP headers is not in the correct format. RequestId:fd937bc2-601a-0011-665d-454593000000 Time:2021-05-10T05:29:35.5840449Z</Message>
<HeaderName>x-ms-version</HeaderName>
<HeaderValue/>
</Error>
Any idea on that?
As I figured out, the share works for a few minutes till it breakes?!

0 Votes 0 ·