Skip to main content

Notifications

Dynamics 365 general forum

Not Able To Restore Backup To Online Instance Using API

Posted on by 5

Hi All,

I am trying to restore my back to my online CRM Instance using API and power-shell through DEVOPS. But when I try to restore using API I am getting below error.

I have CRM online 9.0.

"Restore-CrmInstance: Parameter set cannot be resolved using the specified named parameters."

pastedimage1562669461060v3.png

Any assistance is highly appreciated.

  • Suggested answer
    Johnny Gong Profile Picture
    Johnny Gong 6,482 on at
    RE: Not Able To Restore Backup To Online Instance Using API

    Hi Hiren,

    I haven't found Dev left any migration operations or alternative methods.

    There are 3 esclalation tickets regarding this in latter half of FY19.

    Dev Team gave the same feedback as follow:

    Restore for 9.0x orgs is not available for use in powershell or Admin api. Feature not supported for v9 orgs at this team ....

    There's one good new that the Restore API will be released in couple of weeks which will update following 2 API to support V9 after communnication with Dev:

    And the Backup API will come early August. So you could still wait for a while. Thanks.

    Regards

    Johnny

  • Hiren Modi Profile Picture
    Hiren Modi 5 on at
    RE: Not Able To Restore Backup To Online Instance Using API

    Ohhhh, Thanks Johnny for the clarifications.

    Is there any other alternative which can be used to restore backup through DevOps pipeline?

    Regards,

    Hiren Modi

  • Suggested answer
    Johnny Gong Profile Picture
    Johnny Gong 6,482 on at
    RE: Not Able To Restore Backup To Online Instance Using API

    Hi Hiren,

    I have helped validate the issue with key word 'Restore-CrmInstance' and found this as one known issue in MS internal Escalation ticket DB:

    The Powershell cmdlet for backup and restore does not work for v9 orgs yet. It only supports old backups.

    While there's still no any proper documentation available on any of the Microsoft site which can say that the Powershell cmdlet for backup and restore does not work for v9 orgs yet.

    I am sorry but it's true. Dev Team are still working on this. Thanks.

    Regards

    Johnny

  • Hiren Modi Profile Picture
    Hiren Modi 5 on at
    RE: Not Able To Restore Backup To Online Instance Using API

    Hi Johnny, Yes I have followed exactly same format. Below is my syntax for the same. All variables are defined before this line. It gives proper error if any variable is missing or passing null or empty.

    Restore-CrmInstance -ApiUrl $ApiUrl -Credential $Cred -BackupId $instanceBackup.Id -SourceInstanceId $sourceInstance.Id -TargetInstanceId  $TargetInstance.Id

    Regards,

    Hiren

  • Johnny Gong Profile Picture
    Johnny Gong 6,482 on at
    RE: Not Able To Restore Backup To Online Instance Using API

    Hi Hiren,

    Have you followed this power shell format requirements below?

    Restore CRM Instance by PowerShell from the specified backup and instance restore point ids:

    Restore-CrmInstance -BackupId <Guid> -SourceInstanceId <Guid> -TargetInstanceId <Guid> -ApiUrl $connectionhost -Credential $cred

    docs.microsoft.com/.../restore-crminstance

    Regards

    Johnny

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans