Partager via


MaintenanceExtensions.CreateOrUpdateConfigurationAssignmentBySubscription Méthode

Définition

Inscrivez la configuration pour la ressource.

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

Paramètres

subscriptionResource
SubscriptionResource

Instance SubscriptionResource 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 à