本文介绍了我应该参考哪个包含Azure Active Directory V2 PowerShell模块中使用的Microsoft.Open.AzureAD.Model命名空间类型的DLL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用C#进行编码.我试图从C#调用Azure Active Directory V2 PowerShell模块的cmdlet,但是无法为New-AzureADUser的调用创建PasswordProfile参数,因为它是Microsoft.Open.AzureAD.Model命名空间中的类型.我找不到包含该名称空间的DLL引用.有人可以指导我吗?

I am coding in c#. I am trying to call the cmdlets of the Azure Active Directory V2 PowerShell module from C# but can't create a PasswordProfile parameter for an invocation of New-AzureADUser because it is a type in the Microsoft.Open.AzureAD.Model namespace. I can't find a DLL to reference that contains that namespace. Can anybody direct me to it?

推荐答案

AFAIK,此命名空间在Microsoft.Open.AzureAD16.Graph.Client.dllMicrosoft.Open.AzureADBeta.Graph.Client.dll中定义.您可以在特定版本的Azure Active Directory V2 PowerShell模块中找到这些dll.例如,我安装了Azure AD PowerShell版本2预览模块(2.0.0.85),然后可以在以下路径中找到这些库:

AFAIK, this namespace is defined in the Microsoft.Open.AzureAD16.Graph.Client.dll and Microsoft.Open.AzureADBeta.Graph.Client.dll. You can find these dll in the specific version of Azure Active Directory V2 PowerShell module. For example, I installed the Azure AD PowerShell Version 2 preview module(2.0.0.85), then thse library could be found in the path below:

C:\ Program Files \ WindowsPowerShell \ Modules \ AzureADPreview \ 2.0.0.85

这篇关于我应该参考哪个包含Azure Active Directory V2 PowerShell模块中使用的Microsoft.Open.AzureAD.Model命名空间类型的DLL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 14:54