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_api_management: support recovery of soft deleted instances and enable purge on deletion by default #15871

Merged
merged 1 commit into from
Mar 22, 2022

Conversation

manicminer
Copy link
Member

@manicminer manicminer commented Mar 18, 2022

Fixes: #15865

@manicminer manicminer added this to the v3.0.0 milestone Mar 18, 2022
@manicminer manicminer marked this pull request as ready for review March 18, 2022 11:57
@manicminer manicminer requested a review from a team March 18, 2022 11:57
@manicminer manicminer changed the title WIP azurerm_api_mamnagement support recovering soft deleted azurerm_api_management: support recovery of soft deleted instances and enable purge on deletion by default Mar 18, 2022
Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside from 1 comment on the property name LGTM 🔥

Default: true,
},

"recover_soft_deleted_api_managements": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure we need to have api management on the end given it is in a block api_management? and above we have a property without the post fix applying to the same type of resource?

Suggested change
"recover_soft_deleted_api_managements": {
"recover_soft_deleted": {

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also i wonder if the purge one should be purge_soft_deleted_on_destroy 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, agreed on shortening the first one, the naming didn't quite sit right. For the second one, it's inkeeping with the existing equivalent property for other services so perhaps best to leave it for now.

@manicminer
Copy link
Member Author

Test results

Screenshot 2022-03-22 at 14 19 24

@manicminer manicminer merged commit 3a73e7a into main Mar 22, 2022
@manicminer manicminer deleted the feature/apim-soft-delete branch March 22, 2022 14:21
manicminer added a commit that referenced this pull request Mar 22, 2022
@github-actions
Copy link

This functionality has been released in v3.0.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
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, 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 Apr 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

azurerm_api_management does not work with soft-delete. Re-create fails
2 participants