Hey guys!!! We are really building some cloud muscle and this article promises to deliver an even intense cloud workout. In this article, we are going to delve int Azure Storage.
What is an Azure file storage? Azure file storage is designed for shared file storage. It is ideal for scenarios where you need to share files across multiple users or applications.
This article will help us to:
- Create a storage account specifically for file shares.
- Configure a file share and directory.
- Configure snapshots and practice restoring files.
- Restrict access to a specific virtual network and subnet.
Without further ado!!! Lets go to the cloud!!!
Create and configure a storage account for Azure Files
- In the portal, search for and select Storage accounts.
For Resource group select Create new. Give your resource group a name and select OK to save your changes. Provide a storage account name and set the performance to premium.
- Set the premium account type to File shares. Set the Redundancy to Zone-redundant storage. Then select Review and then Create the storage account
- Wait for the resource to deploy and select Go to resource.
Create and configure a file share with directory.
- In the storage account, in the data storage section, select the file share
- Select + File share and provide a Name. Review the other options, but take the defaults. Select Create
- Select your file share and select + Add directory. Name the new directory finance.
- Select browse and then select the finance directory. Notice you can Add directory to further organize your file share. Upload a file of your choosing.
Configure and test snapshots
- Select your file share. In the operations section, select the snapshots blade.
- Select your snapshot and verify your file directory and uploaded file are included. The comment is optional. Select OK.
Practice using snapshots to restore a file.
- Return to your file share. Browse to your file directory. Locate your uploaded file and in the Properties pane select Delete. Select Yes to confirm the deletion.
- Select the Snapshots blade and then select your snapshot.
- Navigate to the file you want to restore, select the file and the select restore. Provide a restored file name.
- Verify your file directory has the restored file.
Configure restricting storage access to selected virtual networks.
- Search for and select Virtual networks
- Select Create.
- Select your resource group and give the virtual network a name. Take the defaults for other parameters, select Review + create, and then Create.
- Wait for the resource to deploy and select go to resource.
In the Settings section, select the Subnets blade
- Select the default subnet. In the Service endpoints section choose Microsoft.Storage in the Services drop-down. Do not make any other changes. Be sure to save your changes.
The storage account should only be accessed from the virtual network you just created
- Return to your files storage account. In the Security + networking section, select the networking blade. Change the public network access to enabled from selected virtual networks and IP addresses. In the virtual networks section, select Add existing virtual network. Select your virtual network and subnet, select Add.
- Be sure to Save your changes. Select the storage browser and navigate to your file share. Verify the message "not authorized to perform this operation."
And just like that we are back from the clouds. Join me in the next article as we keep building that cloud muscle. Until then, I am done, I am gone but not for long. See you soon in the next article.
COMMENT, LIKE AND SHARE
Top comments (0)