Setting Up Cloud Storage Accounts, Configuring File Shares, Snapshots, and Network Restrictions
Tags: storage, azure, fileshare, network
Published: 2024-05-27 02:59:17

**Create and configure a storage account for Azure Files.**

**In the portal, type "Storage account" in the search field**

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

Select "Storage account"

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

Select "+ Create"

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

**Create new Resource Group, name it and click "OK"**

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

**Insert storage name**

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

**Set Performance to Premium**

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

**Set Premium account type to File shares**

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

**Set Redundancy to Zone-redundant storage**

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

**Select "Review and Create"**

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

**Select "Create"**

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

**Go to resource**

**Create and configure a file share with directory**

**In the data storage section**

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

**Select "File shares"**

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

**Select "+ File share"**

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

**Provide a name**

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

**Select "Create"**

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


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

**Add a directory to the file share for the finance department**

**Select "Add directory"**

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

**Name directory finance**

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

**Click "OK"**

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

**Select "Browse"**

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

**Select finance directory**

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

**Upload a file**

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


**Configure and test snapshots**

**Select "Operations"**

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

**Select "Snapshot"**

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

**Select "+ Add Snappshot"**

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

**Comment is optional, select "OK"**

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

**Return to Fileshare and Browse to view file directory**

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

**Locate uploaded file and select "delete"**

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

**Confirm deletion**

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

**Select Snapshot blade**

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

**Select your snapshot**

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

**Navigate the file you want to restore**

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

**Select "Restore"**

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

**Provide restore file name**

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

**Select "OK"**

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

**Verify your file has been restored**

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


**Configure restricting storage access to selected virtual networks**.

**In the search field, type "Virtual Networks" and select it**

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


**Select "+ Create"**

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

**Use the default for other parameter, give the Virtual network a name**

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

**Select "Review + Create"**

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

**Select "Create"**

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

**Select "Go to resource"**

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

**In the settings section**

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

**Select "Subnets"**

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

**Select the default subnet**

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

**In the service endpoints section**

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

**Select Microsoft.storage in the services dropdown**

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

**Click "Save"**

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

**The storage account should only be accessed from the virtual network you just created. Learn more about using private storage endpoints.**

**Return to the file storage account**

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

**Select "Networking" blade**

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

**In the public network access, select "Enabled from selected virtual networks and IP addresses"**

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

**In the Virtual network section, select "+ Add existing network virtual network"**

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

**Select your virtual network and subnets**

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

**Select "Add"**

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

**Save changes**

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

Select **"Storage browser"**

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

**Navigate to your file share**

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

**Verify you are not authorised to perform this operation**

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