Search code examples
azureazure-web-app-serviceazure-rm-templateazure-webapps

Extra hidden resources created in arm template when creating web app resource in azure


I'm currently working to setup an ARM-template for a resource group containing a web app for an API the I've been working on, i though it would be easier to first create the resource for the web app in the resource group an then export the template just to make sure i don't miss anything.

When exporting the template containing a test for the web app and the app service plan i noticed a bunch of extra resources that seem to be hidden in the background:

(Red overlines are deleted, related to application insights, yellow highlighter are the ones I'm asking about)

enter image description here

Are these needed for initial deployment of the web app and ASP, or can these be removed? I'm trying to keep the template as "clean" as possible, if one can say that. :)

Thanks in advance.


Solution

  • To test this in our local environment, we have deployed an webapp from portal & enabled application insights to it .

    While exporting the template of the webapp & associated application insights we can also see additional resources like (Host name Bindings, Basic publishing credentials policies (ftp,scm),smart alerts etc.,) are in the template.

    We have removed all those HostNameBindings,BasicPublishingCredentialPolicies (ftp,scm) properties from the exported template & tried deploying a new web app it got successfully deployed without any issues.

    Here is the sample output for reference:

    enter image description here

    enter image description here