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

Support failover rights for azurerm_mssql_managed_instance_failover_group via secondaryType property #26104

Closed
1 task done
adamzeyinsurity opened this issue May 24, 2024 · 0 comments · Fixed by #28633
Closed
1 task done

Comments

@adamzeyinsurity
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 and review the contribution guide to help.

Description

In order to enable failover rights on a SQLMI failover group, we need to set the "secondaryType" field to "Standby". However, azurerm does not expose this field.

I found a prior issue covering this (#20401) that was closed because the REST API did not support the secondaryType field. However, checking the Azure documentation (https://learn.microsoft.com/en-us/rest/api/sql/instance-failover-groups/create-or-update) this field was added to the API in version 2022-05-01-preview, well before that issue was filed in 2023.

New or Affected Resource(s)/Data Source(s)

azurerm_mssql_managed_instance_failover_group

Potential Terraform Configuration

https://github.com/hashicorp/terraform-provider-azurerm/issues/20401
https://learn.microsoft.com/en-us/rest/api/sql/instance-failover-groups/create-or-update

References

No response

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