This SDK allows you to build Windows Azure applications that take advantage of Azure scalable cloud computing resources: table and blob storage, messaging through Service Bus, distributed caching through cache.
For documentation please see the Windows Azure .NET Developer Center.
To get the source code of the SDK via git just type:
git clone git://github.com/WindowsAzure/azure-sdk-for-net.git
cd ./azure-sdk-for-net
To get the binaries of this library as distributed by Microsoft, ready for use
within your project you can also have them installed by the .NET package manager NuGet.
Install-Package WindowsAzure.Storage
Note:
/samples
folder.First, include the classes you need (in this case we'll include the StorageClient
and further demonstrate creating a table):
using Microsoft.WindowsAzure; using Microsoft.WindowsAzure.StorageClient;
To perform an operation on any Windows Azure resource you will first instantiate
a client which allows performing actions on it. The resource is known as an
entity. To do so for Table you also have to authenticate your request:
var storageAccount = CloudStorageAccount.FromConfigurationSetting("StorageConnectionString"); var tableClient = storageAccount.CreateCloudTableClient();
Now, to create a table entity using the client:
tableClient.CreateTable("People");
Be sure to check out the Windows Azure Developer Forums on MSDN if you have trouble with the provided code.
For feedback related specificically to this SDK, please use the Issues section of the repository.
For general suggestions about Windows Azure please use our UserVoice forum.