Azure.existsWebsite()

Detects if a website with a given name exists in the currently selected account

Usage

Hover over inputs/exits for more info.

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


// Detects if a website with a given name exists in the currently selected account

Azure.existsWebsite({

name: 'mywebsitename',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function () {

 

},

});

Inputs

name required

The name of the website that will be checked for

'mywebsitename'

Exits

error

An unexpected error occurred.

success

OK.