Azure.triggerWebjob()

Triggers a webjob on a given website.

Usage

Hover over inputs/exits for more info.

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


// Triggers a webjob on a given website.

Azure.triggerWebjob({

deploymentUser: 'johndoe',

deploymentPassword: 'p@ssw0rd',

name: 'myscript.ps1',

website: 'mysite',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function () {

 

},

});

Inputs

deploymentUser required

The deployment username for the website

'johndoe'
deploymentPassword required

The deployment password for the website

'p@ssw0rd'
name required

The name of the script that should be triggered

'myscript.ps1'
website required

The name of the website the script should be triggered on

'mysite'

Exits

error

An unexpected error occurred.

success

OK.