Open yueshao37 opened 1 month ago
Hi @yueshao37 thanks for opening this issue. I would like to explain that Terraform performs CRUD management on Azure resources based on Azure Rest API. According to the API definition, the type of messageRetentionInDays is int64, and the maximum value of int64 should usually be 9223372036854775807. However, the 9223372036854776000 returned by the API is greater than 9223372036854775807. This is the root cause of the crash. Therefore, it is recommended to contact Microsoft Support to solve the problem of inconsistency between the API definition and the actual situation.
In addition, the crash occurred in terraform-plugin-sdk instead of terraform-provider-azurerm.
Is there an existing issue for this?
Community Note
Terraform Version
1.7.5
AzureRM Provider Version
3.91.0
Affected Resource(s)/Data Source(s)
terraform-provider-azurerm_v3.91.0_x5, azurerm_eventhub
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
After imported the infinite retention time eventhub resource, no error should occur during terraform plan.
Actual Behaviour
provider plugin crashed.
Steps to Reproduce
create an eventhub with Infinite retention time enabled from azure portal
terraform import the resource
terrafrom plan
Important Factoids
No response
References
No response