botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Enable az bot prepare-deploy to output iisnode web.config for DL-ASE

Open stevengum opened this issue 5 years ago • 0 comments

Issue

Performing manual edits to the iisnode web.config for JavaScript and TypeScript bots to successfully use Direct Line ASE is odious and can take a few tries to get it correct (DL-ASE + Node.js bot docs). It would be nicer if az bot prepare-deploy --lang <javascript or typescript> also took an optional --add-direct-line-ase-support flag and output a correct (but basic) web.config for use with the samples.

Since az bot prepare-deploy is intended as a one-time use feature (it generates a file for running the bot on Azure App Services), we can help prevent customers from doing manual edits to the web.config.

Proposed change

Add --add-direct-line-ase-support flag to az bot prepare-deploy which when used with typescript or javascript outputs a web.config with the routing and aspnetcoremodule correctly configured.

Tracking Status

Samples TODO

  • [ ] PR
  • [ ] Merged

Docs TODO

  • [ ] PR
  • [ ] Merged

Azure CLI TODO

  • [ ] PR
  • [ ] Merged

FYI @DDEfromOR

stevengum avatar Sep 24 '20 17:09 stevengum