Reputation: 715
I'm trying to use a Azure Emulator to create a container, but I think is not working:
Emulator Endpoint :
BlobEndpoint: http://127.0.0.1:10000/
App.config :
<appSettings>
<add key="StorageConnectionString" value="UseDevelopmentStorage=true;" />
</appSettings>
And the code :
CloudStorageAccount storageAccount =
CloudStorageAccount.Parse(CloudConfigurationManager.GetSetting("StorageConnectionString"));
CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient();
CloudBlobContainer container = blobClient.GetContainerReference("mycontainer");
await container.CreateIfNotExistsAsync();
But when I try to access http://127.0.0.1:10000/mycontainer
I got :
The requested URI does not represent any resource on the server.
Upvotes: 0
Views: 861
Reputation: 6467
The correct container URI should be http://127.0.0.1:10000/devstoreaccount1/mycontainer, how did you try to access it? I don't think opening it in browser directly is feasible.
Upvotes: 3