Parameters for createDeploymentSlot from the azure-arm-websites API for node?

问题内容:

I’m looking for a way to automate azure app-services slot creation for one of my webapps (preferably in nodejs). I have found the documentation for a library called azure-arm-websites. It looks like it provides me with the correct interface but the documentation is very limited. For instance i found a method called createDeployment which I want to use but parameters for this function are not well Documented. Does any one know how to call this function properly to create a github deployment?

const client = new WebSiteManagementClient(credentials, subscriptionId, baseUri)
const app = new WebApp(client);
const name = '<filtered>';
const id = 'production';
resourceGroupName = '<resource_group_name>'
const slot = '<slot_name>'
const deployment = {
   deploymentId: '',
   active: true,
   status: 0,
   author: '',
   deployer: '',
   authourEmail: '',
   details: '',
   kind: '',
};
const options = {};
optionsCallback = function(){};
app.createDeploymentSlot(resourceGroupName, name, id, slot, deployment, options, optionalCallback)

I have no Idea how to fill the deployment objects parameters. For instance kind appears to be an enum but it has no further documentation.

Thanks for your help.

问题评论:

    
i’d just use any of the cli’s available out there

原文地址:

https://stackoverflow.com/questions/47754795/parameters-for-createdeploymentslot-from-the-azure-arm-websites-api-for-node

添加评论

友情链接:蝴蝶教程