Udostępnij za pośrednictwem


SubscriptionAssignmentsExtensions.CreateOrUpdateInSubscriptionAsync Metoda

Definicja

Utwórz lub zaktualizuj przypisanie strategii.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Blueprint.Models.Assignment> CreateOrUpdateInSubscriptionAsync (this Microsoft.Azure.Management.Blueprint.IAssignmentsOperations operations, string subscriptionId, string assignmentName, Microsoft.Azure.Management.Blueprint.Models.Assignment assignment, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateInSubscriptionAsync : Microsoft.Azure.Management.Blueprint.IAssignmentsOperations * string * string * Microsoft.Azure.Management.Blueprint.Models.Assignment * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Blueprint.Models.Assignment>
<Extension()>
Public Function CreateOrUpdateInSubscriptionAsync (operations As IAssignmentsOperations, subscriptionId As String, assignmentName As String, assignment As Assignment, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Assignment)

Parametry

operations
IAssignmentsOperations

Grupa operacji dla tej metody rozszerzenia.

subscriptionId
String

azure subscriptionId, do którego przypisujemy strategię.

assignmentName
String

nazwa przypisania.

assignment
Assignment

obiekt przypisania do zapisania.

cancellationToken
CancellationToken

Token anulowania.

Zwraca

Dotyczy