0

因此,我一直没有成功尝试使用 Microsoft.PowerApps.Administration.PowerShell 为 Dynamics 365 实例还原 PowerApp 环境。根据MS docs 的命令 语法和示例的示例

表明您需要先创建一个 pscustomobject,然后运行该 cmdlet。尝试创建 pscustomobject 时,Powershell 抛出此错误

d4aaa888-a96z-54dg-9999-6942069b6qe9 :The term 'd4aaa888-a96z-54dg-9999-6942069b6qe9' is not recognized as 
the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again. 
At line:2 char:31
+         SourceEnvironmentId = c3aae985-d87c-49cb-8212-8624159a6ed8
+                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (    d4aaa888-a96z-54dg-9999-6942069b6qe9:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

备份cmdlet似乎可以工作,但是在还原时我遇到了各种问题。另外,只是尝试创建 RestorePointDateTime 会引发

You cannot call a method on a null-valued expression error

4

0 回答 0