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

Faulty Deprecated Resource Message for azurerm_virtual_machine_restore_point_collection #27542

Open
1 task done
CodeJunkie010 opened this issue Sep 30, 2024 · 0 comments
Open
1 task done

Comments

@CodeJunkie010
Copy link

CodeJunkie010 commented Sep 30, 2024

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 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 to help.

Terraform Version

1.8.5

AzureRM Provider Version

4.3.0

Affected Resource(s)/Data Source(s)

azurerm_virtual_machine_restore_point_collection

Terraform Configuration Files

resource "azurerm_resource_group" "res-0" {
  location   = "westeurope"
  managed_by = "subscriptions/123/providers/Microsoft.RecoveryServices/"
  name       = "AzureBackupRG_1"
}
resource "azurerm_virtual_machine_restore_point_collection" "AzureBackup_VM-01" {
  name                      = "AzureBackup_VM-01_123456789"
  location                  = azurerm_resource_group.res-0.location
  resource_group_name       = azurerm_resource_group.res-0.name
  source_virtual_machine_id = "/subscriptions/123/resourceGroups/AzureBackupRG_1/providers/Microsoft.Compute/virtualMachines/VM-01"
}

Debug Output/Panic Output

The log contains sensitive info, and we do not have time to sanitize it. Please use the STR.

Expected Behaviour

No deprecated resource warning. or one with the correct replacement resource.

Actual Behaviour

Plan: 1 to import, 0 to add, 0 to change, 0 to destroy.

│ Warning: Deprecated Resource

│ with azurerm_virtual_machine_restore_point_collection.AzureBackup_VM-01,
│ on main.tf line 6, in resource "azurerm_virtual_machine_restore_point_collection" "AzureBackup_VM-01":
│ 6: resource "azurerm_virtual_machine_restore_point_collection" "AzureBackup_VM-01" {

│ The "azurerm_virtual_machine_restore_point_collection" resource has been deprecated and replaced by the
│ "azurerm_virtual_machine_restore_point_collection" resource.

│ The existing "azurerm_virtual_machine_restore_point_collection" resource will remain available until the next
│ major version of the Azure Provider however the existing resource is feature-frozen
│ and we recommend using the "azurerm_virtual_machine_restore_point_collection" resource instead.

Steps to Reproduce

Try to import an azurerm_virtual_machine_restore_point_collection resource using the import.tf file and terraform plan/apply.
Note: this also occurs just by running terraform plan if the azurerm_virtual_machine_restore_point_collection resource is already imported.

Important Factoids

No response

References

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants