STORAGE FOR INTERNAL COMPANY DOCUMENTS
Published: 2024-05-24 13:41:04

In the portal, search for and select Storage accounts.
Select + Create.
Select the Resource group created in the previous lab.
Set the Storage account name to private. Add an identifier to the name to ensure the name is unique.
Select Review, and then Create the storage account.
Wait for the storage account to deploy, and then select Go to resource


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9340iinnr4fesohxw1lt.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8hqxq1mhvjepnwhui4pc.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0ukhziwv8tghm6tlpycy.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9rfs6jmenven8a1x2rlt.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eshr2128huoo6pav6lrh.png)

In the storage account, in the Data management section, select the Redundancy blade.
Ensure Geo-redundant storage (GRS) is selected.
Refresh the page.
Review the primary and secondary location information.
Save your changes.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0zgnfgej8kf6w0bzq5z1.png)

In the storage account, in the Data storage section, select the Containers blade.
Select + Container.
Ensure the Name of the container is private.
Ensure the Public access level is Private (no anonymous access).
As you have time, review the Advanced settings, but take the defaults.
Select Create.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xf7rqnfb0rd6l2x3j3fg.png)

**To test and ensure the file isn't accessible (Private)**
Select the container.
Select Upload.
Browse to files and select a file.
Upload the file.
Select the uploaded file.
On the Overview tab, copy the URL.
Paste the URL into a new browser tab.
Verify the file doesn’t display and you receive an error.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3ikxu5obh73x06bxlyjc.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ovtzl7clc024xuvqatoy.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dx0k14jirfjp5ymfwkkh.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jqknkjxb9h11kive7ke3.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jt8bgut8zhak4ursbmru.png)

Select your uploaded blob file and move to the Generate SAS tab.
In the Permissions drop-down, ensure the partner has only Read permissions.
Verify the Start and expiry date/time is for the next 24 hours.
Select Generate SAS token and URL.
Copy the Blob SAS URL to a new browser tab.
Verify you can access the file. If you have uploaded an image file it will display in the browser. Other file types will be downloaded.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qfde5ye4zajxis0ulvqy.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/le9j6vtniaq2iep2stze.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g6mytlguiug879af4czz.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zx8lc5o65vhod38zunp9.png)

Return to the storage account.
In the Overview section, notice the Default access tier is set to Hot.
In the Data management section, select the Lifecycle management blade.
Select Add rule.
Set the Rule name to movetocool.
Set the Rule scope to Apply rule to all blobs in the storage account.
Select Next.
Ensure Last modified is selected.
Set More than (days ago) to 30.
In the Then drop-down select Move to cool storage.
As you have time, review other lifecycle options in the drop-down.
Add the rule.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/atwkzbx2gxfy36puzb4x.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h469i5533sd9ttkbo2y9.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qk0b8u6do47j0act4e4g.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g84bhlkx3hu4mjd5j18d.png)

**public website files need to be backed up to another storage account**
In your storage account, create a new container called backup. Use the default values. Refer back to Lab 02a if you need detailed instructions.
Navigate to your publicwebsite storage account. This storage account was created in the previous exercise.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mgr5dtzcmp9syyhdsap8.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x02torlrvg3i767psd4q.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lj4tuh7794fc78bsug5v.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4r0wlwkpzojk6czuwpk1.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xg8qq7xyyd1paatjopcz.png)