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.53k stars 4.6k forks source link

azurerm_eventgrid_event_subscription not picking up new filters #17705

Open jasric89 opened 2 years ago

jasric89 commented 2 years ago

Is there an existing issue for this?

Community Note

Terraform Version

1.1.7

AzureRM Provider Version

3.14.0

Affected Resource(s)/Data Source(s)

resource "azurerm_eventgrid_event_subscription" "sub_nsclassroom_toTechnicianApi" {

Terraform Configuration Files

resource "azurerm_eventgrid_event_subscription" "sub_nsclassroom_toTechnicianApi" {
  name  = "ClassroomApiToTechnicianApi"
  scope = data.azurerm_eventgrid_topic.read_nsclassroom_topic.id

  webhook_endpoint {
    url = format("https://${data.azurerm_app_service.read_technician_api_app_service.name}.azurewebsites.net/messaging?authcode=${local.resource_group_id}")
  }
  included_event_types = [ "ClassroomApi.DevicesAdded", "ClassroomApi.DeviceChanged", "ClassroomApi.DevicesChanged", "ClassroomApi.DevicesDeleted", "ClassroomApi.SiteAdded", "ClassroomApi.SiteUpdated", "ClassroomApi.SiteDeleted", "ClassroomApi.AccountChanged", "ClassroomApi.UserChanged", "ClassroomApi.UserDeleted"]
  lifecycle {
    ignore_changes = [
      scope, webhook_endpoint, included_event_types
    ]
  }
}

Debug Output/Panic Output

2022-07-19T14:58:07.9358731Z 
2022-07-19T14:58:07.9359878Z Note: Objects have changed outside of Terraform
2022-07-19T14:58:07.9360394Z 
2022-07-19T14:58:07.9361262Z Terraform detected the following changes made outside of Terraform since the
2022-07-19T14:58:07.9362068Z last "terraform apply":
2022-07-19T14:58:07.9362412Z 
2022-07-19T14:58:07.9375291Z   # azurerm_app_service_certificate.cert has changed
2022-07-19T14:58:07.9376339Z   ~ resource "azurerm_app_service_certificate" "cert" {
2022-07-19T14:58:07.9377573Z         id                  = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.Web/certificates/ciccert042022"
2022-07-19T14:58:07.9392403Z         name                = "ciccert042022"
2022-07-19T14:58:07.9393267Z       + tags                = {}
2022-07-19T14:58:07.9393997Z         # (10 unchanged attributes hidden)
2022-07-19T14:58:07.9406164Z     }
2022-07-19T14:58:07.9406607Z 
2022-07-19T14:58:07.9407526Z   # azurerm_eventgrid_event_subscription.sub_AuthenticationServerToClassroomApi has changed
2022-07-19T14:58:07.9408638Z   ~ resource "azurerm_eventgrid_event_subscription" "sub_AuthenticationServerToClassroomApi" {
2022-07-19T14:58:07.9412517Z         id                                   = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nscauthservertopic-vxh3zokbtum5i/providers/Microsoft.EventGrid/eventSubscriptions/AuthenticationServerToClassroomApi"
2022-07-19T14:58:07.9414220Z       + labels                               = []
2022-07-19T14:58:07.9415037Z         name                                 = "AuthenticationServerToClassroomApi"
2022-07-19T14:58:07.9415822Z         # (4 unchanged attributes hidden)
2022-07-19T14:58:07.9416254Z 
2022-07-19T14:58:07.9416533Z 
2022-07-19T14:58:07.9417103Z         # (2 unchanged blocks hidden)
2022-07-19T14:58:07.9417682Z     }
2022-07-19T14:58:07.9419303Z 
2022-07-19T14:58:07.9432669Z   # azurerm_eventgrid_event_subscription.sub_AuthenticationServerToWebsite has changed
2022-07-19T14:58:07.9433839Z   ~ resource "azurerm_eventgrid_event_subscription" "sub_AuthenticationServerToWebsite" {
2022-07-19T14:58:07.9435468Z         id                                   = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nscauthservertopic-vxh3zokbtum5i/providers/Microsoft.EventGrid/eventSubscriptions/AuthenticationServerToWebsite"
2022-07-19T14:58:07.9437219Z       + labels                               = []
2022-07-19T14:58:07.9437976Z         name                                 = "AuthenticationServerToWebsite"
2022-07-19T14:58:07.9438760Z         # (4 unchanged attributes hidden)
2022-07-19T14:58:07.9439165Z 
2022-07-19T14:58:07.9439451Z 
2022-07-19T14:58:07.9440970Z         # (2 unchanged blocks hidden)
2022-07-19T14:58:07.9441553Z     }
2022-07-19T14:58:07.9441817Z 
2022-07-19T14:58:07.9456321Z   # azurerm_eventgrid_event_subscription.sub_TechnicianApiToClassroomApi has changed
2022-07-19T14:58:07.9457514Z   ~ resource "azurerm_eventgrid_event_subscription" "sub_TechnicianApiToClassroomApi" {
2022-07-19T14:58:07.9459102Z         id                                   = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nsctechnicianapitopic-vxh3zokbtum5i/providers/Microsoft.EventGrid/eventSubscriptions/TechnicianApiToClassroomApi"
2022-07-19T14:58:07.9460533Z       + labels                               = []
2022-07-19T14:58:07.9461298Z         name                                 = "TechnicianApiToClassroomApi"
2022-07-19T14:58:07.9464365Z         # (4 unchanged attributes hidden)
2022-07-19T14:58:07.9465373Z 
2022-07-19T14:58:07.9465693Z 
2022-07-19T14:58:07.9466463Z         # (2 unchanged blocks hidden)
2022-07-19T14:58:07.9467112Z     }
2022-07-19T14:58:07.9467414Z 
2022-07-19T14:58:07.9483658Z   # azurerm_eventgrid_event_subscription.sub_TechnicianApiToWebsite has changed
2022-07-19T14:58:07.9484952Z   ~ resource "azurerm_eventgrid_event_subscription" "sub_TechnicianApiToWebsite" {
2022-07-19T14:58:07.9486804Z         id                                   = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nsctechnicianapitopic-vxh3zokbtum5i/providers/Microsoft.EventGrid/eventSubscriptions/TechnicianApiToWebsite"
2022-07-19T14:58:07.9488489Z       + labels                               = []
2022-07-19T14:58:07.9489363Z         name                                 = "TechnicianApiToWebsite"
2022-07-19T14:58:07.9490217Z         # (4 unchanged attributes hidden)
2022-07-19T14:58:07.9490685Z 
2022-07-19T14:58:07.9491008Z 
2022-07-19T14:58:07.9491671Z         # (2 unchanged blocks hidden)
2022-07-19T14:58:07.9492317Z     }
2022-07-19T14:58:07.9492630Z 
2022-07-19T14:58:07.9511605Z   # azurerm_eventgrid_event_subscription.sub_TenantManagmentToAuthenticationServer has changed
2022-07-19T14:58:07.9513083Z   ~ resource "azurerm_eventgrid_event_subscription" "sub_TenantManagmentToAuthenticationServer" {
2022-07-19T14:58:07.9517520Z         id                                   = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nsctenantmanagementtopic-vxh3zokbtum5i/providers/Microsoft.EventGrid/eventSubscriptions/TenantManagmentToAuthenticationServer"
2022-07-19T14:58:07.9519269Z       + labels                               = []
2022-07-19T14:58:07.9520493Z         name                                 = "TenantManagmentToAuthenticationServer"
2022-07-19T14:58:07.9521420Z         # (4 unchanged attributes hidden)
2022-07-19T14:58:07.9521876Z 
2022-07-19T14:58:07.9522180Z 
2022-07-19T14:58:07.9522847Z         # (2 unchanged blocks hidden)
2022-07-19T14:58:07.9523481Z     }
2022-07-19T14:58:07.9523812Z 
2022-07-19T14:58:07.9541483Z   # azurerm_eventgrid_event_subscription.sub_TenantManagmentToSafeguardingApi has changed
2022-07-19T14:58:07.9543783Z   ~ resource "azurerm_eventgrid_event_subscription" "sub_TenantManagmentToSafeguardingApi" {
2022-07-19T14:58:07.9545466Z         id                                   = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nsctenantmanagementtopic-vxh3zokbtum5i/providers/Microsoft.EventGrid/eventSubscriptions/TenantManagmentToSafeguardingApi"
2022-07-19T14:58:07.9546960Z       + labels                               = []
2022-07-19T14:58:07.9547752Z         name                                 = "TenantManagmentToSafeguardingApi"
2022-07-19T14:58:07.9548550Z         # (4 unchanged attributes hidden)
2022-07-19T14:58:07.9548957Z 
2022-07-19T14:58:07.9549222Z 
2022-07-19T14:58:07.9549791Z         # (2 unchanged blocks hidden)
2022-07-19T14:58:07.9550374Z     }
2022-07-19T14:58:07.9550655Z 
2022-07-19T14:58:07.9564210Z   # azurerm_eventgrid_event_subscription.sub_TenantManagmentToSystemAdmin has changed
2022-07-19T14:58:07.9565454Z   ~ resource "azurerm_eventgrid_event_subscription" "sub_TenantManagmentToSystemAdmin" {
2022-07-19T14:58:07.9567077Z         id                                   = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nsctenantmanagementtopic-vxh3zokbtum5i/providers/Microsoft.EventGrid/eventSubscriptions/TenantManagmentToSystemAdmin"
2022-07-19T14:58:07.9568554Z       + labels                               = []
2022-07-19T14:58:07.9569314Z         name                                 = "TenantManagmentToSystemAdmin"
2022-07-19T14:58:07.9570068Z         # (4 unchanged attributes hidden)
2022-07-19T14:58:07.9570473Z 
2022-07-19T14:58:07.9570728Z 
2022-07-19T14:58:07.9571312Z         # (2 unchanged blocks hidden)
2022-07-19T14:58:07.9571876Z     }
2022-07-19T14:58:07.9572143Z 
2022-07-19T14:58:07.9586091Z   # azurerm_eventgrid_event_subscription.sub_TenantManagmentToTeamsApi has changed
2022-07-19T14:58:07.9587152Z   ~ resource "azurerm_eventgrid_event_subscription" "sub_TenantManagmentToTeamsApi" {
2022-07-19T14:58:07.9588779Z         id                                   = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nsctenantmanagementtopic-vxh3zokbtum5i/providers/Microsoft.EventGrid/eventSubscriptions/TenantManagmentToTeamsApi"
2022-07-19T14:58:07.9590228Z       + labels                               = []
2022-07-19T14:58:07.9590976Z         name                                 = "TenantManagmentToTeamsApi"
2022-07-19T14:58:07.9591743Z         # (4 unchanged attributes hidden)
2022-07-19T14:58:07.9592418Z 
2022-07-19T14:58:07.9592685Z 
2022-07-19T14:58:07.9593254Z         # (2 unchanged blocks hidden)
2022-07-19T14:58:07.9593829Z     }
2022-07-19T14:58:07.9594093Z 
2022-07-19T14:58:07.9608177Z   # azurerm_eventgrid_event_subscription.sub_TenantManagmentToTechnicianApi has changed
2022-07-19T14:58:07.9609722Z   ~ resource "azurerm_eventgrid_event_subscription" "sub_TenantManagmentToTechnicianApi" {
2022-07-19T14:58:07.9611575Z         id                                   = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nsctenantmanagementtopic-vxh3zokbtum5i/providers/Microsoft.EventGrid/eventSubscriptions/TenantManagmentToTechnicianApi"
2022-07-19T14:58:07.9764147Z       + labels                               = []
2022-07-19T14:58:07.9764888Z         name                                 = "TenantManagmentToTechnicianApi"
2022-07-19T14:58:07.9765780Z         # (4 unchanged attributes hidden)
2022-07-19T14:58:07.9766046Z 
2022-07-19T14:58:07.9766214Z 
2022-07-19T14:58:07.9766632Z         # (2 unchanged blocks hidden)
2022-07-19T14:58:07.9767074Z     }
2022-07-19T14:58:07.9767224Z 
2022-07-19T14:58:07.9767957Z   # azurerm_eventgrid_event_subscription.sub_TenantManagmentToWebsite has changed
2022-07-19T14:58:07.9769566Z   ~ resource "azurerm_eventgrid_event_subscription" "sub_TenantManagmentToWebsite" {
2022-07-19T14:58:07.9770998Z         id                                   = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nsctenantmanagementtopic-vxh3zokbtum5i/providers/Microsoft.EventGrid/eventSubscriptions/TenantManagmentToWebsite"
2022-07-19T14:58:07.9772314Z       + labels                               = []
2022-07-19T14:58:07.9772965Z         name                                 = "TenantManagmentToWebsite"
2022-07-19T14:58:07.9773566Z         # (4 unchanged attributes hidden)
2022-07-19T14:58:07.9773833Z 
2022-07-19T14:58:07.9774732Z 
2022-07-19T14:58:07.9775191Z         # (2 unchanged blocks hidden)
2022-07-19T14:58:07.9775651Z     }
2022-07-19T14:58:07.9775797Z 
2022-07-19T14:58:07.9776418Z   # azurerm_eventgrid_event_subscription.sub_nsclassroom_toAuthenticationServer has changed
2022-07-19T14:58:07.9777389Z   ~ resource "azurerm_eventgrid_event_subscription" "sub_nsclassroom_toAuthenticationServer" {
2022-07-19T14:58:07.9778911Z         id                                   = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nscclassroomapitopic-vxh3zokbtum5i/providers/Microsoft.EventGrid/eventSubscriptions/ClassroomApiToAuthenticationServer"
2022-07-19T14:58:07.9780245Z       + labels                               = []
2022-07-19T14:58:07.9780836Z         name                                 = "ClassroomApiToAuthenticationServer"
2022-07-19T14:58:07.9781494Z         # (4 unchanged attributes hidden)
2022-07-19T14:58:07.9781772Z 
2022-07-19T14:58:07.9781909Z 
2022-07-19T14:58:07.9782353Z         # (2 unchanged blocks hidden)
2022-07-19T14:58:07.9782794Z     }
2022-07-19T14:58:07.9782942Z 
2022-07-19T14:58:07.9816153Z   # azurerm_eventgrid_event_subscription.sub_nsclassroom_toFunctions has changed
2022-07-19T14:58:07.9817469Z   ~ resource "azurerm_eventgrid_event_subscription" "sub_nsclassroom_toFunctions" {
2022-07-19T14:58:07.9819066Z         id                                   = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nscclassroomapitopic-vxh3zokbtum5i/providers/Microsoft.EventGrid/eventSubscriptions/ClassroomApiToFunctions"
2022-07-19T14:58:07.9821806Z       + labels                               = []
2022-07-19T14:58:07.9822591Z         name                                 = "ClassroomApiToFunctions"
2022-07-19T14:58:07.9823640Z         # (4 unchanged attributes hidden)
2022-07-19T14:58:07.9824045Z 
2022-07-19T14:58:07.9824307Z 
2022-07-19T14:58:07.9824888Z         # (2 unchanged blocks hidden)
2022-07-19T14:58:07.9825438Z     }
2022-07-19T14:58:07.9825725Z 
2022-07-19T14:58:07.9836456Z   # azurerm_eventgrid_event_subscription.sub_nsclassroom_toItself has changed
2022-07-19T14:58:07.9837583Z   ~ resource "azurerm_eventgrid_event_subscription" "sub_nsclassroom_toItself" {
2022-07-19T14:58:07.9839134Z         id                                   = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nscclassroomapitopic-vxh3zokbtum5i/providers/Microsoft.EventGrid/eventSubscriptions/ClassroomApiToItself"
2022-07-19T14:58:07.9843075Z       + labels                               = []
2022-07-19T14:58:07.9844025Z         name                                 = "ClassroomApiToItself"
2022-07-19T14:58:07.9844777Z         # (4 unchanged attributes hidden)
2022-07-19T14:58:07.9845163Z 
2022-07-19T14:58:07.9845427Z 
2022-07-19T14:58:07.9845992Z         # (2 unchanged blocks hidden)
2022-07-19T14:58:07.9846562Z     }
2022-07-19T14:58:07.9846827Z 
2022-07-19T14:58:07.9868101Z   # azurerm_eventgrid_event_subscription.sub_nsclassroom_toSafeguardingAPI has changed
2022-07-19T14:58:07.9871468Z   ~ resource "azurerm_eventgrid_event_subscription" "sub_nsclassroom_toSafeguardingAPI" {
2022-07-19T14:58:07.9873350Z         id                                   = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nscclassroomapitopic-vxh3zokbtum5i/providers/Microsoft.EventGrid/eventSubscriptions/ClassroomApiToSafeguardingApi"
2022-07-19T14:58:07.9874932Z       + labels                               = []
2022-07-19T14:58:07.9875872Z         name                                 = "ClassroomApiToSafeguardingApi"
2022-07-19T14:58:07.9876813Z         # (4 unchanged attributes hidden)
2022-07-19T14:58:07.9877355Z 
2022-07-19T14:58:07.9877768Z 
2022-07-19T14:58:07.9878506Z         # (2 unchanged blocks hidden)
2022-07-19T14:58:07.9879099Z     }
2022-07-19T14:58:07.9879367Z 
2022-07-19T14:58:07.9891516Z   # azurerm_eventgrid_event_subscription.sub_nsclassroom_toSystemAdmin has changed
2022-07-19T14:58:07.9892636Z   ~ resource "azurerm_eventgrid_event_subscription" "sub_nsclassroom_toSystemAdmin" {
2022-07-19T14:58:07.9894266Z         id                                   = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nscclassroomapitopic-vxh3zokbtum5i/providers/Microsoft.EventGrid/eventSubscriptions/ClassroomApiToSystemAdmin"
2022-07-19T14:58:07.9895692Z       + labels                               = []
2022-07-19T14:58:07.9896423Z         name                                 = "ClassroomApiToSystemAdmin"
2022-07-19T14:58:07.9897188Z         # (4 unchanged attributes hidden)
2022-07-19T14:58:07.9897600Z 
2022-07-19T14:58:07.9897914Z 
2022-07-19T14:58:07.9898464Z         # (2 unchanged blocks hidden)
2022-07-19T14:58:07.9899041Z     }
2022-07-19T14:58:07.9899304Z 
2022-07-19T14:58:07.9915438Z   # azurerm_eventgrid_event_subscription.sub_nsclassroom_toTeamsAPI has changed
2022-07-19T14:58:07.9916551Z   ~ resource "azurerm_eventgrid_event_subscription" "sub_nsclassroom_toTeamsAPI" {
2022-07-19T14:58:07.9918128Z         id                                   = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nscclassroomapitopic-vxh3zokbtum5i/providers/Microsoft.EventGrid/eventSubscriptions/ClassroomApiToTeamsApi"
2022-07-19T14:58:07.9922094Z       + labels                               = []
2022-07-19T14:58:07.9923692Z         name                                 = "ClassroomApiToTeamsApi"
2022-07-19T14:58:07.9924544Z         # (4 unchanged attributes hidden)
2022-07-19T14:58:07.9924950Z 
2022-07-19T14:58:07.9925233Z 
2022-07-19T14:58:07.9925790Z         # (2 unchanged blocks hidden)
2022-07-19T14:58:07.9926596Z     }
2022-07-19T14:58:07.9926869Z 
2022-07-19T14:58:07.9943413Z   # azurerm_eventgrid_event_subscription.sub_nsclassroom_toTechnicianApi has changed
2022-07-19T14:58:07.9944523Z   ~ resource "azurerm_eventgrid_event_subscription" "sub_nsclassroom_toTechnicianApi" {
2022-07-19T14:58:07.9946149Z         id                                   = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nscclassroomapitopic-vxh3zokbtum5i/providers/Microsoft.EventGrid/eventSubscriptions/ClassroomApiToTechnicianApi"
2022-07-19T14:58:07.9947546Z       + labels                               = []
2022-07-19T14:58:07.9948304Z         name                                 = "ClassroomApiToTechnicianApi"
2022-07-19T14:58:07.9949053Z         # (4 unchanged attributes hidden)
2022-07-19T14:58:07.9949487Z 
2022-07-19T14:58:07.9949743Z 
2022-07-19T14:58:07.9950327Z         # (2 unchanged blocks hidden)
2022-07-19T14:58:07.9950894Z     }
2022-07-19T14:58:07.9951156Z 
2022-07-19T14:58:07.9968924Z   # azurerm_eventgrid_event_subscription.sub_nsclassroom_toWebsite has changed
2022-07-19T14:58:07.9970488Z   ~ resource "azurerm_eventgrid_event_subscription" "sub_nsclassroom_toWebsite" {
2022-07-19T14:58:07.9972282Z         id                                   = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nscclassroomapitopic-vxh3zokbtum5i/providers/Microsoft.EventGrid/eventSubscriptions/ClassroomApiToWebsite"
2022-07-19T14:58:07.9973560Z       + labels                               = []
2022-07-19T14:58:07.9974145Z         name                                 = "ClassroomApiToWebsite"
2022-07-19T14:58:07.9974768Z         # (4 unchanged attributes hidden)
2022-07-19T14:58:07.9975034Z 
2022-07-19T14:58:07.9975185Z 
2022-07-19T14:58:07.9975609Z         # (2 unchanged blocks hidden)
2022-07-19T14:58:07.9976057Z     }
2022-07-19T14:58:07.9976204Z 
2022-07-19T14:58:07.9991236Z   # azurerm_eventgrid_event_subscription.sub_safeguarding_toclassroomapi has changed
2022-07-19T14:58:07.9992423Z   ~ resource "azurerm_eventgrid_event_subscription" "sub_safeguarding_toclassroomapi" {
2022-07-19T14:58:07.9994010Z         id                                   = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nscsafeguardingapitopic-vxh3zokbtum5i/providers/Microsoft.EventGrid/eventSubscriptions/SafeguardingApiToClassroomApi"
2022-07-19T14:58:07.9995466Z       + labels                               = []
2022-07-19T14:58:07.9996236Z         name                                 = "SafeguardingApiToClassroomApi"
2022-07-19T14:58:07.9997012Z         # (4 unchanged attributes hidden)
2022-07-19T14:58:07.9997426Z 
2022-07-19T14:58:07.9997699Z 
2022-07-19T14:58:07.9998335Z         # (2 unchanged blocks hidden)
2022-07-19T14:58:07.9999208Z     }
2022-07-19T14:58:07.9999476Z 
2022-07-19T14:58:08.0013452Z   # azurerm_eventgrid_event_subscription.sub_safeguarding_toteamsapi has changed
2022-07-19T14:58:08.0014596Z   ~ resource "azurerm_eventgrid_event_subscription" "sub_safeguarding_toteamsapi" {
2022-07-19T14:58:08.0016289Z         id                                   = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nscsafeguardingapitopic-vxh3zokbtum5i/providers/Microsoft.EventGrid/eventSubscriptions/SafeguardingApiToTeamsApi"
2022-07-19T14:58:08.0017954Z       + labels                               = []
2022-07-19T14:58:08.0018733Z         name                                 = "SafeguardingApiToTeamsApi"
2022-07-19T14:58:08.0019528Z         # (4 unchanged attributes hidden)
2022-07-19T14:58:08.0019923Z 
2022-07-19T14:58:08.0020178Z 
2022-07-19T14:58:08.0020781Z         # (2 unchanged blocks hidden)
2022-07-19T14:58:08.0021339Z     }
2022-07-19T14:58:08.0021613Z 
2022-07-19T14:58:08.0038765Z   # azurerm_eventgrid_event_subscription.sub_safeguarding_towebsite has changed
2022-07-19T14:58:08.0039929Z   ~ resource "azurerm_eventgrid_event_subscription" "sub_safeguarding_towebsite" {
2022-07-19T14:58:08.0041557Z         id                                   = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nscsafeguardingapitopic-vxh3zokbtum5i/providers/Microsoft.EventGrid/eventSubscriptions/SafeguardingApiToWebsiteApi"
2022-07-19T14:58:08.0043020Z       + labels                               = []
2022-07-19T14:58:08.0043779Z         name                                 = "SafeguardingApiToWebsiteApi"
2022-07-19T14:58:08.0044559Z         # (4 unchanged attributes hidden)
2022-07-19T14:58:08.0044972Z 
2022-07-19T14:58:08.0045259Z 
2022-07-19T14:58:08.0045818Z         # (2 unchanged blocks hidden)
2022-07-19T14:58:08.0046403Z     }
2022-07-19T14:58:08.0046670Z 
2022-07-19T14:58:08.0061219Z   # azurerm_eventgrid_event_subscription.sub_systemnotification_toapiinternal has changed
2022-07-19T14:58:08.0062406Z   ~ resource "azurerm_eventgrid_event_subscription" "sub_systemnotification_toapiinternal" {
2022-07-19T14:58:08.0064053Z         id                                   = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nscsystemnotificationtopic-vxh3zokbtum5i/providers/Microsoft.EventGrid/eventSubscriptions/SystemNotificationToApiInternal"
2022-07-19T14:58:08.0065531Z       + labels                               = []
2022-07-19T14:58:08.0066279Z         name                                 = "SystemNotificationToApiInternal"
2022-07-19T14:58:08.0067040Z         # (4 unchanged attributes hidden)
2022-07-19T14:58:08.0067447Z 
2022-07-19T14:58:08.0067729Z 
2022-07-19T14:58:08.0068286Z         # (2 unchanged blocks hidden)
2022-07-19T14:58:08.0068838Z     }
2022-07-19T14:58:08.0069107Z 
2022-07-19T14:58:08.0084234Z   # azurerm_eventgrid_event_subscription.sub_systemnotification_totechconsole has changed
2022-07-19T14:58:08.0085407Z   ~ resource "azurerm_eventgrid_event_subscription" "sub_systemnotification_totechconsole" {
2022-07-19T14:58:08.0087135Z         id                                   = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nscsystemnotificationtopic-vxh3zokbtum5i/providers/Microsoft.EventGrid/eventSubscriptions/SystemNotificationToTechConsole"
2022-07-19T14:58:08.0088944Z       + labels                               = []
2022-07-19T14:58:08.0089730Z         name                                 = "SystemNotificationToTechConsole"
2022-07-19T14:58:08.0090499Z         # (4 unchanged attributes hidden)
2022-07-19T14:58:08.0091931Z 
2022-07-19T14:58:08.0092204Z 
2022-07-19T14:58:08.0092787Z         # (2 unchanged blocks hidden)
2022-07-19T14:58:08.0093357Z     }
2022-07-19T14:58:08.0093618Z 
2022-07-19T14:58:08.0107332Z   # azurerm_eventgrid_event_subscription.sub_systemnotification_totenantmanager has changed
2022-07-19T14:58:08.0108792Z   ~ resource "azurerm_eventgrid_event_subscription" "sub_systemnotification_totenantmanager" {
2022-07-19T14:58:08.0110512Z         id                                   = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nscsystemnotificationtopic-vxh3zokbtum5i/providers/Microsoft.EventGrid/eventSubscriptions/SystemNotificationToTenantManager"
2022-07-19T14:58:08.0111992Z       + labels                               = []
2022-07-19T14:58:08.0112820Z         name                                 = "SystemNotificationToTenantManager"
2022-07-19T14:58:08.0113603Z         # (4 unchanged attributes hidden)
2022-07-19T14:58:08.0114016Z 
2022-07-19T14:58:08.0114285Z 
2022-07-19T14:58:08.0114838Z         # (2 unchanged blocks hidden)
2022-07-19T14:58:08.0115432Z     }
2022-07-19T14:58:08.0115702Z 
2022-07-19T14:58:08.0130133Z   # azurerm_eventgrid_event_subscription.sub_systemnotification_totutor has changed
2022-07-19T14:58:08.0131272Z   ~ resource "azurerm_eventgrid_event_subscription" "sub_systemnotification_totutor" {
2022-07-19T14:58:08.0132898Z         id                                   = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nscsystemnotificationtopic-vxh3zokbtum5i/providers/Microsoft.EventGrid/eventSubscriptions/SystemNotificationToTutor"
2022-07-19T14:58:08.0134371Z       + labels                               = []
2022-07-19T14:58:08.0135140Z         name                                 = "SystemNotificationToTutor"
2022-07-19T14:58:08.0135887Z         # (4 unchanged attributes hidden)
2022-07-19T14:58:08.0136295Z 
2022-07-19T14:58:08.0136572Z 
2022-07-19T14:58:08.0137150Z         # (2 unchanged blocks hidden)
2022-07-19T14:58:08.0137699Z     }
2022-07-19T14:58:08.0137989Z 
2022-07-19T14:58:08.0152775Z   # azurerm_eventgrid_event_subscription.sub_systemnotification_towebsite has changed
2022-07-19T14:58:08.0153946Z   ~ resource "azurerm_eventgrid_event_subscription" "sub_systemnotification_towebsite" {
2022-07-19T14:58:08.0155597Z         id                                   = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nscsystemnotificationtopic-vxh3zokbtum5i/providers/Microsoft.EventGrid/eventSubscriptions/SystemNotificationToWebsite"
2022-07-19T14:58:08.0157067Z       + labels                               = []
2022-07-19T14:58:08.0157837Z         name                                 = "SystemNotificationToWebsite"
2022-07-19T14:58:08.0158628Z         # (4 unchanged attributes hidden)
2022-07-19T14:58:08.0159029Z 
2022-07-19T14:58:08.0159304Z 
2022-07-19T14:58:08.0159900Z         # (2 unchanged blocks hidden)
2022-07-19T14:58:08.0160448Z     }
2022-07-19T14:58:08.0160741Z 
2022-07-19T14:58:08.0173584Z   # azurerm_eventgrid_event_subscription.sub_tenantmanager_toFunctions has changed
2022-07-19T14:58:08.0174998Z   ~ resource "azurerm_eventgrid_event_subscription" "sub_tenantmanager_toFunctions" {
2022-07-19T14:58:08.0177196Z         id                                   = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nsctenantmanagementtopic-vxh3zokbtum5i/providers/Microsoft.EventGrid/eventSubscriptions/TenantManagerToFunctions"
2022-07-19T14:58:08.0178681Z       + labels                               = []
2022-07-19T14:58:08.0179820Z         name                                 = "TenantManagerToFunctions"
2022-07-19T14:58:08.0180593Z         # (4 unchanged attributes hidden)
2022-07-19T14:58:08.0181034Z 
2022-07-19T14:58:08.0181314Z 
2022-07-19T14:58:08.0181876Z         # (2 unchanged blocks hidden)
2022-07-19T14:58:08.0182478Z     }
2022-07-19T14:58:08.0182773Z 
2022-07-19T14:58:08.0279708Z   # azurerm_eventgrid_event_subscription.sub_tenantmanager_toclassroomapi has changed
2022-07-19T14:58:08.0281777Z   ~ resource "azurerm_eventgrid_event_subscription" "sub_tenantmanager_toclassroomapi" {
2022-07-19T14:58:08.0285260Z         id                                   = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nsctenantmanagementtopic-vxh3zokbtum5i/providers/Microsoft.EventGrid/eventSubscriptions/TenantManagementToClassroomApi"
2022-07-19T14:58:08.0287123Z       + labels                               = []
2022-07-19T14:58:08.0288011Z         name                                 = "TenantManagementToClassroomApi"
2022-07-19T14:58:08.0288939Z         # (4 unchanged attributes hidden)
2022-07-19T14:58:08.0289408Z 
2022-07-19T14:58:08.0289756Z 
2022-07-19T14:58:08.0290391Z         # (2 unchanged blocks hidden)
2022-07-19T14:58:08.0291046Z     }
2022-07-19T14:58:08.0291365Z 
2022-07-19T14:58:08.0291672Z 
2022-07-19T14:58:08.0292478Z Unless you have made equivalent changes to your configuration, or ignored the
2022-07-19T14:58:08.0293495Z relevant attributes using ignore_changes, the following plan may include
2022-07-19T14:58:08.0294412Z actions to undo or respond to these changes.
2022-07-19T14:58:08.0295275Z 
2022-07-19T14:58:08.0295991Z ─────────────────────────────────────────────────────────────────────────────
2022-07-19T14:58:08.0297267Z 
2022-07-19T14:58:08.0298329Z Terraform used the selected providers to generate the following execution
2022-07-19T14:58:08.0299330Z plan. Resource actions are indicated with the following symbols:
2022-07-19T14:58:08.0300162Z   + create
2022-07-19T14:58:08.0300685Z 
2022-07-19T14:58:08.0301325Z Terraform will perform the following actions:
2022-07-19T14:58:08.0303726Z 
2022-07-19T14:58:08.0304961Z   # azurerm_eventgrid_event_subscription.sub_AuthenticationServerToSafeguardingApi will be created
2022-07-19T14:58:08.0306238Z   + resource "azurerm_eventgrid_event_subscription" "sub_AuthenticationServerToSafeguardingApi" {
2022-07-19T14:58:08.0307403Z       + advanced_filtering_on_arrays_enabled = false
2022-07-19T14:58:08.0308425Z       + event_delivery_schema                = "EventGridSchema"
2022-07-19T14:58:08.0309455Z       + eventhub_endpoint_id                 = (known after apply)
2022-07-19T14:58:08.0310520Z       + hybrid_connection_endpoint_id        = (known after apply)
2022-07-19T14:58:08.0311532Z       + id                                   = (known after apply)
2022-07-19T14:58:08.0312492Z       + included_event_types                 = [
2022-07-19T14:58:08.0313876Z           + "AuthenticationServer.EmailUpdatedBySupport",
2022-07-19T14:58:08.0314607Z         ]
2022-07-19T14:58:08.0315443Z       + name                                 = "AuthenticationServerToSafeguardingApi"
2022-07-19T14:58:08.0318096Z       + scope                                = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nscauthservertopic-vxh3zokbtum5i"
2022-07-19T14:58:08.0319611Z       + topic_name                           = (known after apply)
2022-07-19T14:58:08.0320488Z 
2022-07-19T14:58:08.0321121Z       + eventhub_endpoint {
2022-07-19T14:58:08.0322003Z           + eventhub_id = (known after apply)
2022-07-19T14:58:08.0322736Z         }
2022-07-19T14:58:08.0323078Z 
2022-07-19T14:58:08.0323742Z       + hybrid_connection_endpoint {
2022-07-19T14:58:08.0324672Z           + hybrid_connection_id = (known after apply)
2022-07-19T14:58:08.0329347Z         }
2022-07-19T14:58:08.0329790Z 
2022-07-19T14:58:08.0330328Z       + retry_policy {
2022-07-19T14:58:08.0332084Z           + event_time_to_live    = (known after apply)
2022-07-19T14:58:08.0333193Z           + max_delivery_attempts = (known after apply)
2022-07-19T14:58:08.0333915Z         }
2022-07-19T14:58:08.0334252Z 
2022-07-19T14:58:08.0334879Z       + webhook_endpoint {
2022-07-19T14:58:08.0335733Z           + base_url = (known after apply)
2022-07-19T14:58:08.0336873Z           + url      = "https://nsclassroomsafeguardingapi-vxh3zokbtum5i.azurewebsites.net/messaging?authcode=ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416"
2022-07-19T14:58:08.0344187Z         }
2022-07-19T14:58:08.0345058Z     }
2022-07-19T14:58:08.0345510Z 
2022-07-19T14:58:08.0346744Z   # azurerm_eventgrid_event_subscription.sub_AuthenticationServerToTeamsApi will be created
2022-07-19T14:58:08.0347842Z   + resource "azurerm_eventgrid_event_subscription" "sub_AuthenticationServerToTeamsApi" {
2022-07-19T14:58:08.0349443Z       + advanced_filtering_on_arrays_enabled = false
2022-07-19T14:58:08.0350322Z       + event_delivery_schema                = "EventGridSchema"
2022-07-19T14:58:08.0351043Z       + eventhub_endpoint_id                 = (known after apply)
2022-07-19T14:58:08.0351678Z       + hybrid_connection_endpoint_id        = (known after apply)
2022-07-19T14:58:08.0352315Z       + id                                   = (known after apply)
2022-07-19T14:58:08.0352742Z       + included_event_types                 = [
2022-07-19T14:58:08.0353169Z           + "AuthenticationServer.EmailUpdatedBySupport",
2022-07-19T14:58:08.0353498Z         ]
2022-07-19T14:58:08.0353837Z       + name                                 = "AuthenticationServerToTeamsApi"
2022-07-19T14:58:08.0354620Z       + scope                                = "/subscriptions/ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416/resourceGroups/Classroom-Cloud-Staging-WestEurope/providers/Microsoft.EventGrid/topics/nscauthservertopic-vxh3zokbtum5i"
2022-07-19T14:58:08.0355372Z       + topic_name                           = (known after apply)
2022-07-19T14:58:08.0355585Z 
2022-07-19T14:58:08.0355837Z       + eventhub_endpoint {
2022-07-19T14:58:08.0356223Z           + eventhub_id = (known after apply)
2022-07-19T14:58:08.0356636Z         }
2022-07-19T14:58:08.0356720Z 
2022-07-19T14:58:08.0356957Z       + hybrid_connection_endpoint {
2022-07-19T14:58:08.0357564Z           + hybrid_connection_id = (known after apply)
2022-07-19T14:58:08.0357866Z         }
2022-07-19T14:58:08.0357948Z 
2022-07-19T14:58:08.0358156Z       + retry_policy {
2022-07-19T14:58:08.0358499Z           + event_time_to_live    = (known after apply)
2022-07-19T14:58:08.0358892Z           + max_delivery_attempts = (known after apply)
2022-07-19T14:58:08.0359191Z         }
2022-07-19T14:58:08.0359272Z 
2022-07-19T14:58:08.0359510Z       + webhook_endpoint {
2022-07-19T14:58:08.0361352Z           + base_url = (known after apply)
2022-07-19T14:58:08.0361904Z           + url      = "https://nsclassroomteamsapi-vxh3zokbtum5i.azurewebsites.net/messaging?authcode=ffd7d9a8-4f8e-4c9f-b44e-866ce3ff1416"
2022-07-19T14:58:08.0362344Z         }
2022-07-19T14:58:08.0362518Z     }
2022-07-19T14:58:08.0362605Z 
2022-07-19T14:58:08.0362867Z Plan: 2 to add, 0 to change, 0 to destroy.

Expected Behaviour

For the Provider to write in the new filters. There is no panic output.

Actual Behaviour

It seems that if you have an existing event grid subscription made with Terraform and then decide to add in a new filter. The provider sees there is a change but does not pick up the filter as a change. Therefore when getting to an apply it does not add in the new filter.

If you create the event grid subscription from scratch with all the new filters it creates it fine. It's only when updating the event grid subscription the problem occurs. This first occurred to me on provider 2.95.0 so I upgraded to 3.1.4 and the same thing happens.

Please can this be investigated?

Steps to Reproduce

See note above

Important Factoids

no

References

No response

jasric89 commented 2 years ago

Please can I get an update on this issue? Thank you

xiaxyi commented 2 years ago

@jasric89 Thanks for raising the issue. Are you suggesting the subject_filter property or any other filter such as filters defined in included_event_types was not updated as expected?

jasric89 commented 2 years ago

@xiaxyi yes that is what I am trying to explain. The field: included_event_types = [""] Does not update if you add a new filter to the included event type.

If you make the azurerm_eventgrid_event_subscription from scratch, with the event types in it, terraform will make the resource.

If you want to update one, terraform will not update it.

As a work around for now I have to go into the portal and delete the eventgrid subscription and then run the terraform command, either from a pipeline or teraform apply -auto-approve then terraform will make the whole subscription with the new filters in.

shibin-george commented 2 years ago

We see a similar issue at our end.

Expected: Terraform should detect the removal and delete the filters from the resource. Observed: Terraform does not delete the filter ever.

jasric89 commented 1 year ago

Please can I get an update on when this will be fixed please?