azure-sdk-for-net
azure-sdk-for-net copied to clipboard
[FEATURE REQ] Add single SQL database to failover group
Library name
Azure.ResourceManager.Sql
Please describe the feature.
I'm migrating from using the older, fluent library and missing a method to add a single database to an existing Failover Group.
Is there anything similar in this SDK besides the FailoverGroupPatch where the complete list of databases has to be provided?
Thank you for your feedback. Tagging and routing to the team member best able to assist.
Hi @rbe-planday , the FailoverGroupPatch.Databases is a list, you can use its Add method to add a single database.
Hi, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!
@ArthurMa1978 Sorry, didn't specifiy my request fully. My scenario is that the Failover Group already has some databases, and I need to add another database to the group.
Using the FailoverGroupPatch I also need to also add the existing databases to the from FailoverGroupData.Databases as well as my new database.
It's not a big deal, just the convenience method .WithNewDatabaseId(db.Id) that used to exist in the old SDK.
Hi @rbe-planday, Azure.ResourceManager.Sql is a totally re-designed SDK when compared with the fluent SDK, so we will not provide this kind of convenient method for now. Sorry for your inconvenience.
Hi, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!