Freigeben über


AutoscaleSettingResource.UpdateAsync Methode

Definition

Updates eine vorhandene AutoscaleSettingsResource. Um andere Felder zu aktualisieren, verwenden Sie die CreateOrUpdate-Methode.

  • Request Path/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/autoscalesettings/{autoscaleSettingName}
  • Vorgang IdAutoscaleSettings_Update
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.AutoscaleSettingResource>> UpdateAsync (Azure.ResourceManager.Monitor.Models.AutoscaleSettingPatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.ResourceManager.Monitor.Models.AutoscaleSettingPatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.AutoscaleSettingResource>>
override this.UpdateAsync : Azure.ResourceManager.Monitor.Models.AutoscaleSettingPatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.AutoscaleSettingResource>>
Public Overridable Function UpdateAsync (patch As AutoscaleSettingPatch, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AutoscaleSettingResource))

Parameter

patch
AutoscaleSettingPatch

Für den Vorgang bereitgestellte Parameter.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

patch ist NULL.

Gilt für: