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.6k stars 4.65k forks source link

terraform-provider-azurerm_v3.2.0_x5 plugin crashed. #16494

Closed vkamlesh closed 2 years ago

vkamlesh commented 2 years ago

Is there an existing issue for this?

Community Note

Terraform Version

1.1.8

AzureRM Provider Version

3.2.0

Affected Resource(s)/Data Source(s)

ServiceBusQueueAuthorizationRuleRead

Terraform Configuration Files

data "azurerm_resource_group" "servicebus_rg" {
  name = "platform-${var.alpha_environment}${var.alpha_region}"
}

resource "azurerm_servicebus_namespace" "servicebus_ns" {
  name                = "alpha-platform-servicebus-${var.alpha_environment}${var.alpha_region}${var.service_bus_sku == "Premium" ? "-premium" : ""}"
  location            = data.azurerm_resource_group.servicebus_rg.location
  resource_group_name = data.azurerm_resource_group.servicebus_rg.name
  sku                 = var.service_bus_sku
  capacity            = var.service_bus_capacity
  tags = {
    "alphaEnvironment" = var.alpha_environment
    "alphaService"     = "Mo2C"
    "alphaTeam"        = "platform"
  }
}

#resource "azurerm_servicebus_namespace_network_rule_set" "servicebus_network_rules" {
#     count = var.service_bus_sku == "Premium" ? 1 : 0
#
#     namespace_name = azurerm_servicebus_namespace.servicebus_ns.name
#     resource_group_name = data.azurerm_resource_group.servicebus_rg.name
#
#     default_action                = "Deny"
#     public_network_access_enabled = false
#     trusted_services_allowed      = true
#     ip_rules                      = var.authorized_ips
#     network_rules                 = local.servicebus_ns_network_sets.network_rules
#}

resource "azurerm_servicebus_namespace_authorization_rule" "servicebus_ns_rule" {

  for_each = { for authorization_rule in local.authorization_rules : authorization_rule.name => authorization_rule }

  name         = each.key
  namespace_id = azurerm_servicebus_namespace.servicebus_ns.id
  #resource_group_name = data.azurerm_resource_group.servicebus_rg.name

  listen = contains(each.value.rights, "listen") ? true : false
  send   = contains(each.value.rights, "send") ? true : false
  manage = contains(each.value.rights, "manage") ? true : false
}

resource "azurerm_servicebus_topic" "servicebus_topic" {

  for_each = { for topic in local.topics : topic.name => topic }

  name = each.key
  #resource_group_name = data.azurerm_resource_group.servicebus_rg.name
  namespace_id = azurerm_servicebus_namespace.servicebus_ns.id

  status                       = each.value.status
  auto_delete_on_idle          = each.value.auto_delete_on_idle
  default_message_ttl          = each.value.default_message_ttl
  enable_batched_operations    = each.value.enable_batched_operations
  enable_express               = each.value.enable_express
  enable_partitioning          = each.value.enable_partitioning
  max_size_in_megabytes        = each.value.max_size
  requires_duplicate_detection = each.value.enable_duplicate_detection
  support_ordering             = each.value.enable_ordering

  duplicate_detection_history_time_window = each.value.duplicate_detection_history_time_window
}

resource "azurerm_servicebus_topic_authorization_rule" "servicebus_topic_rule" {
  #count = length(local.topic_authorization_rules)

  for_each = { for topic_authorization_rules in local.topic_authorization_rules : topic_authorization_rules.name => topic_authorization_rules }

  name                = each.key
  #resource_group_name = data.azurerm_resource_group.servicebus_rg.name
  #namespace_id     = azurerm_servicebus_namespace.servicebus_ns.id
  topic_id            = each.value.id

  listen = contains(each.value.rights, "listen") ? true : false
  send   = contains(each.value.rights, "send") ? true : false
  manage = contains(each.value.rights, "manage") ? true : false

  depends_on = [azurerm_servicebus_topic.servicebus_topic]
}

