Compartir a través de


MaintenanceExtensions.CreateOrUpdateConfigurationAssignmentBySubscription Método

Definición

Registre la configuración del recurso.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}
  • IdConfigurationAssignmentsForSubscriptions_CreateOrUpdate de operación
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)

Parámetros

subscriptionResource
SubscriptionResource

Instancia SubscriptionResource en la que se ejecutará el método.

configurationAssignmentName
String

Nombre de asignación de configuración.

data
MaintenanceConfigurationAssignmentData

ConfigurationAssignment.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

configurationAssignmentName es una cadena vacía y se esperaba que no estuviera vacía.

configurationAssignmentName o data es null.

Se aplica a