MaintenanceExtensions.CreateOrUpdateConfigurationAssignment Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Inscrivez la configuration pour la ressource.
- Chemin de la demande/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}
- IdConfigurationAssignments_CreateOrUpdate d’opération
public static Azure.Response<Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData> CreateOrUpdateConfigurationAssignment (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 CreateOrUpdateConfigurationAssignment : Azure.ResourceManager.Resources.ResourceGroupResource * string * string * string * string * Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData>
<Extension()>
Public Function CreateOrUpdateConfigurationAssignment (resourceGroupResource As ResourceGroupResource, providerName As String, resourceType As String, resourceName As String, configurationAssignmentName As String, data As MaintenanceConfigurationAssignmentData, Optional cancellationToken As CancellationToken = Nothing) As 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.
ConfigurationAssignment.
- cancellationToken
- CancellationToken
Jeton d’annulation à utiliser.
Retours
Exceptions
providerName
, resourceType
resourceName
ou configurationAssignmentName
est une chaîne vide, et était censé être non vide.
providerName
, resourceType
, resourceName
configurationAssignmentName
ou data
a la valeur Null.