Azure¶
เมานต์พื้นที่จัดเก็บ Azure Blob หรือ File บน Linux ด้วย RaiDrive CLI เชื่อมต่อด้วยชื่อบัญชีที่เก็บข้อมูลและคีย์ของคุณ
หากต้องการเตรียมบัญชี คีย์ หรือ ID ที่ต้องใช้ ให้ดู ก่อนเริ่มต้น ในคู่มือ Azure สำหรับแอป Windows
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]
คำเตือน
คำสั่งเชลล์จะถูกบันทึกไว้ในประวัติ หากเป็นไปได้ ไม่แนะนำให้ระบุค่าโดยตรงในตัวเลือก --azure-key
หากไม่ระบุไดเรกทอรีเมานต์ ระบบจะเมานต์ไปยังไดเรกทอรีเช่น /mnt/azure ใต้ /mnt หากต้องการระบุไดเรกทอรีเมานต์ ให้ใช้ตัวเลือก --mount-path
raidrivecli add azure --azure-storage-type blob \
--mount-path /myservices/azure
ต่างจากแอป Windows ตรงที่ CLI ไม่มีตัวเลือกสำหรับเลือกคอนเทนเนอร์หรือ File share เพียงรายการเดียว
ข้อมูล
พื้นที่จัดเก็บ Azure China ใช้ azurechina แทน azure
ตัวเลือกเพิ่มเติม¶
--azure-storage-type <blob|file> blob, file
--azure-storage-account <account> account
--azure-key [key] key