hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.55k stars 4.62k forks source link

Support for application change analysis #11399

Open ricohomewood opened 3 years ago

ricohomewood commented 3 years ago

Community Note

Description

Please can we look to support Application Change Analysis as this enables us to configure file and configuration change tracking. This is available via the Azure SDK for Go here: https://github.com/Azure/azure-sdk-for-go/tree/master/services/changeanalysis/mgmt/2021-04-01/changeanalysis

New or Affected Resource(s)

Potential Terraform Configuration

resource "azurerm_monitor_application_change_analysis" "example" {
  name                        =  appconfig-change
  app_service_plan_id         = azurerm_app_service_plan.example.id
  enabled                     =  true
}

or

resource "azurerm_monitor_application_change_analysis" "example" {
  name                       =  appconfig-change
  app_service_id             = azurerm_app_service.example.id
  enabled                    =  true
}

The file and configuration change tracking can be enabled at the app service level which then enables for all web apps associated with that plan or at the individual app service

References

This is available via the Azure SDK for Go here: https://github.com/Azure/azure-sdk-for-go/tree/master/services/changeanalysis/mgmt/2021-04-01/changeanalysis

MS Doc: https://docs.microsoft.com/en-us/azure/azure-monitor/app/change-analysis

neil-yechenwei commented 1 year ago

Thanks for raising this issue. Seems rest API only supports to set the profile of the change analysis like receiving the change notification and list the change of the resource for now. Once the feature you mentioned is supported, we will take another look. Thanks.