Partager via


MaintenanceExtensions.CreateOrUpdateConfigurationAssignmentAsync Méthode

Définition

Inscrivez la configuration pour la ressource.

  • Chemin/abonnements de la demande/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}
  • IdConfigurationAssignments_CreateOrUpdate d’opération
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData>> CreateOrUpdateConfigurationAssignmentAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string providerName, string resourceType, string resourceName, string configurationAssignmentName, Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData data, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateConfigurationAssignmentAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * string * string * string * Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData>>
<Extension()>
Public Function CreateOrUpdateConfigurationAssignmentAsync (resourceGroupResource As ResourceGroupResource, providerName As String, resourceType As String, resourceName As String, 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.

providerName
String

Nom du fournisseur de ressources.

resourceType
String

Type de ressource.

resourceName
String

Identificateur de ressource.

configurationAssignmentName
String

Nom de l’affectation de configuration.

data
MaintenanceConfigurationAssignmentData

ConfigurationAssignment.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

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

providerName, resourceType, resourceNameconfigurationAssignmentName ou data a la valeur null.

S’applique à