AutoscaleSettingCollection.CreateOrUpdate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates or updates an autoscale setting.
- Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/autoscalesettings/{autoscaleSettingName}
- Operation Id: AutoscaleSettings_CreateOrUpdate
- Default Api Version: 2022-10-01
- Resource: AutoscaleSettingResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.AutoscaleSettingResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string autoscaleSettingName, Azure.ResourceManager.Monitor.AutoscaleSettingData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Monitor.AutoscaleSettingData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.AutoscaleSettingResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Monitor.AutoscaleSettingData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.AutoscaleSettingResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, autoscaleSettingName As String, data As AutoscaleSettingData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of AutoscaleSettingResource)
Parameters
- waitUntil
- WaitUntil
Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- autoscaleSettingName
- String
The autoscale setting name.
- data
- AutoscaleSettingData
Parameters supplied to the operation.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
autoscaleSettingName
is an empty string, and was expected to be non-empty.
autoscaleSettingName
or data
is null.
Applies to
Azure SDK for .NET