Language

ArmMonitorModelFactory.AutoscaleSettingData Method

Definition

public static Azure.ResourceManager.Monitor.AutoscaleSettingData AutoscaleSettingData(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = 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, Azure.ResourceManager.Models.ManagedServiceIdentity identity = default);
static member AutoscaleSettingData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * 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.Models.ManagedServiceIdentity -> Azure.ResourceManager.Monitor.AutoscaleSettingData
Public Shared Function AutoscaleSettingData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = 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, Optional identity As ManagedServiceIdentity = Nothing) As AutoscaleSettingData

Parameters

id
ResourceIdentifier

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

name
String

The name of the resource.

resourceType
ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

systemData
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

tags
IDictionary<String,String>

Resource tags.

location
AzureLocation

The geo-location where the resource lives.

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.

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'.

Returns

A new AutoscaleSettingData instance for mocking.

Applies to