To access the share within a VM, you mount it to your VM. You can mount a share to a VM so that the file share is available indefinitely to the VM, regardless of restarts.
a- To make the Storage Account credentials available across VM restarts, add them to the Windows Credential Manager:
cmdkey /add:<Storage-AccountName>.file.core.windows.net /user:<StorageAccountName> /pass:<StorageAccountKey>
b- Mount the file share using the Stored Credentials: Generally drive Z is used
net use z: \\ <Storage-AccountName>.file.core.windows.net\<ShareName>
c-To ensure a persistent file share that will survive any VM restart:
net use z: \\ <Storage-AccountName>.file.core.windows.net\<ShareName> /Persistent: YES
d- To verify that the network share was added or continues to exist:
net use
Drive Z will shows 5TB drive mounted in Windows Explorer.
a- To make the Storage Account credentials available across VM restarts, add them to the Windows Credential Manager:
cmdkey /add:<Storage-AccountName>.file.core.windows.net /user:<StorageAccountName> /pass:<StorageAccountKey>
b- Mount the file share using the Stored Credentials: Generally drive Z is used
net use z: \\ <Storage-AccountName>.file.core.windows.net\<ShareName>
c-To ensure a persistent file share that will survive any VM restart:
net use z: \\ <Storage-AccountName>.file.core.windows.net\<ShareName> /Persistent: YES
d- To verify that the network share was added or continues to exist:
net use
Drive Z will shows 5TB drive mounted in Windows Explorer.