免责声明:Azure 新手,请保持礼貌:)
我可以使用 Powershell 使用 Connect-AzAccount 连接到我们的 Azure 租户
Connect-AzAccount -Environment AzureCloud -Tenant $TenantDomain -CertificateThumbprint $CertificateThumbprint -ApplicationId $AppId
现在,我想在 VB.NET 控制台应用程序中做同样的事情。假设我拥有在 powershell 脚本中使用的所有相同参数,我该怎么做?到目前为止,我只能弄清楚我需要使用 Microsoft.Identity.Client.dll 来实现这一点,尽管我找不到任何相关文章
任何帮助将不胜感激,在此先感谢您。
最终,我们希望能够从 AAD 获取用户和组成员身份