Azure¶
使用 RaiDrive CLI 在 Linux 上掛載 Azure Blob 或 File 儲存體。使用儲存體帳戶名稱與金鑰進行連線。
如需取得此處所需的帳號、金鑰或 ID,請參閱 Windows 版應用程式的 Azure 指南中的 開始之前。
raidrivecli add azure --azure-storage-type <blob|file>
若只使用上方所示的選項加入儲存空間,系統會提示您輸入 Account 與 Key。
raidrivecli add azure --azure-storage-type blob
Account: <account>
Key: ********
您也可以用選項指定 Account 或 Key。
raidrivecli add azure --azure-storage-type <blob|file> \
--azure-storage-account <account> \
--azure-key [key]
警告
Shell 指令會記錄在歷程記錄中。建議盡可能不要在 --azure-key 選項後直接指定值。
若未指定掛載目錄,會掛載到 /mnt 下的目錄,例如 /mnt/azure。若要指定掛載目錄,請使用 --mount-path 選項。
raidrivecli add azure --azure-storage-type blob \
--mount-path /myservices/azure
與 Windows 版應用程式不同,CLI 沒有選擇單一容器或檔案共用的選項。
資訊
Azure China 儲存體使用 azurechina,而非 azure。
其他選項¶
--azure-storage-type <blob|file> blob, file
--azure-storage-account <account> account
--azure-key [key] key