你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
AzureCredentialsFactory.FromMSI 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用来自本地托管服务标识终结点的令牌创建凭据对象。
public Microsoft.Azure.Management.ResourceManager.Fluent.Authentication.AzureCredentials FromMSI (Microsoft.Azure.Management.ResourceManager.Fluent.Authentication.MSILoginInformation msiLoginInformation, Microsoft.Azure.Management.ResourceManager.Fluent.AzureEnvironment environment, string tenantId = default);
member this.FromMSI : Microsoft.Azure.Management.ResourceManager.Fluent.Authentication.MSILoginInformation * Microsoft.Azure.Management.ResourceManager.Fluent.AzureEnvironment * string -> Microsoft.Azure.Management.ResourceManager.Fluent.Authentication.AzureCredentials
Public Function FromMSI (msiLoginInformation As MSILoginInformation, environment As AzureEnvironment, Optional tenantId As String = Nothing) As AzureCredentials
参数
- msiLoginInformation
- MSILoginInformation
MSI 身份验证所需的信息
- environment
- AzureEnvironment
要向其进行身份验证的环境
- tenantId
- String
返回
经过身份验证的凭据对象