Blobfuse command

goutham varma 40 Reputation points
2024-10-25T08:52:59.8833333+00:00

Can we connect azure blob storage without config file? I'm using below command to mount the azure blob container, That was working fine. Due to some security reasons we don't like to mention container name that was mounting multiple mounts on single container also account keys are visible to users. So tried without giving container details in config file and tried to mount with in the command that doesn't work and throwing error. Kindly give us solution.

Command:

blobfuse "$mount_point" --tmp-path=/mnt/resource/blobfusetmp --config-file=/fuse_file.cfg -o attr_timeout=240 -o entry_timeout=240 -o negative_timeout=120 -o allow_other --container-name="$container" --log-level=LOG_DEBUG --file-cache-timeout-in-seconds=120

Config file

[root@exxxxxx1 /]# cat fuse_connection.cfg

accountName xxxxxx

accountKey xxxxxxx

containername xyz

authType Key

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,931 questions
Microsoft Intune Linux
Microsoft Intune Linux
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Linux: A family of open-source Unix-like operating systems.
52 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Hari Babu Vattepally 635 Reputation points Microsoft Vendor
    2024-10-25T16:37:52.2366667+00:00

    Hi @goutham varma

    Greetings! Thanks for using Microsoft Q&A Forum and posting your query here!

    Yes, you can connect to Azure Blob Storage without a configuration file by specifying the necessary parameters directly in the command line. However, please make sure that you provide all required parameters, including the account name and key, along with the container name.

    If you want to avoid exposing the container name in the config file, you can specify it directly in the command. Here's an example of how this:

    blobfuse "$mount_point" --tmp-path=/mnt/resource/blobfusetmp --account-name=<your_account_name> --account-key=<your_account_key> --container-name=<your_container_name> -o attr_timeout=240 -o entry_timeout=240 -o negative_timeout=120 -o allow_other --log-level=LOG_DEBUG --file-cache-timeout-in-seconds=120
    

    Make sure to replace <your_account_name>, <your_account_key>, and <your_container_name> with your actual Azure Blob Storage account name, key, and container name.

    If you want to avoid exposing the account key, consider using a more secure authentication method, such as a Shared Access Signature (SAS) or Managed Identity, if applicable.

    By passing the container name as a parameter in the command line, you can avoid mentioning the container name in the config file. This will also prevent multiple mounts on a single container.

    Additional information: This is can also due to a missing dependency on the system. Kindly run below command and then try mount again.

    sudo yum install git cmake fuse-devel libcurl-devel gcc gcc-c++ gnutls-devel libgcrypt-devel libuuid-devel fuse -y

    If the issue still persists, can you please share the below mentioned details for future troubleshooting:

    • What version of blobfuse are they using?
    • Which OS (and OS version) are they using?
    • Share the screenshot of the error message?

    For more information, please refer the below documents:

    Hope this helps!

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


    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.