Partager via


MaintenanceExtensions.UpdateConfigurationAssignmentByResourceGroupAsync Méthode

Définition

Inscrivez la configuration pour la ressource.

  • Chemin/abonnements de la demande/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}
  • IdConfigurationAssignmentsForResourceGroup_Update d’opération
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData>> UpdateConfigurationAssignmentByResourceGroupAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string configurationAssignmentName, Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData data, System.Threading.CancellationToken cancellationToken = default);
static member UpdateConfigurationAssignmentByResourceGroupAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData>>
<Extension()>
Public Function UpdateConfigurationAssignmentByResourceGroupAsync (resourceGroupResource As ResourceGroupResource, configurationAssignmentName As String, data As MaintenanceConfigurationAssignmentData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MaintenanceConfigurationAssignmentData))

Paramètres

resourceGroupResource
ResourceGroupResource

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

configurationAssignmentName
String

Nom de l’affectation de configuration.

data
MaintenanceConfigurationAssignmentData

ConfigurationAssignment.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

configurationAssignmentName est une chaîne vide, et on s’attendait à ce qu’elle ne soit pas vide.

configurationAssignmentName ou data est null.

S’applique à