Permalink
Browse files

updating readme

  • Loading branch information...
1 parent 1242ea6 commit 2b047410c205bdabf6d314f87f0e0080ccd86d68 Glenn Block committed Feb 12, 2013
Showing with 28 additions and 0 deletions.
  1. +28 −0 README.md
View
@@ -22,6 +22,8 @@ This project provides a Node.js package that makes it easy to access Windows Azu
* get configuration settings and access local resources
* get role instance information for current role and other role instances
* query and set the status of the current role
+* Azure SQL Database
+ * create, list and delete Azure SQL Database servers, databases and firewall rules
# Getting Started
## Download Source Code
@@ -120,6 +122,20 @@ blobService.getBlobToStream('taskcontainer', 'task1', fs.createWriteStream('task
});
```
+To create a SAS URL you can use the **generateSharedAccessSignatureUrl** method. Additionally you can use the **date** helper functions to easily create a SAS that expires at some point relative to the current time.
+
+```Javascript
+var blobService = azure.createBlobService();
+
+//create a SAS that expires in an hour
+var sharedAccessPolicy = {
+ AccessPolicy: {
+ Expiry: azure.date.minutesFromNow(60);
+ }
+};
+
+var sasUrl = blobService.generateSharedAccessSignatureUrl(containerName, blobName, sharedAccessPolicy);
+
## Storage Queues
The **createQueueIfNotExists** method can be used to ensure a queue exists:
@@ -304,6 +320,18 @@ azure.RoleEnvironment.getRoles(function(error, roles) {
});
```
+## Azure SQL Database
+
+The Azure SQL Database functions allow you to manage Azure SQL servers, databases and firewall rules.
+
+### Servers
+To work with servers and firewall rules you can use the SqlManagementService
+
+```Javascript
+var authentication={keyvalue:"...", certvalue:"..."};
+var sqlMgmt = new azure.SqlManagementService(subscriptionId, authentication);
+```
+
**For more examples please see the [Windows Azure Node.js Developer Center](http://www.windowsazure.com/en-us/develop/nodejs)**
# Need Help?

0 comments on commit 2b04741

Please sign in to comment.