azure-sdk-for-net icon indicating copy to clipboard operation
azure-sdk-for-net copied to clipboard

[FEATURE REQ] Add single SQL database to failover group

Open rbe-planday opened this issue 2 years ago • 5 comments

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.

Like used in this sample

Is there anything similar in this SDK besides the FailoverGroupPatch where the complete list of databases has to be provided?

rbe-planday avatar Dec 13 '22 10:12 rbe-planday

Thank you for your feedback. Tagging and routing to the team member best able to assist.

jsquire avatar Dec 13 '22 13:12 jsquire

Hi @rbe-planday , the FailoverGroupPatch.Databases is a list, you can use its Add method to add a single database.

ArthurMa1978 avatar Dec 14 '22 08:12 ArthurMa1978

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!

ghost avatar Dec 21 '22 14:12 ghost

@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.

rbe-planday avatar Dec 21 '22 18:12 rbe-planday

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.

Yao725 avatar Jan 10 '23 14:01 Yao725

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!

ghost avatar Jan 20 '23 08:01 ghost