DEV Community

Cover image for Create and configure a file share with directory,test snapshots and restrict storage access to selected virtual networks.
Adedapo
Adedapo

Posted on

Create and configure a file share with directory,test snapshots and restrict storage access to selected virtual networks.

Blob Storage:

It is optimized for storing unstructured data such as images, videos, backups, and log files. It’s used for large-scale data storage and supports different tiers like Hot, Cool, and Archive to manage costs. Data is stored in containers and can be accessed through HTTP/HTTPS.

File Share

It is designed for file-level access, offering shared storage that can be mounted and accessed by multiple machines, both on-premises and cloud-based. It supports the SMB protocol, making it useful for legacy applications needing file system support.

In essence:
Blob Storage is ideal for large volumes of unstructured data while
File Share is more suitable for structured file sharing and storage across multiple machines or users.

Steps to configure a file share with directory

Step 1
Create a storage account for file share
Enter the Resource Group, Storage name and choose Primary Service from the drop down (Azure Files)
storage name

Step 2
Set the Premium account type to File shares, the Redundancy to Zone-redundant storage.
Select Review and then Create the storage account.
storage 2

Step 3
In the storage account, in the Data storage section, select the File shares blade and Select + File share
file share

Step 4
Provide a Name for the File Share and click review and create the create
file name

Step 5
Add a directory to your File Share
Click on + Add Directory, give name and click ok
+ add

Step 6
Check your Directory by selecting browse
check

Step 7
Configure and test snapshot
Select your file share.
In the Operations section, select the Snapshots blade.
snapshot

Step 8
Select + Add snapshot. The comment is optional. Select OK.
add snapshot

Configure restricting storage access to selected virtual networks

Step 9
Search for and select Virtual networks
Select +Create.
Select your resource group. and give the virtual network a name.
Select review and create, then create
Virtual Netwwork

Step 10
In the Settings section of your virtual network, select the Subnets blade.
subnet

Step 11
Select the default subnet.
scroll down to Service endpoints section choose Microsoft.Storage in the Services drop-down and click save
default subnet

Step 12
Return to your files storage account.
In the Security + networking section, select the Networking blade
networking

Step 13
Change the Public network access to Enabled from selected virtual networks and IP addresses.
In the Virtual networks section, select Add existing virtual network.
existing VN

Step 14
Select your virtual network and subnet, select Add.
Be sure to Save your changes.
Choose

CONCLUSION
With these steps we have successfully Create and configure a file share with directory,test snapshots and restrict storage access to selected virtual networks.

Top comments (0)