Get-MgApplication无法识别为cmdlet的名称-Power Shell

时间:2020-02-22 20:56:01

标签: azure powershell office365

我正在尝试运行Microsoft提供的Contoso获利代码示例Web应用程序,以此作为从付费外接程序过渡到SaaS产品的起点。我陷入了要更新Azure Active Directory应用程序的最后一刻。我收到此错误

Get-MgApplication:术语“ Get-MgApplication”未被识别为cmdlet,函数,脚本文件或可运行程序的名称。检查名称的拼写,或者路径是否为 (包括),确认路径正确,然后重试。 + $ webApp = Get-MgApplication -top 400 | Where-Object {$ _。DisplayName -eq ... + CategoryInfo:ObjectNotFound:(Get-MgApplication:String)[],CommandNotFoundException + FullyQualifiedErrorId:CommandNotFoundException

这是引用“ Get-MgApplication”的代码。

2020-02-22 22:19:39.737  WARN 4205 --- [nio-8080-exec-7] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize instance of `com.evalside.project.beans.MissionBean` out of START_ARRAY token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `com.evalside.project.beans.MissionBean` out of START_ARRAY token
 at [Source: (PushbackInputStream); line: 1, column: 1]]

我已在线检查并没有成功找到该模块是否可以导入和加载。我还使用命令get-Module进行了检查,以检查是否在Power Shell Module文件夹中,并且可能拼写错误,但该位置也没有。任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:1)