Azure-cli: webspp:No way to generate deployment scripts for WebApps

Created on 2 Mar 2017  路  12Comments  路  Source: Azure/azure-cli

It is common to generate a sample deployment script for customizing deployments to WebApps via Kudu. CLI 1.0 supported this, but no such command exists in 2.0.

All 12 comments

Plan to do it at the second half of March.
Edit, per my later comments, this might not be feasible to plan for March release

//cc:@davidebbo
This might need kudu script which currently is a npm module, not pip package

Correct, it's based on kuduscript.

Note that there is now a simpler workflow to get the starter script:

  • Deploy to Kudu once with the default script generation
  • Go to Kudu an download script from menu
  • Modify at will and commit to repo

@davidebbo What is the recommendation here for Linux-based Web Apps? The Tools...Download deployment script menu isn't displayed in Kudu for Linux.

@yugangw-msft Was there any further discussion on this item? It'd be cool to see something happen to support this scenario.

@lostintangent You can install kuduscript directly from npm and run that. e.g. try:

npm install -g kuduscript
kuduscript -y --node

@davidebbo Ah cool! Thanks for the quick response. Was this tool what the Azure CLI 1.0 was using behind the scenes to generate the deployment script?

@lostintangent Yep. So all the switches are identical.

@davidebbo Very cool. Thanks so much for that pointer! I'd definitely love to see this integrated into Az CLI 2.0 (per this request), but it's awesome to know about this NPM module in the meantime.

I guess it comes down to the feasibility of shelling out to a Node tool from a Python tool. I'll let @yugangw-msft comment further.

The problem with shelling out approach is that we can't guarantee that node.js is installed. We probably could look into the possibility of migrating https://www.npmjs.com/package/kuduscript to python.

@troydai that's a much bigger investment. Not saying it can't happen, but definitely not in the near term.

Closing this since this not something planned.

Was this page helpful?
0 / 5 - 0 ratings