Azure.listImages()

List all the virtual machine images available to a particular account.

Usage

Hover over inputs/exits for more info.

var Azure = require('machinepack-azure');


// List all the virtual machine images available to a particular account.

Azure.listImages({

subscriptionId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx',

certificate: '-----BEGIN CERTIFICATE-----\nxxxxxxxxxxxx\nxxxxxxxxxxxx\nxxxxxxxxxxxx\n........\nxxxxxxxxxxxx\n-----END CERTIFICATE-----',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// The provided subscription id and/or certificate are invalid, incorrect, or do not correspond to the same Azure account.

forbidden: function () {

 

},

// OK.

success: function () {

 

},

});

Inputs

subscriptionId required

Your Windows Azure subscription id

'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx'
certificate required

The string contents of a management certificate (.pem file) associated with your Azure account

'-----BEGIN CERTIFICATE-----\nxxxxxxxxxxxx\nxxxxxxxxxxxx\nxxxxxxxxxxxx\n........\nxxxxxxxxxxxx\n-----END CERTIFICATE-----'

Exits

error

An unexpected error occurred.

forbidden

The provided subscription id and/or certificate are invalid, incorrect, or do not correspond to the same Azure account.

success

OK.