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

https://learn.microsoft.com/en-us/powershell/module/az.recoveryservices/update-azrecoveryservicesasrprotectiondirection?view=azps-12.1.0&viewFallbackFrom=azps-6.3.0[Doc]: #25530

Open
sgannavaram opened this issue Jul 12, 2024 · 4 comments

Comments

@sgannavaram
Copy link

Type of issue

Code doesn't work

Feedback

I've created a simple runbook in Azure Automation to kick off a failover in site recovery referencing a recovery plan. Failover works fine, the issue comes to when I need to "failback". This starts with a re-protect to re-replicate traffic from the backup region back to the source region. In the Azure GUI, this is performed via the "Re-Protect" button in the Recovery Plan. In PowerShell, this re-protect should be performed with the cmdlet:

Update-AzRecoveryServicesAsrProtectionDirection

Following this documentation:
https://docs.microsoft.com/en-us/powershell/module/az.recoveryservices/update-azrecoveryservicesasrprotectiondirection?view=azps-6.3.0

Steps to reproduce
The following code is being used to attempt to initiate a re-protection action, this is done post failover from primary region to backup region:

$vault = Get-AzRecoveryServicesVault -Name $RecoveryVaultName -ResourceGroupName $RecoveryVaultRG
Set-AzRecoveryServicesAsrVaultContext -Vault $vault

$RP = Get-AzRecoveryServicesAsrRecoveryPlan -Name $RecoveryPlanName

$job = Update-AzRecoveryServicesAsrProtectionDirection -RecoveryPlan $RP -Direction RecoveryToPrimary

Page URL

https://learn.microsoft.com/en-us/powershell/module/az.recoveryservices/update-azrecoveryservicesasrprotectiondirection?view=azps-12.1.0&viewFallbackFrom=azps-6.3.0

Content source URL

No response

Author

No response

Document Id

No response

@sgannavaram sgannavaram added the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Jul 12, 2024
@sgannavaram
Copy link
Author

@Sharmistha-Rai

@sgannavaram
Copy link
Author

adding @sideeksh

@isra-fel isra-fel added Recovery Services Site-Recovery Service Attention This issue is responsible by Azure service team. Doc - Reference and removed needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Jul 18, 2024
Copy link
Contributor

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Sharmistha-Rai.

1 similar comment
Copy link
Contributor

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Sharmistha-Rai.

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

No branches or pull requests

2 participants