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_site_recovery_replication_recovery_plan
: keep the order of recovery_group
#22348
azurerm_site_recovery_replication_recovery_plan
: keep the order of recovery_group
#22348
Conversation
…`recovery_group` Signed-off-by: ziyeqf <51212351+ziyeqf@users.noreply.github.com>
b630242
to
3411bab
Compare
Signed-off-by: ziyeqf <51212351+ziyeqf@users.noreply.github.com>
@@ -258,6 +261,8 @@ A `recovery_group` block supports the following: | |||
|
|||
* `type` - (Required) The Recovery Plan Group Type. Possible values are `Boot`, `Failover` and `Shutdown`. | |||
|
|||
**Note:** The List of `recovery_group` must be in the order of `Shutdown`-`Failover`-`Boot`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should these be modelled differently to account for that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have updated per comments, please take another look:)
Signed-off-by: ziyeqf <51212351+ziyeqf@users.noreply.github.com>
triggered a test on TC and will upload the result here |
Signed-off-by: ziyeqf <51212351+ziyeqf@users.noreply.github.com>
e95a168
to
d858643
Compare
Signed-off-by: ziyeqf <51212351+ziyeqf@users.noreply.github.com>
36ccc7a
to
aa0b8f1
Compare
|
||
-> **NOTE:** `shutdown_recovery_group` will be required in the next major version of the AzureRM Provider. | ||
|
||
* `failover_recovery_group` - (Optional) One or more `failover_recovery_group` block defined as below. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not consistent with the Microsoft.RecoveryServices/vaults/replicationRecoveryPlans@2022-10-01 API. If I create multiple failover or shutdown groups, I receive an error: "recommendedAction": "Ensure there is only a single shutdown and a single failover group and that virtual machines are present in only one boot group." Only multiple boot groups are allowed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, code updated
Signed-off-by: ziyeqf <51212351+ziyeqf@users.noreply.github.com>
Signed-off-by: ziyeqf <51212351+ziyeqf@users.noreply.github.com>
431e293
to
40b5a24
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ziyeqf Can you look at the linting error? Unfortunately we can't merge a fixable failure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ziyeqf, just some minor wording tweaks but this otherwise LGTM! 🪐
fix #22323