Getting Started with Azure Table Service in Java

Автор: Sriprasad Bhat - MSFT
Последнее обновление: 14.09.2016
Редактирование в GitHub

Azure Table Service Sample - Demonstrate how to perform common tasks using the Microsoft Azure Table Service including creating a table, CRUD operations, batch operations and different querying techniques.

The Azure Table storage service stores large amounts of structured data. The service is a NoSQL datastore which accepts authenticated calls from inside and outside the Azure cloud. Azure tables are ideal for storing structured, non-relational data. You can use the Table service to store and query huge sets of structured, non-relational data, and your tables will scale as demand increases.

Note: If you don't have a Microsoft Azure subscription you can get a FREE trial account here

Running this sample

This sample can be run using either the Azure Storage Emulator, your Azure Storage account by updating the 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):

  1. 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.
  2. Set breakpoints and run the project.

To run the sample using the Storage Service:

  1. Open the app.config file and comment out the connection string for the emulator "UseDevelopmentStorage=True" and uncomment the connection string for the storage service "AccountName=[]".
  2. Create a Storage Account through the Azure Portal and provide your account name and account key in the file.
  3. Set breakpoints and run the project.

To run the sample using Azure CLI:

  1. Install Azure CLI
  2. Login with Azure CLI
  3. Run node setup.js
  4. mvn compile exec:java
  5. Run node teardown.js

More information

What is a Storage Account

Getting Started with Tables

Table Service Concepts

Table Service REST API

Azure Storage Java API

Storage Emulator