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