@Daniel Nascimento
Yes, you would lose access unless you setup your network properly. For the Boot Diagnostic logs to work you need to allow access from the virtual network. Since you are accessing the File Share from VMs, you can do the same. For more information you can refer to the Azure Files Networking page.
Hope this helps! Let us know if you have further questions or issues.
-------------------------------
Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.