services | platforms | author |
---|---|---|
storage |
java |
sribhat-MSFT |
Azure Blob Service Sample - Demonstrates how to perform common tasks using the Microsoft Azure Blob Service.
Blob storage stores unstructured data such as text, binary data, documents or media files. Blobs can be accessed from anywhere in the world via HTTP or HTTPS.
Note: If you don't have a Microsoft Azure subscription you can get a FREE trial account here
This sample can be run using either the Azure Storage Emulator, your Azure Storage account by updating the config.properties file with your "AccountName" and "Key", or using the Azure CLI.
To run the sample using the Storage Emulator (default option - Only available on Microsoft Windows OS):
- Start the Azure Storage Emulator by pressing the Start button or the Windows key and searching for it by typing "Azure Storage Emulator". Select it from the list of applications to start it.
- Set breakpoints and run the project.
To run the sample using the Storage Service:
- Open the config.properties file and comment out the connection string for the emulator "UseDevelopmentStorage=True" and uncomment the connection string for the storage service "AccountName=[]".
- Create a Storage Account through the Azure Portal and provide your account name and account key in the config.properties file.
- Set breakpoints and run the project.
To run the sample using Azure CLI:
- Install Azure CLI
- Login with Azure CLI
- Run node setup.js
- mvn compile exec:java
- Run node teardown.js