Hi,
We recently encounter the same behavior from this GitHub issue -
opened 12:39PM - 11 Nov 25 UTC
closed 03:02PM - 11 Mar 26 UTC
bug
v/4.x
service/resource
### Is there an existing issue for this?
- [x] I have searched the existing iss… ues
### Community Note
* Please vote on this issue by adding a :thumbsup: [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
* If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the [contribution guide](https://github.com/hashicorp/terraform-provider-azurerm/blob/main/contributing/README.md) to help.
### Terraform Version
OpenTOFU 1.10.6
### AzureRM Provider Version
v4.52.0
### Affected Resource(s)/Data Source(s)
azurerm_resource_provider_registration
### Terraform Configuration Files
```hcl
terraform {
required_version = "~> 1.8"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 4.0"
}
}
}
provider "azurerm" {
features {}
alias = "subscription_690aaef2dde8e44920277da5"
resource_provider_registrations = "none"
subscription_id = var.subscription_id
}
resource "azurerm_resource_provider_registration" "microsoft_network_690aaef2dde8e44920277da5" {
provider = azurerm.subscription_690aaef2dde8e44920277da5
name = "Microsoft.Network"
feature {
name = "DisableNetworkWatcherAutocreation"
registered = true
}
}
```
### Debug Output/Panic Output
```shell
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to
│ azurerm_resource_provider_registration.microsoft_network_690aaef2dde8e44920277da5,
│ provider
│ "provider[\"registry.opentofu.org/hashicorp/azurerm\"].subscription_690aaef2dde8e44920277da5"
│ produced an unexpected new value: root object was present, but now absent.
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵
[01K9KD1DSHMBXE0B7PJBVW18RP] Unexpected exit code when applying changes: 1
```
### Expected Behaviour
No error
### Actual Behaviour
We encounter sporadic errors like this. Sometimes it works without any issues and sometimes we get this error.
### Steps to Reproduce
We couldn't find any consistent way to force this error
### Important Factoids
_No response_
### References
_No response_
We would like to verify if the following Merge is an official solution to the problem as our customers who depends on Terraform templates that use azurerm provider are being affected by it.