locked
Azure File storage service (Preview) RRS feed

  • Question

  • I have a Azure File storage service (Preview) activated for my account. Using .net API, I have created a testshare.

    CloudStorageAccountstorageAccount = CloudStorageAccount.Parse(System.Configuration.ConfigurationSettings.AppSettings["StorageConnectionString"]);

    CloudFileClientfileClient = storageAccount.CreateCloudFileClient();

    CloudFileShareshare = fileClient.GetShareReference("testshare");

    share.CreateIfNotExists();

    However, I get an error when running the following command

    net use P: <a href="file://\\.file.core.windows.net\testshare">\\<accountname>.file.core.windows.net\testshare /u:<accountname> <accountkey> 

    System error 59 has occurred.

    An unexpected network error occurred.

    Wednesday, August 20, 2014 10:27 PM

Answers

  • Hello,

    Glad to see your back.

    >>>However, I have read that we can also use REST APIs to upload/download from azure file storage. Can you direct me to some sample code for the same

    You can follow below document which introduces us how to operate File Service using rest api.

    http://msdn.microsoft.com/en-us/library/azure/dn167006.aspx

    Best Regards,

    Fuxiang


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.


    Saturday, August 23, 2014 5:14 AM

All replies

  • On what machine are you trying to mount the share? Access to the share via SMB protocol is limited only to Azure compute nodes (VM/Worker/Web role).
    Thursday, August 21, 2014 12:08 AM
  • However, I get an error when running the following command

    net use P: <a href="file://\\.file.core.windows.net\testshare">\\<accountname>.file.core.windows.net\testshare /u:<accountname> <accountkey> 

    System error 59 has occurred.

    An unexpected network error occurred.

    Hi windows8mania,

    Thank you post the issue to our forum.

    As for above "error 59 ...", means name resolution fails of a computer name. It generally caused by the nonsexist server you want to assess. As mentioned below:

    "When you attempt to connect to a nonexistent network server and share using the NET USE command, the expected error message is "Error 53: The computer name specified in the network path cannot be located." If the same operation is performed in File Manager, the same error message should appear in a STOP message dialog box without "Error 53." More information you can check below article.

    http://support.microsoft.com/kb/121913/en-us

    Please note we can only map a drive within the same data center as your file share storage account. Besides, I suggest you making sure your subscription is authorized to your storage file service account  "*.file.core.windows.net". If not you should contact to subscription team for a help.

    http://blogs.msdn.com/b/cie/archive/2014/06/06/new-azurestorageshare-the-remote-name-could-not-be-resolved-fileservices-file-core-windows-net.aspx

    Best Regards,

    Fuxiang


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.<br/> Click <a href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

    Thursday, August 21, 2014 7:58 AM
  • Thanks for the response. You are correct. I am trying to mount the share from a network that is not in the same data center as the storage account. Hence the error.

    However, I have read that we can also use REST APIs to upload/download from azure file storage. Can you direct me to some sample code for the same

    Friday, August 22, 2014 11:19 PM
  • Hello,

    Glad to see your back.

    >>>However, I have read that we can also use REST APIs to upload/download from azure file storage. Can you direct me to some sample code for the same

    You can follow below document which introduces us how to operate File Service using rest api.

    http://msdn.microsoft.com/en-us/library/azure/dn167006.aspx

    Best Regards,

    Fuxiang


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.


    Saturday, August 23, 2014 5:14 AM