Skip to content

Commit

Permalink
fixed Disable SQL AG AutoProtection (#15241)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiaga authored Jun 11, 2021
1 parent 8542248 commit 9901e21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,10 @@ public override void ExecuteCmdlet()
containerNameResponse = HelperUtils.GetContainerUri(
keyValueDictResponse, itemResponse.Properties.ItemId);

if (String.Compare(itemNameResponse, itemName, true) == 0 &&
String.Compare(containerUri.Split(';')[3], containerNameResponse.Split(';')[2], true) == 0)
{
if((String.Compare(itemNameResponse, itemName, true) == 0) &&
((itemType.Contains("sqlavailabilitygroup") && String.Compare(containerUri.Split(';')[1], containerNameResponse, true) == 0)
|| (String.Compare(containerUri.Split(';')[3], containerNameResponse.Split(';')[2], true) == 0)))
{
intentName = itemResponse.Name;
break;
}
Expand Down
1 change: 1 addition & 0 deletions src/RecoveryServices/RecoveryServices/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Additional information about change #1
-->
## Upcoming Release
* Fixed Disable SQL AG AutoProtection.
* Added cross tenant DS Move.
* Removed restriction to fetch recovery points only for a 30 days time range.
* Enabled CRR for new regions.
Expand Down

0 comments on commit 9901e21

Please sign in to comment.