Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azurerm_key_vault_key: unexpected new value: Root resource was present, but now absent. #18459

Closed
1 task done
eking-go opened this issue Sep 20, 2022 · 2 comments
Closed
1 task done

Comments

@eking-go
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, 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

Terraform Version

1.1.6

AzureRM Provider Version

3.23.0

Affected Resource(s)/Data Source(s)

azurerm_key_vault_key

Terraform Configuration Files

terraform {                                                                                                                                                                
    required_version = ">= 1.1"                                                                                                                                              
    required_providers {                                                                                                                                                                                                                                                                                                                      
      azurerm = {                                                                                                                                                            
        version = "~> 3.0"                                                                                                                                                   
      }                                                                                                                                                                                                                                                                                                                                          
    }                                                                                                                                                                        
  }

  provider "azurerm" {                                                                                                                                                       
    subscription_id            = "******"                                                                                                      
    tenant_id                  = "******"                                                                                                      
    use_msi                    = true                                                                                                                                        
    skip_provider_registration = true                                                                                                                                        
    features {                                                                                                                                                               
      key_vault {                                                                                                                                                            
        purge_soft_delete_on_destroy    = false                                                                                                                              
        recover_soft_deleted_key_vaults = true                                                                                                                               
      }                                                                                                                                                                      
      resource_group {                                                                                                                                                       
        prevent_deletion_if_contains_resources = false                                                                                                                       
      }                                                                                                                                                                      
      virtual_machine {                                                                                                                                                      
        delete_os_disk_on_deletion     = true                                                                                                                                
        graceful_shutdown              = false                                                                                                                               
        skip_shutdown_and_force_delete = true                                                                                                                                
      }                                                                                                                                                                      
    }                                                                                                                                                                        
  }


resource "azurerm_key_vault_key" "des_key" {                                                                                                                                 
  name         = "deskey"                                                                                                                          
  key_vault_id = var.key_vault_id                                                                                                                                            
  key_type     = "RSA"                                                                                                                                                       
  key_size     = 2048                                                                                                                                                        
                                                                                                                                                                             
  key_opts = [                                                                                                                                                               
    "decrypt",                                                                                                                                                               
    "encrypt",                                                                                                                                                               
    "sign",                                                                                                                                                                  
    "unwrapKey",                                                                                                                                                             
    "verify",                                                                                                                                                                
    "wrapKey",                                                                                                                                                               
  ]                                                                                                                                                                          
                                                                                                                                                                             
  tags = local.tags                                                                                                                                                          
}

Debug Output/Panic Output

azurerm_key_vault_key.des_key: Creating...
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to azurerm_key_vault_key.des_key, provider
│ "provider[\"registry.terraform.io/hashicorp/azurerm\"]" produced an
│ unexpected new value: Root resource was present, but now absent.
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.

Expected Behaviour

No response

Actual Behaviour

No response

Steps to Reproduce

No response

Important Factoids

No response

References

No response

@eking-go eking-go added the bug label Sep 20, 2022
@github-actions github-actions bot removed the bug label Sep 20, 2022
@magodo
Copy link
Collaborator

magodo commented Sep 21, 2022

@eking-go Thank you for submitting this!

This bug is being tracked in #11059 which I'm going to close this in favour of - would you mind subscribing to that issue for updates?

Thanks!

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants