问题描述
我正在用 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.dll
和 Microsoft.Open.AzureADBeta.Graph.Client.dll
.您可以在特定版本的 Azure Active Directory V2 PowerShell 模块中找到这些 dll.例如,我安装了 Azure AD PowerShell Version 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 FilesWindowsPowerShellModulesAzureADPreview2.0.0.85
这篇关于我应该引用哪个 DLL,其中包含 Azure Active Directory V2 PowerShell 模块中使用的 Microsoft.Open.AzureAD.Model 命名空间类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!