"Sharing the solution with broader community"
There were no other errors. @Gorav Gandhi raised a ticket with MSFT support team and after validating the logs from backend following error was identified:
"Deletion of custom script extension with name InplaceOSUpgrade of virtual machine XXXX in the resource group XXXX of subscriptionId XXXX failed. | Exception: Azure status code: Forbidden. Arm error code: AuthorizationFailed. Arm error message: The client 'XXXX' with object id 'XXXX' does not have authorization to perform action 'Microsoft.Compute/virtualMachines/extensions/delete' over scope '/subscriptions/XXXX/resourceGroups/XXXX/providers/Microsoft.Compute/virtualMachines/XXXX/extensions/InplaceOSUpgrade' or the scope is invalid. If access was recently granted, please refresh your credentials..."
Solution Provided: Please go to subscription > Choose the subscription > Add Role assignment > Contributor/Owner role to the application Hyper-V Recovery Manager . Then re-try test failover.
Observation:
- Upgrade was successful after giving permission to this Enterprise application.
- It is an Enterprise application with type as Microsoft and is a default application in all tenancy.
- MSFT support team agreed this step is no updated in current public documentation.
Hope this helps others on this community who may be looking for a solution to this problem.
If the response helped, do "Accept Answer" and up-vote it