Private Office Storage Solutions: Ensuring Confidentiality and High Availability
Tags: azure, beginners, cloudcomputing, programming
Published: 2023-12-03 21:56:51

## Creating a storage account with high availability
- In the market place search for storage account and select create
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vp1c54qijr0m1ndbjkup.png)
- In the project details, select the resource group you just created
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m2eq3f1fnh08vr5gwicn.png)
- Under the instance details, supply the name for your storage account. 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/11jorex44mu1qwk97mkp.png)
- Click review
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jno3uskc3wzgzj0uaani.png)
- Once validation is passed, click create
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/27ibc3nsb7m7ikhvhm95.png)
- Wait for it to deploy
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7elfe65abtysjx80f1w3.png)
- After deployment is done, click go to resource
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u3ow8hdmlubfktlvi6yu.png)

## Configuring high availability
- Select redundancy in the Data management section
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2kujaak5sdzjx75ipur7.png)
- Change the redundancy to Geo-redundant storage
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t9eeuk9my4anuqwnowr0.png)
- Click save
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jmuvbzbu7ta577nej0gl.png)

## How to create a private storage container
- Click containers in the data storage section
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i4g3i0w8ukuf5knoetio.png)
- Create a new container by selecting + container
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gx3iyjuu9kyosrpi6zty.png)
- In the new container pane, enter the name for your container, let the anonymous access level be private and click save
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zafytm5v90mccvdpbuw2.png)

## How to test if our container is private
- Click the created container
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uasqzgrzr6440kftr5al.png)
- Click upload
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rhtsjfn3bbwkbtki7re0.png)
Click browse for files to select a file
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x9u22yoefokqzj5oliiq.png)
- Click upload
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z7hti1aih3azpbdewbtw.png)
- Click the uploaded file
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3bp21srbmz131zr3ogqr.png)
- Copy the file url
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yv4f89b2rlp6cedff3ty.png)
- Paste the url in a browser and search. It will give an error and file doesn't display
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2s6a3s9a7vvp74mbhtyj.png)

## How to set up Shared Access Signature
- Select the uploaded file and click generate SAS
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vt9rj33pgj8sc9i8599t.png)
- Under permissions, select read
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1t375rhtd5yzfqxija0e.png)
- Set the start and expiry date/time to 24 hours
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ylzqm1qnszr74i4z52ue.png)
- Click  generate SAS token and URL
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rtvfq52nbxeibbo6mvd4.png)
- Copy the blob SAS URL
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9nrvd24ac9xb5kaglck4.png)
- Paste it in a browser and search. It will display your uploaded file
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xg4l6yujw0209dmdczmu.png)

## How to set up replication of content and storage access tiers.
- In the storage account overview, notice the default access tiers
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/me01ldvj7gx22anjxwbu.png)
- Select Lifecycle management under Data management
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jjp6qhdy5cb1bdesmgvv.png)
- Click add rule
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pkojtnhkn41ptv7a4cnj.png)
- Choose a rule name and tick apply rule to all blobs in your storage account
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lu1z5x8eey6ir5pq7q2i.png)
- Tick last modified and Set More than (days ago) to 30 under If
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/itztv1e9aqi2c7vzh50f.png)
- Under Then, select Move to cool storage
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/owdpn3thiikjyby1e4rq.png)
- Click add
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qkmjmhn5vcf35jraj1qt.png)

## How to replicate object from a storage account to another storage account
You need to decide which of the accounts will be Destination account and source account
- From the source storage account, select object replication under Data management
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gpul4zfqy8iug3wk1sqf.png)
- Select create replication rules
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3q8gk27ra3veslu6jmg3.png)
- Select Destination storage account
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dr797fk2kpyrzujwq7in.png) 
- Select destination container and source container
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vbls90kac4xujpeuvxjz.png)
- Click create
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7cdiej9b8lcvcsgoyngr.png)
- Test the rule by uploading a file in the source container, the file will be copied automatically in the destination container after few minutes.