Azure tutorial 02: Storage

storage account type
https://docs.microsoft.com/en-us/azure/storage/common/storage-account-overview

Blob - Binary Large Object
Binary Object - Images,Documents,Media Files, Log Files, Backup data Virtual Disks

Blod types:

  • Block Blob - Text and binary data Files
  • Append Blobs - Optimized for append operations
  • Page Blob - A collection of 512 byte pages optimized for random read and writes(virtual disk)

Locations and Redundancy:

  • Locally-redundant storage (LRS): A simple, low-cost replication strategy. Data is replicated synchronously three times within the primary region.
  • Zone-redundant storage (ZRS): Replication for scenarios requiring high availability. Data is replicated synchronously across three Azure availability zones in the primary region.
  • Geo-redundant storage (GRS): Cross-regional replication to protect against regional outages. Data is replicated synchronously three times in the primary region, then replicated asynchronously to the secondary region. For read access to data in the secondary region, enable read-access geo-redundant storage (RA-GRS).
  • Geo-zone-redundant storage (GZRS) (preview): Replication for scenarios requiring both high availability and maximum durability. Data is replicated synchronously across three Azure availability zones in the primary region, then replicated asynchronously to the secondary region. For read access to data in the secondary region, enable read-access geo-zone-redundant storage (RA-GZRS).

Access Tiers:

  • Hot
  • Cool
  • Archive

Azure Storage services:

  • Blob service
  • File service
  • Queue service
  • Table Storage

Securing Storage Accounts:

  • Access Keys -Two per storage account,full access
  • Share Access Signatures - Time based access keys that give granular control

作业:新建storage account ,并上传文件或文件夹到

create顺序:
a subscriptions -> a storage account -> a SAS token

除了从azure portal页面操作之外,还提供以下两种方式

打开 Azure Storage Explorer, 通过xx链接storage

1
2
#mac os terminal
azcopy cp "/Users/xxx/Desktop/testdir/hello_azure.txt" "https://storage873375.blob.core.windows.net/container1/?[?sv=2019-02-02&ss=bfqt&srt=sco&sp=rwdlacup&se=2019-12-11T11:40:09Z&st=2019-12-11T03:40:09Z&spr=https&sig=5%2FFHo4%2BBwxDB6wLftyB7%2FSF7gqnhaEmpFa4nheBOXQg%3D]"

报错,原始是 后边格式的问题

1
2
#mac os terminal
azcopy cp "/Users/xxx/Desktop/testdir/hello_azure.txt" "https://storage873375.blob.core.windows.net/container1/newdir/?sv=2019-02-02&ss=bfqt&srt=sco&sp=rwdlacup&se=2019-12-11T11:40:09Z&st=2019-12-11T03:40:09Z&spr=https&sig=5%2FFHo4%2BBwxDB6wLftyB7%2FSF7gqnhaEmpFa4nheBOXQg%3D"

https://docs.microsoft.com/en-us/rest/api/storageservices/understanding-block-blobs--append-blobs--and-page-blobs

Donate
  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.

扫一扫,分享到微信

微信分享二维码
  • Copyrights © 2019-2024 John Doe
  • Visitors: | Views:

请我喝杯咖啡吧~