微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Restore-PowerAppEnvironment cmdlet 抛出错误“未被识别为 cmdlet 的名称”

如何解决Restore-PowerAppEnvironment cmdlet 抛出错误“未被识别为 cmdlet 的名称”

因此,我尝试使用 Microsoft.PowerApps.Administration.PowerShell 为 Dynamics 365 实例恢复 PowerApp 环境失败。 根据 MS docs for the command 的示例 Syntax and example

显示您需要先创建一个 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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。