I have a Azure SMB File share, Existing code uses the Microsoft.WindowsAzure.Storage client library to Mount the File share to the cloud service. As the Microsoft.WindowsAzure.Storage is deprecated I am migrating the client library to Azure.Storage.Files.Shares and it doesn't provide the functionality to Mount the drive.
My application is running in .Net framework 4.6.2 MVC
Is there a way I can mount the drive on the startup ? I even tried the script from the azure portal connection test was failure.
I am looking for a solution which can mount from my .Net application itself. Because File share needs to be mounted to all the instances on the time of autoscalling.
//Existing code using Microsoft.WindowsAzure.Storage
CloudFileShare share = CloudStorageAccount.Parse("Connection string")
.CreateCloudFileClient()
.GetShareReference("reports");
share.CreateIfNotExists();
share.Mount("Z:");