ArmAppContainersModelFactory.ContainerAppScale 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.
Overloads
| Name | Description |
|---|---|
| ContainerAppScale(Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, IEnumerable<ContainerAppScaleRule>) |
Container App scaling configurations. |
| ContainerAppScale(Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, IEnumerable<ContainerAppScaleRule>) |
Container App scaling configurations. |
ContainerAppScale(Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, IEnumerable<ContainerAppScaleRule>)
Container App scaling configurations.
public static Azure.ResourceManager.AppContainers.Models.ContainerAppScale ContainerAppScale(int? minReplicas = default, int? maxReplicas = default, int? cooldownPeriod = default, int? pollingInterval = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AppContainers.Models.ContainerAppScaleRule> rules = default);
static member ContainerAppScale : Nullable<int> * Nullable<int> * Nullable<int> * Nullable<int> * seq<Azure.ResourceManager.AppContainers.Models.ContainerAppScaleRule> -> Azure.ResourceManager.AppContainers.Models.ContainerAppScale
Public Shared Function ContainerAppScale (Optional minReplicas As Nullable(Of Integer) = Nothing, Optional maxReplicas As Nullable(Of Integer) = Nothing, Optional cooldownPeriod As Nullable(Of Integer) = Nothing, Optional pollingInterval As Nullable(Of Integer) = Nothing, Optional rules As IEnumerable(Of ContainerAppScaleRule) = Nothing) As ContainerAppScale
Parameters
Optional. Maximum number of container replicas. Defaults to 10 if not set.
- rules
- IEnumerable<ContainerAppScaleRule>
Scaling rules.
Returns
A new ContainerAppScale instance for mocking.
Applies to
ContainerAppScale(Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, IEnumerable<ContainerAppScaleRule>)
Container App scaling configurations.
public static Azure.ResourceManager.AppContainers.Models.ContainerAppScale ContainerAppScale(int? minReplicas = default, int? maxReplicas = default, int? cooldownPeriod = default, int? pollingInterval = default, bool? allowScalingRuleOverride = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AppContainers.Models.ContainerAppScaleRule> rules = default);
static member ContainerAppScale : Nullable<int> * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<bool> * seq<Azure.ResourceManager.AppContainers.Models.ContainerAppScaleRule> -> Azure.ResourceManager.AppContainers.Models.ContainerAppScale
Public Shared Function ContainerAppScale (Optional minReplicas As Nullable(Of Integer) = Nothing, Optional maxReplicas As Nullable(Of Integer) = Nothing, Optional cooldownPeriod As Nullable(Of Integer) = Nothing, Optional pollingInterval As Nullable(Of Integer) = Nothing, Optional allowScalingRuleOverride As Nullable(Of Boolean) = Nothing, Optional rules As IEnumerable(Of ContainerAppScaleRule) = Nothing) As ContainerAppScale
Parameters
Optional. Maximum number of container replicas. Defaults to 10 if not set.
Optional. KEDA Cooldown Period in seconds. Defaults to 300 seconds if not set.
Optional. KEDA Polling Interval in seconds. Defaults to 30 seconds if not set.
Optional. Whether custom scale rules can override the automatic scale rules. This property is only applicable to Function Apps.
- rules
- IEnumerable<ContainerAppScaleRule>
Scaling rules.
Returns
A new ContainerAppScale instance for mocking.