Solved

Azure File Share Error in create a new file share

Posted on 2014-11-19
1
302 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
1 Comment
 
LVL 18

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

813 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now