STEP 1 : Go to portal.azure.com
- search for storage account
- select 'create storage account'
-Give the resource group a name
-Give the storage account a name
-Select region
-In primary service, select 'Azure blob storage'
-In performance select 'standard'
-Under redundancy, select 'GRS', enable the 'make read access to data
availability in the event of regional unavailability.
-Then click on 'review and create'
After clicking on the 'review and create button', the page below will be displayed
Then click on 'create'
- Deployment is in progress
Deployment is complete, click on 'Go to resource'
STEP 2: Go to 'configuration' on the left pane
- enable 'allow blob anonymous access'
- enable 'allow storage account key access'
- click on 'save' button
STEP 3: Go to 'container' on the left pane
- name the container 'public'
- select 'blob anonymous read access for blobs only)
- Then click on 'create'
The container is created, click on the public container to upload an image
To upload an image/file, click on 'upload'
Click on 'Browse for files'. After selecting the file/image, click on upload
The file is uploaded, click on the file name
Click on the downloaded file, copy the URL address to the browser and press the search button
(https://sapublic84.blob.core.windows.net/public/13221573_972006292897303_8444556955887658365_n.jpg)
The downloaded file is now publicly available
STEP 4: Object replication
On the container overview page, tick the public box, select 'data management' then 'object replication'
Create replication rules
On destination storage, select 'saprivate'
on source container, select 'public'
on destination container, select 'backup'
Then click on 'create'
It has been successfully replicated
Upload a new file in the public container
- Go to container, select public
- click on 'upload'
Go to storage account, select 'saprivate'
select 'back-up'
click on the uploaded file
Copy the URL and paste on a browser to view the file
The image is displayed as shown below