1
votes

Summary

  • The ARM template exported from a working Azure Web App (for a QnAmaker Chat Bot) is not correctly exported, i.e does not completely recreate the resource it was exported from.
  • Several configuration parameters are not included in the downloaded ARm template (i.e QnAmaker connection parameters)
  • This means when the Web App is deployed from the downloaded ARM template it does not restore the Web App correctly.

I've copied the ARM template here: https://gist.github.com/archmangler/165fb1c0b96dd98bbca09b9377b6293f

Questions

  • Is there a way to export the complete arm template such that it actually produces a functioning web app?

Troubleshooting

1.

Analysis of differences between the configuration of working Web App resource (from which ARM template was originally exported) and broken Web App resource (created from the exported ARM template) doesn't show much:

https://gist.github.com/archmangler/9975ecdda75e8c14a26dc4f4c5f167d3

  1. Using recommended sample ARM template from the Azure samples does not produce a working bot: The Bot and the App Service are not connected / associated leading to a bot which doesn't response:

Details: https://gist.github.com/archmangler/30a7d7e2260dff4b725625d6802c63f1

2

2 Answers

1
votes

this is expected, export resource to the template doesn't actually give you a 100% reliable working copy. not all of the resources can be exported, not all of the properties get exported for the resources that actually get exported.

Your best bet is just looking at the API response for the GET request for the resource and putting that in the template. Although, it will be complicated for the App Services, because they have tons of settings

1
votes

There are some known limitations on the export template feature. I would recommend you to take templates for desired services from here and then just copy the values and fill extra settings that are not included in the template.