Q88. How to address resources in the Storage Emulator?
Microsoft provides Windows Azure storage emulator which simulates the Blob, Queue, and Table Storage services available in the cloud, on a local machine. Using this storage emulator, we can develop and test an Azure cloud application before we deploy it to the cloud.
The URI scheme for a resource running in the Storage Emulator follows this format:
http://://
Compare this URI scheme for addressing resources in the cloud, with the one given earlier. In the scheme, the account name is a part of the URI path. This is because the local computer does not perform domain name resolution.
The following format is used for addressing resources running in the storage emulator:
Blob Service: http://127.0.0.1:10000//
Queue Service: http://127.0.0.1:10001//
Table Service: http://127.0.0.1:10002//
Note that the BLOB storage endpoint for development storage BLOB services is by default 127.0.0.1:10000.
The Storage Emulator supports only a single fixed account and a permanent authentication key. The account name and key are the only credentials permitted for use with the Storage Emulator. They are:
Account name: devstoreaccount1
Accountkey: Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOt
Given that the account name is always devstoreaccount1, your URI should be:
http://127.0.0.1:10000/devstoreaccount1/{container-name}/{filename}.{extension}
For example, the following address is used for accessing a Blob in the Storage Emulator:
http://127.0.0.1:10000/devstoreaccount1/images/123.jpg
The URI scheme for a resource running in the Storage Emulator follows this format:
http://
Compare this URI scheme for addressing resources in the cloud, with the one given earlier. In the scheme, the account name is a part of the URI path. This is because the local computer does not perform domain name resolution.
The following format is used for addressing resources running in the storage emulator:
Blob Service: http://127.0.0.1:10000/
Queue Service: http://127.0.0.1:10001/
Table Service: http://127.0.0.1:10002/
Note that the BLOB storage endpoint for development storage BLOB services is by default 127.0.0.1:10000.
The Storage Emulator supports only a single fixed account and a permanent authentication key. The account name and key are the only credentials permitted for use with the Storage Emulator. They are:
Account name: devstoreaccount1
Accountkey: Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOt
Given that the account name is always devstoreaccount1, your URI should be:
http://127.0.0.1:10000/devstoreaccount1/{container-name}/{filename}.{extension}
For example, the following address is used for accessing a Blob in the Storage Emulator:
http://127.0.0.1:10000/devstoreaccount1/images/123.jpg
See More Questions and Answers on - Azure Blobs and Queues
- Partitions and Queries?
- How to insert multiple records in a transaction using TableBatchOperation?
- Partition size in Azure table storage?
- What are the typical query types for table storage?
- Explain blobs data model?
- Configure a .Net application for using storage emulator?
- How to create a container and upload a blob using the server explorer?
- How to use the windows azure blob storage service in .net?
- Key benefits of SQL database service?