Language

ArmMonitorModelFactory.AutoscaleSettingPatch Method

Definition

public static Azure.ResourceManager.Monitor.Models.AutoscaleSettingPatch AutoscaleSettingPatch(System.Collections.Generic.IDictionary<string,string> tags = default, Azure.ResourceManager.Models.ManagedServiceIdentity identity = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Monitor.Models.AutoscaleProfile> profiles = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Monitor.Models.AutoscaleNotification> notifications = default, bool? isEnabled = default, Azure.ResourceManager.Monitor.Models.PredictiveAutoscalePolicy predictiveAutoscalePolicy = default, string autoscaleSettingName = default, Azure.Core.ResourceIdentifier targetResourceId = default, Azure.Core.AzureLocation? targetResourceLocation = default);
static member AutoscaleSettingPatch : System.Collections.Generic.IDictionary<string, string> * Azure.ResourceManager.Models.ManagedServiceIdentity * seq<Azure.ResourceManager.Monitor.Models.AutoscaleProfile> * seq<Azure.ResourceManager.Monitor.Models.AutoscaleNotification> * Nullable<bool> * Azure.ResourceManager.Monitor.Models.PredictiveAutoscalePolicy * string * Azure.Core.ResourceIdentifier * Nullable<Azure.Core.AzureLocation> -> Azure.ResourceManager.Monitor.Models.AutoscaleSettingPatch
Public Shared Function AutoscaleSettingPatch (Optional tags As IDictionary(Of String, String) = Nothing, Optional identity As ManagedServiceIdentity = Nothing, Optional profiles As IEnumerable(Of AutoscaleProfile) = Nothing, Optional notifications As IEnumerable(Of AutoscaleNotification) = Nothing, Optional isEnabled As Nullable(Of Boolean) = Nothing, Optional predictiveAutoscalePolicy As PredictiveAutoscalePolicy = Nothing, Optional autoscaleSettingName As String = Nothing, Optional targetResourceId As ResourceIdentifier = Nothing, Optional targetResourceLocation As Nullable(Of AzureLocation) = Nothing) As AutoscaleSettingPatch

Parameters

tags
IDictionary<String,String>

Resource tags.

identity
ManagedServiceIdentity

The managed service identities assigned to this resource. Only user-assigned identities are supported; 'SystemAssigned' and 'SystemAssigned,UserAssigned' are rejected. At most one user-assigned managed identity may be assigned to an autoscale setting. To remove the assigned identity, send 'type' as 'None'.

profiles
IEnumerable<AutoscaleProfile>

the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified.

notifications
IEnumerable<AutoscaleNotification>

the collection of notifications.

isEnabled
Nullable<Boolean>

the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'false'.

predictiveAutoscalePolicy
PredictiveAutoscalePolicy

the predictive autoscale policy mode.

autoscaleSettingName
String

the name of the autoscale setting.

targetResourceId
ResourceIdentifier

the resource identifier of the resource that the autoscale setting should be added to.

targetResourceLocation
Nullable<AzureLocation>

the location of the resource that the autoscale setting should be added to.

Returns

A new AutoscaleSettingPatch instance for mocking.

Applies to