Situatie
Azure provides multiple ways to store images, such as Azure Blob Storage, Azure Files, and Azure Disks. The most common and cost-effective way to store and retrieve images is Azure Blob Storage.
Solutie
1. Sign in to Azure Portal
- Go to the Azure Portal
- Sign in with your Microsoft Azure account.
2. Create an Azure Storage Account
- In the Azure Portal, search for Storage Accounts
- Click + Create
- Fill in the details:
- Subscription: Select your Azure subscription
- Resource Group: Select an existing one or create a new one
- Storage Account Name: Choose a unique name (e.g.,
myimagestorage
) - Region: Select a region close to your users
- Performance: Choose Standard (cost-effective) or Premium (high-speed)
- Replication: Select Locally Redundant Storage (LRS) (cheapest) or another redundancy option.
- Click Review + Create, then Create.
3. Create a Blob Container
- Once your storage account is deployed, go to Storage Accounts
- Click on your newly created storage account
- Under Data Storage, select Containers
- Click + Container
- Enter a Container Name (e.g.,
images
) - Set Public Access Level:
- Private (default) – No public access
- Blob – Public read access for blobs only
- Container – Public read access for everything.
- Click Create.
4. Upload an Image to Blob Storage
Via Azure Portal
- Go to your Storage Account → Containers → images
- Click Upload
- Select an image file from your computer
- Click Upload.
Leave A Comment?