Partager via


ManagedServiceIdentitiesExtensions.GetUserAssignedIdentityAsync Méthode

Définition

Obtient l'identité.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}
  • IdUserAssignedIdentities_Get d’opération
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ManagedServiceIdentities.UserAssignedIdentityResource>> GetUserAssignedIdentityAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string resourceName, System.Threading.CancellationToken cancellationToken = default);
static member GetUserAssignedIdentityAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ManagedServiceIdentities.UserAssignedIdentityResource>>
<Extension()>
Public Function GetUserAssignedIdentityAsync (resourceGroupResource As ResourceGroupResource, resourceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of UserAssignedIdentityResource))

Paramètres

resourceGroupResource
ResourceGroupResource

Instance ResourceGroupResource sur laquelle la méthode s’exécute.

resourceName
String

Nom de la ressource d’identité.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

resourceName est une chaîne vide et devait être non vide.

resourceName a la valeur null.

S’applique à