【问题标题】:msonline module - where statements not working in azure functions powershellmsonline 模块 - where 语句在 azure 函数 powershell 中不起作用
【发布时间】:2021-06-16 01:52:09
【问题描述】:

我正在尝试使脚本正常工作,但每当我将“where”或“Where-object”输入其中时,我得到的结果为零。

$UserNames = Get-MsolUser -TenantId $tenantid -ALL | Where {($_.licenses).AccountSkuId -ilike "*$($licenseName)"} | Sort-Object DisplayName

如果我在本地运行相同的脚本,它可以正常工作,但不能在函数中工作。 如果我删除 Where 语句,它运行良好。

这是否需要 azure 函数中的单独语法,还是 azure 函数中 MSOnline 模块的反序列化问题?不知道如何解决。

请帮忙

【问题讨论】:

    标签: azure-active-directory powershell-core


    【解决方案1】:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-01-24
      • 2020-08-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多