AuthenticationFactory.GetServiceClientCredentials Method

Definition

Overloads

GetServiceClientCredentials(IAzureContext, String, String, ICmdletContext)

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

Parameters

context
IAzureContext
targetEndpoint
String
resourceId
String
cmdletContext
ICmdletContext

Returns

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

GetServiceClientCredentials(IAzureContext, String, ICmdletContext)

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

Parameters

context
IAzureContext
targetEndpoint
String
cmdletContext
ICmdletContext

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(IAzureContext, ICmdletContext)

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

Parameters

context
IAzureContext
cmdletContext
ICmdletContext

Returns

Implements

Applies to

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(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