Azure Cli not able to run re-protect in ASR - A2A

Solteam 0 Reputation points
2024-09-16T11:06:15.34+00:00

Not Able to run A2A ASR re-protect, having issues.

az site-recovery protected-item reprotect --fabric-name asr-a2a-default --protection-container asr-a2a-default-container -n CNvbbdogE6GM65R -g rsv --vault-name vault --failover-direction RecoveryToPrimary --provider-details '{A2A:{}}'

(BadRequest) Value cannot be null.

Parameter name: str

Code: BadRequest

Message: Value cannot be null.

Parameter name: str

Exception Details: (UnhandledException) Value cannot be null.

    Parameter name: str

    Code: UnhandledException

    Message: Value cannot be null.

    Parameter name: str
Azure Site Recovery
Azure Site Recovery
An Azure native disaster recovery service. Previously known as Microsoft Azure Hyper-V Recovery Manager.
712 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SadiqhAhmed-MSFT 45,671 Reputation points Microsoft Employee
    2024-09-19T12:25:41.6766667+00:00

    @Solteam Thank you for posting your question on Microsoft Q&A platform.

    I understand that you're trying to run the az site-recovery protected-item reprotect command but are facing issues.

    Suggesting a few adjustments and tips to help you troubleshoot the issue:

    Ensure the --provider-details parameter is correctly formatted. It should be in a valid JSON format. Try using double quotes for the JSON key:

    --provider-details '{"A2A":{}}'

    Double-check the values for:

    • --fabric-name: Ensure it matches the existing fabric name in your environment.
    • --protection-container: Make sure it’s the correct protection container.
    • -n: Confirm that the protected item name is correct.
    • -g: Check the resource group name.
    • --vault-name: Ensure the recovery services vault name is accurate.

    Make sure you have necessary Azure account permissions to perform the operations.

    Please verify the status of the protected item. You can run the following command:

    az site-recovery protected-item show --name CNvbbdogE6GM65R --resource-group rsv --vault-name vault

    You can also try updating Azure CLI and then perform the task.

    az upgrade

    If the command still fails, look at the full error message and Azure activity logs for more context. If that doesn't help, you can contact Azure technical support team by raising a support request.

    Hope this helps!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.