AuthenticationFactory.GetServiceClientCredentials Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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
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