Solved

Azure File Share Error in create a new file share

Posted on 2014-11-19
1
323 Views
Last Modified: 2014-12-22
My client gave me to work on windows azure storage.

He wants to store his files in container, blobs.

He gave these URLs
https://xxx.blob.core.windows.net/
https://xxx.queue.core.windows.net/
https://xxx.table.core.windows.net/


Now, I trying to create a new file share using the client lib.
I have written this code.

//Create a CloudFileClient object for credentialed access to File storage.
            CloudFileClient fileClient = storageAccount.CreateCloudFileClient();

            CloudFileShare share = fileClient.GetShareReference("sampleshare");

            share.CreateIfNotExists();
            //Get a reference to the root directory for the share.
            CloudFileDirectory rootDir = share.GetRootDirectoryReference();

Open in new window



When I run this code I am getting an error
The remote name could not be resolved: 'xxx.file.core.windows.net'

I am not sure why this error is coming?
Can any one help me out here please
//Create a CloudFileClient object for credentialed access to File storage.
            CloudFileClient fileClient = storageAccount.CreateCloudFileClient();

            CloudFileShare share = fileClient.GetShareReference("sampleshare");

            share.CreateIfNotExists();
            //Get a reference to the root directory for the share.
            CloudFileDirectory rootDir = share.GetRootDirectoryReference();

Open in new window

0
Comment
Question by:yadavdep
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 19

Accepted Solution

by:
Raheman M. Abdul earned 500 total points
ID: 40469619
The error is due to that the file service is still not enabled on your subscription so contact azure team and they will enable it for you.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Synchronize a new Active Directory domain with an existing Office 365 tenant
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question