resource "azurerm_servicebus_subscription" "servicebus_sub" {
  #count = length(local.topic_subscriptions)

  for_each = { for subscriptions in local.topic_subscriptions : subscriptions.name => subscriptions }

  name                      = each.key
  #resource_group_name       = data.azurerm_resource_group.servicebus_rg.name
  #namespace_id          = azurerm_servicebus_namespace.servicebus_ns.id
  topic_id                = each.value.id
  max_delivery_count        = each.value.max_delivery_count
  auto_delete_on_idle       = each.value.auto_delete_on_idle
  default_message_ttl       = each.value.default_message_ttl
  lock_duration             = each.value.lock_duration
  enable_batched_operations = each.value.enable_batched_operations
  requires_session          = each.value.enable_session
  forward_to                = each.value.forward_to

  dead_lettering_on_message_expiration      = each.value.enable_dead_lettering_on_message_expiration
  dead_lettering_on_filter_evaluation_error = each.value.dead_lettering_on_filter_evaluation_error

  depends_on = [azurerm_servicebus_topic.servicebus_topic]
}

resource "azurerm_servicebus_subscription_rule" "servicebus_sub_rule" {
  #count = length(local.topic_subscription_rules)

  for_each = { for subscription_rules in local.topic_subscription_rules : subscription_rules.name => subscription_rules }

  name                = each.key
  #resource_group_name = data.azurerm_resource_group.servicebus_rg.name
  #namespace_id      = azurerm_servicebus_namespace.servicebus_ns.id
  #topic_id          = each.value.id
  subscription_id   = each.value.id
  filter_type         = each.value.filter_type
  sql_filter          = each.value.sql_filter
  action              = each.value.action

  depends_on = [azurerm_servicebus_subscription.servicebus_sub]
}

resource "azurerm_servicebus_queue" "servicebus_queue" {
  for_each = { for queue in local.queues : queue.name => queue }

  name                = each.key
  #resource_group_name = data.azurerm_resource_group.servicebus_rg.name
  namespace_id    = azurerm_servicebus_namespace.servicebus_ns.id

  auto_delete_on_idle                  = each.value.auto_delete_on_idle
  default_message_ttl                  = each.value.default_message_ttl
  enable_express                       = each.value.enable_express
  enable_partitioning                  = each.value.enable_partitioning
  lock_duration                        = each.value.lock_duration
  max_size_in_megabytes                = each.value.max_size
  requires_duplicate_detection         = each.value.enable_duplicate_detection
  requires_session                     = each.value.enable_session
  dead_lettering_on_message_expiration = each.value.enable_dead_lettering_on_message_expiration
  max_delivery_count                   = each.value.max_delivery_count

  duplicate_detection_history_time_window = each.value.duplicate_detection_history_time_window
}

resource "azurerm_servicebus_queue_authorization_rule" "servicebus_queue_rule" {
  #count = length(local.queue_authorization_rules)

  for_each = { for queue_authorization_rule in local.queue_authorization_rules : queue_authorization_rule.name => queue_authorization_rule }

  name                = each.key
  #resource_group_name = data.azurerm_resource_group.servicebus_rg.id
  #namespace_id      = azurerm_servicebus_namespace.servicebus_ns.id
  queue_id        = each.value.id

  listen = contains(each.value.rights, "listen") ? true : false
  send   = contains(each.value.rights, "send") ? true : false
  manage = contains(each.value.rights, "manage") ? true : false

  depends_on = [azurerm_servicebus_queue.servicebus_queue]
}

output "name" {
  value       = azurerm_servicebus_namespace.servicebus_ns.name
  description = "The namespace name."
}

output "id" {
  value       = azurerm_servicebus_namespace.servicebus_ns.id
  description = "The namespace ID."
}

output "authorization_rules" {
  value = merge({
    for rule in azurerm_servicebus_namespace_authorization_rule.servicebus_ns_rule :
    rule.name => {
      name                        = rule.name
      primary_key                 = rule.primary_key
      primary_connection_string   = rule.primary_connection_string
      secondary_key               = rule.secondary_key
      secondary_connection_string = rule.secondary_connection_string
    }
    }, {
    default = local.default_authorization_rule
  })
  description = "Map of authorization rules."
  sensitive   = true
}

