Freigeben über


ServicePrincipalsOperationsExtensions.CreateAsync Methode

Definition

Erstellt einen Dienstprinzipal im Verzeichnis.

public static System.Threading.Tasks.Task<Microsoft.Azure.Graph.RBAC.Models.ServicePrincipal> CreateAsync (this Microsoft.Azure.Graph.RBAC.IServicePrincipalsOperations operations, Microsoft.Azure.Graph.RBAC.Models.ServicePrincipalCreateParameters parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateAsync : Microsoft.Azure.Graph.RBAC.IServicePrincipalsOperations * Microsoft.Azure.Graph.RBAC.Models.ServicePrincipalCreateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Graph.RBAC.Models.ServicePrincipal>
<Extension()>
Public Function CreateAsync (operations As IServicePrincipalsOperations, parameters As ServicePrincipalCreateParameters, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ServicePrincipal)

Parameter

operations
IServicePrincipalsOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

parameters
ServicePrincipalCreateParameters

Parameter zum Erstellen eines Dienstprinzipals.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Gilt für: