TokenProvider.CreateManagedIdentityTokenProvider 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
CreateManagedIdentityTokenProvider() |
Creates a TokenProvider for a Azure managed identity with a default instance of ManagedIdentityCredential. |
CreateManagedIdentityTokenProvider(ManagedIdentityCredential) |
Creates a TokenProvider for a Azure managed or user-assigned identity with a provided instance of ManagedIdentityCredential. |
CreateManagedIdentityTokenProvider()
Creates a TokenProvider for a Azure managed identity with a default instance of ManagedIdentityCredential.
public static Microsoft.Azure.Relay.TokenProvider CreateManagedIdentityTokenProvider ();
static member CreateManagedIdentityTokenProvider : unit -> Microsoft.Azure.Relay.TokenProvider
Public Shared Function CreateManagedIdentityTokenProvider () As TokenProvider
Returns
The TokenProvider for returning Json web token.
Applies to
CreateManagedIdentityTokenProvider(ManagedIdentityCredential)
Creates a TokenProvider for a Azure managed or user-assigned identity with a provided instance of ManagedIdentityCredential.
public static Microsoft.Azure.Relay.TokenProvider CreateManagedIdentityTokenProvider (Azure.Identity.ManagedIdentityCredential managedIdentityCredential);
static member CreateManagedIdentityTokenProvider : Azure.Identity.ManagedIdentityCredential -> Microsoft.Azure.Relay.TokenProvider
Public Shared Function CreateManagedIdentityTokenProvider (managedIdentityCredential As ManagedIdentityCredential) As TokenProvider
Parameters
- managedIdentityCredential
- ManagedIdentityCredential
Returns
The TokenProvider for returning Json web token.
Applies to
Azure SDK for .NET