title: Terraform arm template ignore changes
body: <p>For some reason i am having lots of problems with the group template deployment resource. we deploy a logic app during creation, however, in a second run, terraform plan detects changes even after specifying the ignore changes flag to all in the lifecycle bracket.</p>
  <p>Unsure if this is normal behavior, any help would be appreciated</p>
  <pre><code>resource &quot;azurerm_resource_group_template_deployment&quot; &quot;deploylogicapp&quot; {
        name                = &quot;template_deployment&quot;
        resource_group_name = azurerm_resource_group.bt_security.name
        deployment_mode     = &quot;Incremental&quot;
        template_content    = &lt;&lt;TEMPLATE
        {
          &quot;ARM template json body&quot;
        }
  
      TEMPLATE
      
      lifecycle {
       ignore_changes=all
     }
  
  }
  </code></pre>
  <p>EDIT</p>
  <p>Managed to find the issue.</p>
  <p>Added the lifecycle bracket to the app workflow resource</p>
  <pre><code>resource &quot;azurerm_logic_app_workflow&quot; &quot;logicapp&quot; {
    name                = &quot;azdevops-app&quot;
    location            = azurerm_resource_group.bt_security.location
    resource_group_name = azurerm_resource_group.bt_security.name
    lifecycle {
      ignore_changes = all
    }
  }
  </code></pre>
  <p>Then added template_content in the arm group template resource, instead of 'all'</p>
  <p>Ran terraform plan twice, and it did not detect any changes (2nd round), which is what we wanted.</p>