共用方式為


UserAssignedIdentitiesOperationsExtensions.CreateOrUpdateAsync Method

Definition

Create or update an identity in the specified subscription and resource group.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ManagedServiceIdentity.Models.Identity> CreateOrUpdateAsync (this Microsoft.Azure.Management.ManagedServiceIdentity.IUserAssignedIdentitiesOperations operations, string resourceGroupName, string resourceName, Microsoft.Azure.Management.ManagedServiceIdentity.Models.Identity parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.ManagedServiceIdentity.IUserAssignedIdentitiesOperations * string * string * Microsoft.Azure.Management.ManagedServiceIdentity.Models.Identity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ManagedServiceIdentity.Models.Identity>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IUserAssignedIdentitiesOperations, resourceGroupName As String, resourceName As String, parameters As Identity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Identity)

Parameters

operations
IUserAssignedIdentitiesOperations

The operations group for this extension method.

resourceGroupName
String

The name of the Resource Group to which the identity belongs.

resourceName
String

The name of the identity resource.

parameters
Identity

Parameters to create or update the identity

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to