Freigeben über


AuthenticationFactory.GetServiceClientCredentials Method

Definition

Overloads

GetServiceClientCredentials(IAzureContext)
GetServiceClientCredentials(IAzureContext, String)
GetServiceClientCredentials(String, Func<String>)
GetServiceClientCredentials(IAzureContext, String, String)

GetServiceClientCredentials(IAzureContext)

public Microsoft.Rest.ServiceClientCredentials GetServiceClientCredentials (Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext context);
abstract member GetServiceClientCredentials : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext -> Microsoft.Rest.ServiceClientCredentials
override this.GetServiceClientCredentials : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext -> Microsoft.Rest.ServiceClientCredentials
Public Function GetServiceClientCredentials (context As IAzureContext) As ServiceClientCredentials

Parameters

context
IAzureContext

Returns

Implements

Applies to

GetServiceClientCredentials(IAzureContext, String)

public Microsoft.Rest.ServiceClientCredentials GetServiceClientCredentials (Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext context, string targetEndpoint);
abstract member GetServiceClientCredentials : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext * string -> Microsoft.Rest.ServiceClientCredentials
override this.GetServiceClientCredentials : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext * string -> Microsoft.Rest.ServiceClientCredentials
Public Function GetServiceClientCredentials (context As IAzureContext, targetEndpoint As String) As ServiceClientCredentials

Parameters

context
IAzureContext
targetEndpoint
String

Returns

Implements

Applies to

GetServiceClientCredentials(String, Func<String>)

public Microsoft.Rest.ServiceClientCredentials GetServiceClientCredentials (string accessToken, Func<string> renew = default);
abstract member GetServiceClientCredentials : string * Func<string> -> Microsoft.Rest.ServiceClientCredentials
override this.GetServiceClientCredentials : string * Func<string> -> Microsoft.Rest.ServiceClientCredentials
Public Function GetServiceClientCredentials (accessToken As String, Optional renew As Func(Of String) = Nothing) As ServiceClientCredentials

Parameters

accessToken
String
renew
Func<String>

Returns

Implements

Applies to

GetServiceClientCredentials(IAzureContext, String, String)

public Microsoft.Rest.ServiceClientCredentials GetServiceClientCredentials (Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext context, string targetEndpoint, string resourceId);
member this.GetServiceClientCredentials : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext * string * string -> Microsoft.Rest.ServiceClientCredentials
Public Function GetServiceClientCredentials (context As IAzureContext, targetEndpoint As String, resourceId As String) As ServiceClientCredentials

Parameters

context
IAzureContext
targetEndpoint
String
resourceId
String

Returns

Applies to