本文內容

概觀Overview

Azure Blob 儲存體是一項儲存大量非結構化資料的服務 (例如文字或二進位資料)，全球任何地方都可透過 HTTP 或 HTTPS 來存取這些資料。Azure Blob Storage is a service for storing large amounts of unstructured data, such as text or binary data, that can be accessed from anywhere in the world via HTTP or HTTPS.您可以使用 Blob 儲存體向全球公開資料，或私下儲存應用程式資料。You can use Blob storage to expose data publicly to the world, or to store application data privately.在本文中，您將學習如何使用儲存體總管 來處理 Blob 容器和 Blob。In this article, you'll learn how to use Storage Explorer to work with blob containers and blobs.

必要條件Prerequisites

若要完成這篇文章中的步驟，您需要下列項目︰To complete the steps in this article, you'll need the following:

建立 Blob 容器Create a blob container

所有 blob 必須都位於 blob 容器，這是 blob 的邏輯群組。All blobs must reside in a blob container, which is simply a logical grouping of blobs.帳戶可以包含無限數量的容器，每個容器可以儲存無限數量的 blob。An account can contain an unlimited number of containers, and each container can store an unlimited number of blobs.

下列步驟說明如何在儲存體總管中建立 blob 容器。The following steps illustrate how to create a blob container within Storage Explorer.

開啟儲存體總管。Open Storage Explorer.

在左窗格中，展開您要在其中建立 blob 容器的儲存體帳戶。In the left pane, expand the storage account within which you wish to create the blob container.

完成建立 blob 容器時按下 Enter鍵，或按下 Esc 鍵取消。Press Enter when done to create the blob container, or Esc to cancel.一旦成功建立 blob 容器，它就會顯示在所選的儲存體帳戶的 [Blob 容器] 資料夾底下。Once the blob container has been successfully created, it will be displayed under the Blob Containers folder for the selected storage account.

下列步驟說明如何在儲存體總管中刪除 blob 容器：The following steps illustrate how to delete a blob container within Storage Explorer:

開啟儲存體總管。Open Storage Explorer.

在左窗格中，展開儲存體帳戶，其中包含您要檢視的 blob 容器。In the left pane, expand the storage account containing the blob container you wish to view.

展開儲存體帳戶的 [Blob 容器] 。Expand the storage account's Blob Containers.

以滑鼠右鍵按一下您想要刪除的 blob 容器，從內容功能表中，選取 [刪除] 。Right-click the blob container you wish to delete, and - from the context menu - select Delete.您也可以按 [刪除] 以刪除目前選取的 blob 容器。You can also press Delete to delete the currently selected blob container.

選取確認對話方塊上的 [是] 。Select Yes to the confirmation dialog.

複製 Blob 容器Copy a blob container

儲存體總管可讓您將 blob 容器複製到剪貼簿，然後將該 blob 容器貼到另一個儲存體帳戶。Storage Explorer enables you to copy a blob container to the clipboard, and then paste that blob container into another storage account.(若要查看如何複製個別的 blob，請參閱管理 blob 容器中的 blob 區段。)(To see how to copy individual blobs, refer to the section, Managing blobs in a blob container.)

下列步驟說明如何將 blob 容器從某個儲存體帳戶複製到另一個儲存體帳戶。The following steps illustrate how to copy a blob container from one storage account to another.

開啟儲存體總管。Open Storage Explorer.

在左窗格中，展開儲存體帳戶，其中包含您要複製的 blob 容器。In the left pane, expand the storage account containing the blob container you wish to copy.

取得 Blob 容器的 SASGet the SAS for a blob container

共用存取簽章 (SAS) 可提供您儲存體帳戶中資源的委派存取。A shared access signature (SAS) provides delegated access to resources in your storage account.這表示您可以在無需分享您帳戶存取金鑰的情況下，將您儲存體帳戶中的物件有限權限授與用戶端，該用戶端便可在指定的時間期間內及使用指定的權限集來進行存取。This means that you can grant a client limited permissions to objects in your storage account for a specified period of time and with a specified set of permissions, without having to share your account access keys.

下列步驟說明如何建立 blob 容器的 SAS：The following steps illustrate how to create a SAS for a blob container:

開啟儲存體總管。Open Storage Explorer.

在左窗格中，展開儲存體帳戶，其中包含您要取得 SAS 的 blob 容器。In the left pane, expand the storage account containing the blob container for which you wish to get a SAS.

第二個 [共用存取簽章] 對話方塊會顯示，列出您可以用來存取儲存體資源的 blob 容器及 URL 和 QueryStrings。A second Shared Access Signature dialog will then display that lists the blob container along with the URL and QueryStrings you can use to access the storage resource.選取您想要複製到剪貼簿的 URL 旁邊的 [複製] 。Select Copy next to the URL you wish to copy to the clipboard.

完成時，選取 [關閉] 。When done, select Close.

管理 blob 容器的存取原則Manage Access Policies for a blob container

下列步驟說明如何管理 (新增和移除) blob 容器的存取原則︰The following steps illustrate how to manage (add and remove) access policies for a blob container:

管理 blob 容器中的 blobManaging blobs in a blob container

建立 blob 容器之後，您可以將 blob 上傳至 blob 容器、將 blob 下載到本機電腦或在本機電腦上開啟 blob 等等。Once you've created a blob container, you can upload a blob to that blob container, download a blob to your local computer, open a blob on your local computer, and much more.

下列步驟說明如何管理 blob 容器中的 blob (及資料夾)。The following steps illustrate how to manage the blobs (and folders) within a blob container.

開啟儲存體總管。Open Storage Explorer.

在左窗格中，展開儲存體帳戶，其中包含您要管理的 blob 容器。In the left pane, expand the storage account containing the blob container you wish to manage.

選擇性地指定選取的檔案將會上傳至其中的目標資料夾。Optionally, specify a target folder into which the selected file(s) will be uploaded.如果目標資料夾不存在，系統就會加以建立。If the target folder doesn’t exist, it will be created.

選取 [上傳] 。Select Upload.

將資料夾上傳至 blob 容器Upload a folder to a blob container

在主窗格工具列上，選取 [上傳] ，然後從下拉式功能表選取 [上傳資料夾] 。On the main pane's toolbar, select Upload, and then Upload Folder from the drop-down menu.

在 [上傳資料夾] 對話方塊中，選擇 [資料夾] 文字方塊右側的省略符號 ( … ) 按鈕，以選取您想要上傳其內容的資料夾。In the Upload folder dialog, select the ellipsis (…) button on the right side of the Folder text box to select the folder whose contents you wish to upload.