output "topics" {
  value = {
    for topic in azurerm_servicebus_topic.servicebus_topic :
    topic.name => {
      id   = topic.id
      name = topic.name
      authorization_rules = {
        for rule in azurerm_servicebus_topic_authorization_rule.servicebus_topic_rule :
        rule.name => {
          name                        = rule.name
          primary_key                 = rule.primary_key
          primary_connection_string   = rule.primary_connection_string
          secondary_key               = rule.secondary_key
          secondary_connection_string = rule.secondary_connection_string
        } if topic.name == rule.topic_name
      }
    }
  }
  description = "Map of topics."
}

output "queues" {
  value = {
    for queue in azurerm_servicebus_queue.servicebus_queue :
    queue.name => {
      id   = queue.id
      name = queue.name
      authorization_rules = {
        for rule in azurerm_servicebus_queue_authorization_rule.servicebus_queue_rule :
        rule.name => {
          name                        = rule.name
          primary_key                 = rule.primary_key
          primary_connection_string   = rule.primary_connection_string
          secondary_key               = rule.secondary_key
          secondary_connection_string = rule.secondary_connection_string
        } if queue.name == rule.queue_name
      }
    }
  }
  description = "Map of queues."
}

Debug Output/Panic Output

│ Error: Failed to decode resource from state
│ 
│ Error decoding "module.middleware-environment.azurerm_public_ip.api-public-ip-standard" from previous state: unsupported attribute "availability_zone"
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment-global.azurerm_cosmosdb_account.global-cosmos-mongo-db,
│   on ../local-modules/middleware-environment-global/global-cosmos-mongo-db.tf line 2, in resource "azurerm_cosmosdb_account" "global-cosmos-mongo-db":
│    2: resource "azurerm_cosmosdb_account" "global-cosmos-mongo-db" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment-global.azurerm_cosmosdb_sql_container.devreg,
│   on ../local-modules/middleware-environment-global/global-cosmos-sql-db.tf line 165, in resource "azurerm_cosmosdb_sql_container" "devreg":
│  165: resource "azurerm_cosmosdb_sql_container" "devreg" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment-global.azurerm_cosmosdb_sql_container.platform-api,
│   on ../local-modules/middleware-environment-global/global-cosmos-sql-db.tf line 201, in resource "azurerm_cosmosdb_sql_container" "platform-api":
│  201: resource "azurerm_cosmosdb_sql_container" "platform-api" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment-global.azurerm_cosmosdb_sql_container.channel-management-api,
│   on ../local-modules/middleware-environment-global/global-cosmos-sql-db.tf line 214, in resource "azurerm_cosmosdb_sql_container" "channel-management-api":
│  214: resource "azurerm_cosmosdb_sql_container" "channel-management-api" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment-global.azurerm_storage_queue.notification-queue-email,
│   on ../local-modules/middleware-environment-global/global-storage-account.tf line 23, in resource "azurerm_storage_queue" "notification-queue-email":
│   23: resource "azurerm_storage_queue" "notification-queue-email" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment-global.azurerm_storage_queue.notification-queue-sms,
│   on ../local-modules/middleware-environment-global/global-storage-account.tf line 28, in resource "azurerm_storage_queue" "notification-queue-sms":
│   28: resource "azurerm_storage_queue" "notification-queue-sms" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment-global.azurerm_storage_queue.notification-queue-push,
│   on ../local-modules/middleware-environment-global/global-storage-account.tf line 33, in resource "azurerm_storage_queue" "notification-queue-push":
│   33: resource "azurerm_storage_queue" "notification-queue-push" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment-global.azurerm_storage_table.user-state,
│   on ../local-modules/middleware-environment-global/global-storage-account.tf line 38, in resource "azurerm_storage_table" "user-state":
│   38: resource "azurerm_storage_table" "user-state" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment-global.azurerm_storage_table.notification,
│   on ../local-modules/middleware-environment-global/global-storage-account.tf line 43, in resource "azurerm_storage_table" "notification":
│   43: resource "azurerm_storage_table" "notification" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment.azurerm_monitor_metric_alert.group-zone-policy-dlq-alert,
│   on ../local-modules/middleware-environment/alerts-middleware.tf line 128, in resource "azurerm_monitor_metric_alert" "group-zone-policy-dlq-alert":
│  128: resource "azurerm_monitor_metric_alert" "group-zone-policy-dlq-alert" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment.azurerm_monitor_metric_alert.device-mobile-dlq-alert,
│   on ../local-modules/middleware-environment/alerts-middleware.tf line 191, in resource "azurerm_monitor_metric_alert" "device-mobile-dlq-alert":
│  191: resource "azurerm_monitor_metric_alert" "device-mobile-dlq-alert" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment.azurerm_monitor_metric_alert.event-storage-dlq-alert,
│   on ../local-modules/middleware-environment/alerts-middleware.tf line 254, in resource "azurerm_monitor_metric_alert" "event-storage-dlq-alert":
│  254: resource "azurerm_monitor_metric_alert" "event-storage-dlq-alert" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment.azurerm_cosmosdb_sql_container.access-policy,
│   on ../local-modules/middleware-environment/cosmos-sql-db.tf line 143, in resource "azurerm_cosmosdb_sql_container" "access-policy":
│  143: resource "azurerm_cosmosdb_sql_container" "access-policy" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment.azurerm_cosmosdb_sql_container.policy-group,
│   on ../local-modules/middleware-environment/cosmos-sql-db.tf line 154, in resource "azurerm_cosmosdb_sql_container" "policy-group":
│  154: resource "azurerm_cosmosdb_sql_container" "policy-group" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment.azurerm_cosmosdb_sql_container.data-plan,
│   on ../local-modules/middleware-environment/cosmos-sql-db.tf line 165, in resource "azurerm_cosmosdb_sql_container" "data-plan":
│  165: resource "azurerm_cosmosdb_sql_container" "data-plan" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment.azurerm_cosmosdb_sql_container.zone,
│   on ../local-modules/middleware-environment/cosmos-sql-db.tf line 176, in resource "azurerm_cosmosdb_sql_container" "zone":
│  176: resource "azurerm_cosmosdb_sql_container" "zone" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment.azurerm_cosmosdb_sql_container.device-invite,
│   on ../local-modules/middleware-environment/cosmos-sql-db.tf line 208, in resource "azurerm_cosmosdb_sql_container" "device-invite":
│  208: resource "azurerm_cosmosdb_sql_container" "device-invite" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment.azurerm_cosmosdb_sql_container.account-state,
│   on ../local-modules/middleware-environment/cosmos-sql-db.tf line 219, in resource "azurerm_cosmosdb_sql_container" "account-state":
│  219: resource "azurerm_cosmosdb_sql_container" "account-state" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment.azurerm_cosmosdb_sql_container.job,
│   on ../local-modules/middleware-environment/cosmos-sql-db.tf line 230, in resource "azurerm_cosmosdb_sql_container" "job":
│  230: resource "azurerm_cosmosdb_sql_container" "job" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment.azurerm_cosmosdb_sql_container.job-tenant,
│   on ../local-modules/middleware-environment/cosmos-sql-db.tf line 261, in resource "azurerm_cosmosdb_sql_container" "job-tenant":
│  261: resource "azurerm_cosmosdb_sql_container" "job-tenant" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment.azurerm_cosmosdb_sql_container.event,
│   on ../local-modules/middleware-environment/cosmos-sql-db.tf line 292, in resource "azurerm_cosmosdb_sql_container" "event":
│  292: resource "azurerm_cosmosdb_sql_container" "event" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment.azurerm_cosmosdb_sql_container.wifi-protect-account-settings,
│   on ../local-modules/middleware-environment/cosmos-sql-db.tf line 302, in resource "azurerm_cosmosdb_sql_container" "wifi-protect-account-settings":
│  302: resource "azurerm_cosmosdb_sql_container" "wifi-protect-account-settings" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment.azurerm_cosmosdb_sql_container.platform-api,
│   on ../local-modules/middleware-environment/cosmos-sql-db.tf line 312, in resource "azurerm_cosmosdb_sql_container" "platform-api":
│  312: resource "azurerm_cosmosdb_sql_container" "platform-api" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment.data.azurerm_servicebus_topic_authorization_rule.alpha-events-topic-auth-rule,
│   on ../local-modules/middleware-environment/external-dependencies.tf line 14, in data "azurerm_servicebus_topic_authorization_rule" "alpha-events-topic-auth-rule":
│   14: data "azurerm_servicebus_topic_authorization_rule" "alpha-events-topic-auth-rule" {
│ 
│ The plugin.(*GRPCProvider).ValidateDataResourceConfig request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment.azurerm_servicebus_queue.middleware-jak-job-service-queue,
│   on ../local-modules/middleware-environment/external-dependencies.tf line 21, in resource "azurerm_servicebus_queue" "middleware-jak-job-service-queue":
│   21: resource "azurerm_servicebus_queue" "middleware-jak-job-service-queue" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment.azurerm_servicebus_queue.auditor-http-processor-queue,
│   on ../local-modules/middleware-environment/external-dependencies.tf line 37, in resource "azurerm_servicebus_queue" "auditor-http-processor-queue":
│   37: resource "azurerm_servicebus_queue" "auditor-http-processor-queue" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment.data.azurerm_servicebus_topic_authorization_rule.platform-servicebus-topic-auth-rule-alpha-events,
│   on ../local-modules/middleware-environment/external-dependencies.tf line 99, in data "azurerm_servicebus_topic_authorization_rule" "platform-servicebus-topic-auth-rule-alpha-events":
│   99: data "azurerm_servicebus_topic_authorization_rule" "platform-servicebus-topic-auth-rule-alpha-events" {
│ 
│ The plugin.(*GRPCProvider).ValidateDataResourceConfig request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment.data.azurerm_servicebus_queue_authorization_rule.platform-servicebus-queue-auth-rule-quota-alerts-notification,
│   on ../local-modules/middleware-environment/external-dependencies.tf line 106, in data "azurerm_servicebus_queue_authorization_rule" "platform-servicebus-queue-auth-rule-quota-alerts-notification":
│  106: data "azurerm_servicebus_queue_authorization_rule" "platform-servicebus-queue-auth-rule-quota-alerts-notification" {
│ 
│ The plugin.(*GRPCProvider).ValidateDataResourceConfig request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment.data.azurerm_servicebus_queue_authorization_rule.platform-servicebus-queue-auth-rule-group-zone-policy,
│   on ../local-modules/middleware-environment/external-dependencies.tf line 113, in data "azurerm_servicebus_queue_authorization_rule" "platform-servicebus-queue-auth-rule-group-zone-policy":
│  113: data "azurerm_servicebus_queue_authorization_rule" "platform-servicebus-queue-auth-rule-group-zone-policy" {
│ 
│ The plugin.(*GRPCProvider).ValidateDataResourceConfig request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment.data.azurerm_servicebus_queue_authorization_rule.platform-servicebus-queue-auth-rule-device-mobile,
│   on ../local-modules/middleware-environment/external-dependencies.tf line 120, in data "azurerm_servicebus_queue_authorization_rule" "platform-servicebus-queue-auth-rule-device-mobile":
│  120: data "azurerm_servicebus_queue_authorization_rule" "platform-servicebus-queue-auth-rule-device-mobile" {
│ 
│ The plugin.(*GRPCProvider).ValidateDataResourceConfig request was cancelled.
╵
╷
│ Error: Plugin did not respond
│ 
│   with module.middleware-environment.data.azurerm_servicebus_queue_authorization_rule.platform-servicebus-queue-auth-rule-event-storage,
│   on ../local-modules/middleware-environment/external-dependencies.tf line 127, in data "azurerm_servicebus_queue_authorization_rule" "platform-servicebus-queue-auth-rule-event-storage":
│  127: data "azurerm_servicebus_queue_authorization_rule" "platform-servicebus-queue-auth-rule-event-storage" {
│ 
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ReadDataSource call. The plugin logs may contain more details.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment.azurerm_role_assignment.ra1,
│   on ../local-modules/middleware-environment/kube-cluster-standard.tf line 41, in resource "azurerm_role_assignment" "ra1":
│   41: resource "azurerm_role_assignment" "ra1" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment.azurerm_kubernetes_cluster.kube-cluster-standard,
│   on ../local-modules/middleware-environment/kube-cluster-standard.tf line 62, in resource "azurerm_kubernetes_cluster" "kube-cluster-standard":
│   62: resource "azurerm_kubernetes_cluster" "kube-cluster-standard" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment.azurerm_private_endpoint.global-cosmos-sql-private-link,
│   on ../local-modules/middleware-environment/private-links.tf line 128, in resource "azurerm_private_endpoint" "global-cosmos-sql-private-link":
│  128: resource "azurerm_private_endpoint" "global-cosmos-sql-private-link" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment.azurerm_private_endpoint.regional-cosmos-sql-private-link,
│   on ../local-modules/middleware-environment/private-links.tf line 156, in resource "azurerm_private_endpoint" "regional-cosmos-sql-private-link":
│  156: resource "azurerm_private_endpoint" "regional-cosmos-sql-private-link" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment.azurerm_private_endpoint.redis-private-link,
│   on ../local-modules/middleware-environment/private-links.tf line 184, in resource "azurerm_private_endpoint" "redis-private-link":
│  184: resource "azurerm_private_endpoint" "redis-private-link" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Plugin did not respond
│ 
│   with module.middleware-environment.azurerm_servicebus_topic.servicebus_topic["alpha-events"],
│   on ../local-modules/middleware-environment/servicebus.tf line 44, in resource "azurerm_servicebus_topic" "servicebus_topic":
│   44: resource "azurerm_servicebus_topic" "servicebus_topic" {
│ 
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.
╵
╷
│ Error: Plugin did not respond
│ 
│   with module.middleware-environment.azurerm_servicebus_topic.servicebus_topic["alpha-qa-events"],
│   on ../local-modules/middleware-environment/servicebus.tf line 44, in resource "azurerm_servicebus_topic" "servicebus_topic":
│   44: resource "azurerm_servicebus_topic" "servicebus_topic" {
│ 
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.
╵
╷
│ Error: Plugin did not respond
│ 
│   with module.middleware-environment.azurerm_servicebus_queue.servicebus_queue["iam-queue"],
│   on ../local-modules/middleware-environment/servicebus.tf line 122, in resource "azurerm_servicebus_queue" "servicebus_queue":
│  122: resource "azurerm_servicebus_queue" "servicebus_queue" {
│ 
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.
╵
╷
│ Error: Plugin did not respond
│ 
│   with module.middleware-environment.azurerm_servicebus_queue.servicebus_queue["integrator-queue"],
│   on ../local-modules/middleware-environment/servicebus.tf line 122, in resource "azurerm_servicebus_queue" "servicebus_queue":
│  122: resource "azurerm_servicebus_queue" "servicebus_queue" {
│ 
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.
╵
╷
│ Error: Plugin did not respond
│ 
│   with module.middleware-environment.azurerm_servicebus_queue.servicebus_queue["analytics-queue"],
│   on ../local-modules/middleware-environment/servicebus.tf line 122, in resource "azurerm_servicebus_queue" "servicebus_queue":
│  122: resource "azurerm_servicebus_queue" "servicebus_queue" {
│ 
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.
╵
╷
│ Error: Plugin did not respond
│ 
│   with module.middleware-environment.azurerm_servicebus_queue.servicebus_queue["service-limits-queue"],
│   on ../local-modules/middleware-environment/servicebus.tf line 122, in resource "azurerm_servicebus_queue" "servicebus_queue":
│  122: resource "azurerm_servicebus_queue" "servicebus_queue" {
│ 
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.
╵
╷
│ Error: Plugin did not respond
│ 
│   with module.middleware-environment.azurerm_servicebus_queue.servicebus_queue["authorizer-queue"],
│   on ../local-modules/middleware-environment/servicebus.tf line 122, in resource "azurerm_servicebus_queue" "servicebus_queue":
│  122: resource "azurerm_servicebus_queue" "servicebus_queue" {
│ 
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.
╵
╷
│ Error: Plugin did not respond
│ 
│   with module.middleware-environment.azurerm_servicebus_queue.servicebus_queue["event-storage-queue"],
│   on ../local-modules/middleware-environment/servicebus.tf line 122, in resource "azurerm_servicebus_queue" "servicebus_queue":
│  122: resource "azurerm_servicebus_queue" "servicebus_queue" {
│ 
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.
╵
╷
│ Error: Plugin did not respond
│ 
│   with module.middleware-environment.azurerm_servicebus_queue.servicebus_queue["device-mobile-queue"],
│   on ../local-modules/middleware-environment/servicebus.tf line 122, in resource "azurerm_servicebus_queue" "servicebus_queue":
│  122: resource "azurerm_servicebus_queue" "servicebus_queue" {
│ 
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.
╵
╷
│ Error: Request cancelled
│ 
│   with module.middleware-environment.azurerm_storage_account.storage-account,
│   on ../local-modules/middleware-environment/storage-account.tf line 2, in resource "azurerm_storage_account" "storage-account":
│    2: resource "azurerm_storage_account" "storage-account" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.wbr-mock-environment.data.azurerm_virtual_network.middleware-virtual-network,
│   on ../local-modules/wbr-mock-environment/main.tf line 3, in data "azurerm_virtual_network" "middleware-virtual-network":
│    3: data "azurerm_virtual_network" "middleware-virtual-network" {
│ 
│ The plugin.(*GRPCProvider).ValidateDataResourceConfig request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.wbr-mock-environment.azurerm_subnet_network_security_group_association.wbr-vnet-a-sg-association,
│   on ../local-modules/wbr-mock-environment/main.tf line 163, in resource "azurerm_subnet_network_security_group_association" "wbr-vnet-a-sg-association":
│  163: resource "azurerm_subnet_network_security_group_association" "wbr-vnet-a-sg-association" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.wbr-mock-environment.azurerm_subnet_network_security_group_association.wbr-vnet-b-sg-association,
│   on ../local-modules/wbr-mock-environment/main.tf line 209, in resource "azurerm_subnet_network_security_group_association" "wbr-vnet-b-sg-association":
│  209: resource "azurerm_subnet_network_security_group_association" "wbr-vnet-b-sg-association" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.wbr-mock-environment.azurerm_subnet_network_security_group_association.vm-image-building-vnet-sg-association,
│   on ../local-modules/wbr-mock-environment/main.tf line 242, in resource "azurerm_subnet_network_security_group_association" "vm-image-building-vnet-sg-association":
│  242: resource "azurerm_subnet_network_security_group_association" "vm-image-building-vnet-sg-association" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.wbr-mock-environment.azurerm_network_interface.strongswan-vm-a-network-interface,
│   on ../local-modules/wbr-mock-environment/main.tf line 249, in resource "azurerm_network_interface" "strongswan-vm-a-network-interface":
│  249: resource "azurerm_network_interface" "strongswan-vm-a-network-interface" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.wbr-mock-environment.azurerm_network_interface.strongswan-vm-b-network-interface,
│   on ../local-modules/wbr-mock-environment/main.tf line 306, in resource "azurerm_network_interface" "strongswan-vm-b-network-interface":
│  306: resource "azurerm_network_interface" "strongswan-vm-b-network-interface" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.wbr-mock-environment.azurerm_subnet_route_table_association.wbr-vnet-a-ipsec-route-table-association,
│   on ../local-modules/wbr-mock-environment/main.tf line 385, in resource "azurerm_subnet_route_table_association" "wbr-vnet-a-ipsec-route-table-association":
│  385: resource "azurerm_subnet_route_table_association" "wbr-vnet-a-ipsec-route-table-association" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.wbr-mock-environment.azurerm_subnet_route_table_association.wbr-vnet-b-ipsec-route-table-association,
│   on ../local-modules/wbr-mock-environment/main.tf line 412, in resource "azurerm_subnet_route_table_association" "wbr-vnet-b-ipsec-route-table-association":
│  412: resource "azurerm_subnet_route_table_association" "wbr-vnet-b-ipsec-route-table-association" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.wbr-mock-environment.azurerm_virtual_network_peering.middleware-network-to-wbr-vnet-a,
│   on ../local-modules/wbr-mock-environment/main.tf line 431, in resource "azurerm_virtual_network_peering" "middleware-network-to-wbr-vnet-a":
│  431: resource "azurerm_virtual_network_peering" "middleware-network-to-wbr-vnet-a" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│ 
│   with module.wbr-mock-environment.azurerm_virtual_network_peering.middleware-network-to-wbr-vnet-b,
│   on ../local-modules/wbr-mock-environment/main.tf line 452, in resource "azurerm_virtual_network_peering" "middleware-network-to-wbr-vnet-b":
│  452: resource "azurerm_virtual_network_peering" "middleware-network-to-wbr-vnet-b" {
│ 
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
Releasing state lock. This may take a few moments...

Stack trace from the terraform-provider-azurerm_v3.2.0_x5 plugin:

panic: interface conversion: interface {} is nil, not string

goroutine 2304 [running]:
github.com/hashicorp/terraform-provider-azurerm/internal/services/servicebus.dataSourceServiceBusQueueAuthorizationRuleRead(0xf2cdfd0?, {0x5fbf940?, 0xc0012c0a80?})
    github.com/hashicorp/terraform-provider-azurerm/internal/services/servicebus/servicebus_queue_authorization_rule_data_source.go:134 +0xd0a
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0x68be546?, {0x6fee200?, 0xc0023f6780?}, 0xc00254e2a0?, {0x5fbf940?, 0xc0012c0a80?})
    github.com/hashicorp/terraform-plugin-sdk/v2@v2.10.1/helper/schema/resource.go:346 +0x178
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).ReadDataApply(0xc000efa1c0, {0x6fee200, 0xc0023f6780}, 0xc0025c0980, {0x5fbf940, 0xc0012c0a80})
    github.com/hashicorp/terraform-plugin-sdk/v2@v2.10.1/helper/schema/resource.go:569 +0xf7
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadDataSource(0xc000610720, {0x6fee200, 0xc0023f6780}, 0xc0023c4d60)
    github.com/hashicorp/terraform-plugin-sdk/v2@v2.10.1/helper/schema/grpc_provider.go:1133 +0x339
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ReadDataSource(0xc000291b00, {0x6fee2a8?, 0xc0023d98f0?}, 0xc0023aa910)
    github.com/hashicorp/terraform-plugin-go@v0.5.0/tfprotov5/tf5server/server.go:478 +0x31b
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ReadDataSource_Handler({0x650ff20?, 0xc000291b00}, {0x6fee2a8, 0xc0023d98f0}, 0xc001911620, 0x0)
    github.com/hashicorp/terraform-plugin-go@v0.5.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:416 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0002ace00, {0x6fff340, 0xc0003b4d80}, 0xc0025b8a20, 0xc001559ad0, 0xae217d0, 0x0)
    google.golang.org/grpc@v1.39.0/server.go:1292 +0xc6f
google.golang.org/grpc.(*Server).handleStream(0xc0002ace00, {0x6fff340, 0xc0003b4d80}, 0xc0025b8a20, 0x0)
    google.golang.org/grpc@v1.39.0/server.go:1617 +0xa1b
google.golang.org/grpc.(*Server).serveStreams.func1.2()
    google.golang.org/grpc@v1.39.0/server.go:940 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
    google.golang.org/grpc@v1.39.0/server.go:938 +0x28a

Error: The terraform-provider-azurerm_v3.2.0_x5 plugin crashed!

This is always indicative of a bug within the plugin. It would be immensely
helpful if you could report the crash with the plugin's maintainers so that it
can be fixed. The output above should help diagnose the issue.

Expected Behaviour

terraform plan command should run successfully.

Actual Behaviour

terraform-provider-azurerm_v3.2.0_x5 plugin crashed.

Steps to Reproduce

Update the following block in provider.tf.

terraform { required_version = "= 1.1.8" required_providers { azuread = { source = "hashicorp/azuread" version = "~>2.20.0" } azurerm = { source = "hashicorp/azurerm" version = "~>3.2.0" } } }

Important Factoids

Running AKS in AP and EU region.

References

I didn't find any related open issues.

m7medcs commented 2 years ago

I am facing the same issue!

mbfrahry commented 2 years ago

Hey all. This issue is a duplicate of #16561 and has been fixed with #16597. That fix should go out with 3.5.0 of the provider later this week

github-actions[bot] commented 2 years ago

This functionality has been released in v3.5.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

github-actions[bot] commented 2 years ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.