Compartilhar via


MaintenanceExtensions.UpdateConfigurationAssignmentBySubscriptionAsync Método

Definição

Registre a configuração do recurso.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}
  • Operação IdConfigurationAssignmentsForSubscriptions_Update
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData>> UpdateConfigurationAssignmentBySubscriptionAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string configurationAssignmentName, Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData data, System.Threading.CancellationToken cancellationToken = default);
static member UpdateConfigurationAssignmentBySubscriptionAsync : Azure.ResourceManager.Resources.SubscriptionResource * string * Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData>>
<Extension()>
Public Function UpdateConfigurationAssignmentBySubscriptionAsync (subscriptionResource As SubscriptionResource, configurationAssignmentName As String, data As MaintenanceConfigurationAssignmentData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MaintenanceConfigurationAssignmentData))

Parâmetros

subscriptionResource
SubscriptionResource

A SubscriptionResource instância na qual o método será executado.

configurationAssignmentName
String

Nome da atribuição de configuração.

data
MaintenanceConfigurationAssignmentData

O configurationAssignment.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

configurationAssignmentName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

configurationAssignmentName ou data é nulo.

Aplica-se a