How to download a blob on a linux machine | Comment télécharger un blob sur une machine Linux

I suppose you have a Windows machine and a Linux machine. You want to get a blob directly from Blob storage to the Linux machine. Je suppose ici qu’on a une machine Windows et une machine Linux. On veut récupérer un blob directement du blob storage à la machine Linux.
On the Windows machine, use a tool like CloudXplorer to create a Shared Access Signature. Sur la machine Windows, utiliser un outil tel que CloudXplorer pour créer une Shared Access Signature.

image

image

image

copy the shared access signature which is a URL with authorization to download the private blob. Check the start date, don’t add more time than 1 hour for the authorized download window (that would require a policy at the container level, which is more complicated). copier la shared access signature qui est une URL qui inclut une autorisation de télécharger le blob privé. Cocher la date de départ, ne pas ajouter plus qu’une heure pour la fenêtre de téléchargement autorisée (on aurait besoin d’une règle au niveau conteneur, ce qui est un peu plus compliqué)
On the Linux machine, paste that URL in a curl command like below: Sur la machine Linux, coller l’URL dans une commande curl tel que ci-dessous:

 

image

 

This technique could also be used to upload blobs, by creating a write shared access signature and use HTTP PUT instead of GET. Cette technique peut aussi être utilisée pour charger vers des blobs, en créant une shared access signature en écriture et en utilisant HTTP PUT au lieu de GET.

 

Smile

Benjamin