How to Create And Use Azure Blob Storage

preview_player
Показать описание
How to Create and Use Azure Blob Storage
Azure Blob Storage is a scalable and cost-effective storage solution provided by Microsoft Azure to store unstructured data like documents, images, videos, backups, and more. Here's a step-by-step guide on how to create and use Azure Blob Storage:
Step 2: Create an Azure Storage Account If you haven't already created an Azure Storage account, follow the steps outlined in the previous response on "How to Create and Configure an Azure Storage Account."
Step 3: Access your Storage Account Once your Azure Storage account is created, you can access it by:
a. Going to the Azure Portal.
b. Clicking on "All resources" in the left-hand menu.
c. Select your Storage account from the list of resources.
Step 4: Create a Blob Container In Azure Blob Storage, data is organized into containers. Containers are similar to folders and are used to group related blobs. To create a container, follow these steps:
a. In your Storage account, go to the "Containers" section in the left-hand menu.
b. Click on the "+ Container" button to create a new container.
c. Provide a unique name for your container, and you can also select the access level for the container (either private or public). In most cases, it's best to keep the access level private to control access to the container.
d. Click on the "Create" button to create the container.
Step 5: Upload Blobs to the Container Now that you have created a container, you can start uploading blobs (files) to it. Here's how to do it:
a. In the container view, click on the "Upload" button to upload a new blob.
b. You can choose to upload files from your local machine, a URL, or even from another Azure Storage account.
c. Select the file you want to upload, and it will be added to the container as a blob.
c. Azure CLI: The Azure Command-Line Interface (CLI) also allows you to manage Azure Blob Storage from the command line.
Step 7: Accessing Blobs via URL You can also access blobs stored in Azure Blob Storage via URLs. By setting appropriate permissions (e.g., making the container public), you can generate a URL for a blob that allows public access.
To access a blob via URL, follow these steps:
a. In your Storage account, go to the "Containers" section.
b. Click on the container containing the blob you want to access.
c. Find the blob you want to access, right-click on it, and select "Generate SAS."
d. Configure the Shared Access Signature (SAS) according to your requirements. The SAS URL will be generated.
e. Copy the SAS URL and use it to access the blob directly via a web browser or in your applications.
That's it! You have now created and used Azure Blob Storage to store and manage your data in the cloud.
Рекомендации по теме