Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

azure-publishsettings-parser

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azure-publishsettings-parser

A node.js utility to parse the Windows Azure publishsettings file, and create ServiceManagementService objects to work with the Azure Service Management API.

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

azure-publishsettings-parser

A node.js utility to parse the Windows Azure publishsettings file, and create ServiceManagementService objects to work with the Azure Service Management API.

A publishsettings file contains the information, including the certificates, required to connect to the Windows Azure Service Management API.

Your file can be downloaded from here: http://go.microsoft.com/fwlink/?LinkId=254432

Installation

$ node install azure-publishsettings-parser

Usage

var parser = require('azure-publishsettings-parser');
parser.loadFromFile('my.publishsettings', function(err, subscriptions){

	// the parser will provide an array of subscriptions on a callback
	subscriptions.forEach(function(subscription){

		console.log(subscription.Name);
		console.log(subscription.Id);
		console.log(subscription.ManagementCertificate);

	});
});

You can also parse the settings file from a string:

parser.loadFromString("<xml...>", function(err, subscriptions){
	...
});

When you have found the subscription you want (often there is only one!) you can create an instance of Windows Azure Service Management Service:

var azure = require('azure');
var sms = parser.createServiceManagementService(azure, subscription);
sms.listStorageAccounts(function(err,data){
	console.log(data.body);
});

For more information on the ServiceManagementService see the Microsoft documentation:

http://www.windowsazure.com/en-us/documentation/articles/virtual-machines-linux-how-to-service-api/

Thanks

Thanks to the Microsoft Azure team for the pfx2pem function!

License

MIT

Keywords

FAQs

Package last updated on 25 Feb 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc