diff --git a/src/Monitor/Autoscale.Autorest/README.md b/src/Monitor/Autoscale.Autorest/README.md index 959414a8bfe1..577eb77dd192 100644 --- a/src/Monitor/Autoscale.Autorest/README.md +++ b/src/Monitor/Autoscale.Autorest/README.md @@ -39,59 +39,13 @@ title: Autoscale module-version: 0.1.0 subject-prefix: Autoscale namespace: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale -nested-object-to-string: true - -# If there are post APIs for some kinds of actions in the RP, you may need to -# uncomment following line to support viaIdentity for these post APIs -# identity-correction-for-post: true - -# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option -use-extension: - "@autorest/powershell": "3.x" directive: - - where: - Verb: Get - subject: PredictiveMetric - set: - breaking-change: - deprecated-output-properties: - - Data - new-output-properties: - - Data - change-description: The type of the property 'Data' of type 'IPredictiveResponse' will be changed from single object to 'List'. - deprecated-by-version: 7.0.0 - deprecated-by-azversion: 15.0.0 - change-effective-date: 2025/11/03 - - where: - verb: Get|Update|New - subject: AutoscaleSetting - set: - breaking-change: - deprecated-output-properties: - - Notification - - Profile - new-output-properties: - - Notification - - Profile - change-description: The types of the properties 'Notification' and 'Profile' of type 'IAutoscaleSettingResource' will be changed from single object to 'List'. - deprecated-by-version: 7.0.0 - deprecated-by-azversion: 15.0.0 - change-effective-date: 2025/11/03 - - where: - parameter-name: Profile|Rule|ScheduleHour|ScheduleMinute|ScheduleDay|Webhook|EmailCustomEmail - set: - breaking-change: - old-parameter-type: Array - new-parameter-type: List - deprecated-by-version: 7.0.0 - deprecated-by-azversion: 15.0.0 - change-effective-date: 2025/11/03 # Following is two common directive which are normally required in all the RPs # 1. Remove the unexpanded parameter set # 2. For New-* cmdlets, ViaIdentity is not required, so CreateViaIdentityExpanded is removed as well - where: - variant: ^Create$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$ + variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))|^CreateViaIdentityExpanded$ remove: true - where: verb: Set @@ -104,14 +58,6 @@ directive: verb: Update subject: AutoscaleSetting hide: true - # Rename 'Equals' - - from: source-file-csharp - where: $ - transform: $ = $.replace('public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ComparisonOperationType Equals = @"Equals";', 'public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ComparisonOperationType Equal = @"Equals";'); - - - from: source-file-csharp - where: $ - transform: $ = $.replace('public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleRuleMetricDimensionOperationType Equals = @"Equals";', 'public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleRuleMetricDimensionOperationType Equal = @"Equals";'); - from: swagger-document where: $.definitions.TimeWindow @@ -138,9 +84,9 @@ directive: } # Add breaking change for them, will add back. - model-cmdlet: - # - AutoscaleProfile - # - ScaleRule - # - AutoscaleNotification - - WebhookNotification - # - ScaleRuleMetricDimension + - model-name: AutoscaleProfile + - model-name: ScaleRule + - model-name: AutoscaleNotification + - model-name: WebhookNotification + - model-name: ScaleRuleMetricDimension ``` diff --git a/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleNotificationObject.ps1 b/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleNotificationObject.ps1 index 165adaafa16e..804c1bd94ac0 100644 --- a/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleNotificationObject.ps1 +++ b/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleNotificationObject.ps1 @@ -21,12 +21,13 @@ Create an in-memory object for AutoscaleNotification. Create an in-memory object for AutoscaleNotification. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.AutoscaleNotification +Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.AutoscaleNotification .Link -https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleNotificationObject +https://learn.microsoft.com/powershell/module/Az.Monitor/new-azautoscalenotificationobject #> function New-AzAutoscaleNotificationObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.AutoscaleNotification')] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.AutoscaleNotification')] [CmdletBinding(PositionalBinding=$false)] Param( [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.ParameterBreakingChange("EmailCustomEmail", "15.0.0", "7.0.0", "2025/11/03", OldParamaterType="Array", NewParameterType="List")] @@ -41,12 +42,12 @@ function New-AzAutoscaleNotificationObject { $EmailSendToSubscriptionCoAdministrator, [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.ParameterBreakingChange("Webhook", "15.0.0", "7.0.0", "2025/11/03", OldParamaterType="Array", NewParameterType="List")] [Parameter(HelpMessage="the collection of webhook notifications.")] - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IWebhookNotification[]] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IWebhookNotification[]] $Webhook ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.AutoscaleNotification]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.AutoscaleNotification]::New() if ($PSBoundParameters.ContainsKey('EmailCustomEmail')) { $Object.EmailCustomEmail = $EmailCustomEmail diff --git a/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleProfileObject.ps1 b/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleProfileObject.ps1 index 703e0e370d0f..707d289c0fcf 100644 --- a/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleProfileObject.ps1 +++ b/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleProfileObject.ps1 @@ -21,12 +21,13 @@ Create an in-memory object for AutoscaleProfile. Create an in-memory object for AutoscaleProfile. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.AutoscaleProfile +Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.AutoscaleProfile .Link -https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleProfileObject +https://learn.microsoft.com/powershell/module/Az.Monitor/new-azautoscaleprofileobject #> function New-AzAutoscaleProfileObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.AutoscaleProfile')] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.AutoscaleProfile')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -52,12 +53,12 @@ function New-AzAutoscaleProfileObject { [string] $Name, [Parameter(HelpMessage="the recurrence frequency. How often the schedule profile should take effect. This value must be Week, meaning each week will have the same set of profiles. For example, to set a daily schedule, set **schedule** to every day of the week. The frequency property specifies that the schedule is repeated weekly.")] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.RecurrenceFrequency])] - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.RecurrenceFrequency] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.PSArgumentCompleterAttribute("None", "Second", "Minute", "Hour", "Day", "Week", "Month", "Year")] + [string] $RecurrenceFrequency, [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.ParameterBreakingChange("Rule", "15.0.0", "7.0.0", "2025/11/03", OldParamaterType="Array", NewParameterType="List")] [Parameter(Mandatory, HelpMessage="the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified.")] - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IScaleRule[]] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IScaleRule[]] $Rule, [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.ParameterBreakingChange("ScheduleDay", "15.0.0", "7.0.0", "2025/11/03", OldParamaterType="Array", NewParameterType="List")] [Parameter(HelpMessage="the collection of days that the profile takes effect on. Possible values are Sunday through Saturday.")] @@ -77,7 +78,7 @@ function New-AzAutoscaleProfileObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.AutoscaleProfile]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.AutoscaleProfile]::New() if ($PSBoundParameters.ContainsKey('CapacityDefault')) { $Object.CapacityDefault = $CapacityDefault diff --git a/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleScaleRuleMetricDimensionObject.ps1 b/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleScaleRuleMetricDimensionObject.ps1 index a835d594e915..3dfeab8d5133 100644 --- a/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleScaleRuleMetricDimensionObject.ps1 +++ b/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleScaleRuleMetricDimensionObject.ps1 @@ -21,12 +21,13 @@ Create an in-memory object for ScaleRuleMetricDimension. Create an in-memory object for ScaleRuleMetricDimension. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleRuleMetricDimension +Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.ScaleRuleMetricDimension .Link -https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleScaleRuleMetricDimensionObject +https://learn.microsoft.com/powershell/module/Az.Monitor/new-azautoscalescalerulemetricdimensionobject #> function New-AzAutoscaleScaleRuleMetricDimensionObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleRuleMetricDimension')] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.ScaleRuleMetricDimension')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -34,8 +35,8 @@ function New-AzAutoscaleScaleRuleMetricDimensionObject { [string] $DimensionName, [Parameter(Mandatory, HelpMessage="the dimension operator. Only 'Equals' and 'NotEquals' are supported. 'Equals' being equal to any of the values. 'NotEquals' being not equal to all of the values.")] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleRuleMetricDimensionOperationType])] - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleRuleMetricDimensionOperationType] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.PSArgumentCompleterAttribute("Equals", "NotEquals")] + [string] $Operator, [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.ParameterBreakingChange("Value", "15.0.0", "7.0.0", "2025/11/03", OldParamaterType="Array", NewParameterType="List")] [Parameter(Mandatory, HelpMessage="list of dimension values. For example: [`"App1`",`"App2`"].")] @@ -44,7 +45,7 @@ function New-AzAutoscaleScaleRuleMetricDimensionObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleRuleMetricDimension]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.ScaleRuleMetricDimension]::New() if ($PSBoundParameters.ContainsKey('DimensionName')) { $Object.DimensionName = $DimensionName diff --git a/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleScaleRuleObject.ps1 b/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleScaleRuleObject.ps1 index e0a7f85bb23b..4437f925b633 100644 --- a/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleScaleRuleObject.ps1 +++ b/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleScaleRuleObject.ps1 @@ -21,17 +21,18 @@ Create an in-memory object for ScaleRule. Create an in-memory object for ScaleRule. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleRule +Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.ScaleRule .Link -https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleScaleRuleObject +https://learn.microsoft.com/powershell/module/Az.Monitor/new-azautoscalescaleruleobject #> function New-AzAutoscaleScaleRuleObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleRule')] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.ScaleRule')] [CmdletBinding(PositionalBinding=$false)] Param( [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.ParameterBreakingChange("MetricTriggerDimension", "15.0.0", "7.0.0", "2025/11/03", OldParamaterType="Array", NewParameterType="List")] [Parameter(HelpMessage="List of dimension conditions. For example: [{`"DimensionName`":`"AppName`",`"Operator`":`"Equals`",`"Values`":[`"App1`"]},{`"DimensionName`":`"Deployment`",`"Operator`":`"Equals`",`"Values`":[`"default`"]}].")] - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IScaleRuleMetricDimension[]] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IScaleRuleMetricDimension[]] $MetricTriggerDimension, [Parameter(HelpMessage="a value indicating whether metric should divide per instance.")] [bool] @@ -49,19 +50,19 @@ function New-AzAutoscaleScaleRuleObject { [string] $MetricTriggerMetricResourceUri, [Parameter(Mandatory, HelpMessage="the operator that is used to compare the metric data and the threshold.")] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ComparisonOperationType])] - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ComparisonOperationType] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.PSArgumentCompleterAttribute("Equals", "NotEquals", "GreaterThan", "GreaterThanOrEqual", "LessThan", "LessThanOrEqual")] + [string] $MetricTriggerOperator, [Parameter(Mandatory, HelpMessage="the metric statistic type. How the metrics from multiple instances are combined.")] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.MetricStatisticType])] - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.MetricStatisticType] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.PSArgumentCompleterAttribute("Average", "Min", "Max", "Sum", "Count")] + [string] $MetricTriggerStatistic, [Parameter(Mandatory, HelpMessage="the threshold of the metric that triggers the scale action.")] [double] $MetricTriggerThreshold, [Parameter(Mandatory, HelpMessage="time aggregation type. How the data that is collected should be combined over time. The default value is Average.")] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.TimeAggregationType])] - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.TimeAggregationType] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.PSArgumentCompleterAttribute("Average", "Minimum", "Maximum", "Total", "Count", "Last")] + [string] $MetricTriggerTimeAggregation, [Parameter(Mandatory, HelpMessage="the granularity of metrics the rule monitors. Must be one of the predefined values returned from metric definitions for the metric. Must be between 12 hours and 1 minute.")] [System.TimeSpan] @@ -73,12 +74,12 @@ function New-AzAutoscaleScaleRuleObject { [System.TimeSpan] $ScaleActionCooldown, [Parameter(Mandatory, HelpMessage="the scale direction. Whether the scaling action increases or decreases the number of instances.")] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleDirection])] - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleDirection] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.PSArgumentCompleterAttribute("None", "Increase", "Decrease")] + [string] $ScaleActionDirection, [Parameter(Mandatory, HelpMessage="the type of action that should occur when the scale rule fires.")] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleType])] - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleType] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.PSArgumentCompleterAttribute("ChangeCount", "PercentChangeCount", "ExactCount", "ServiceAllowedNextValue")] + [string] $ScaleActionType, [Parameter(HelpMessage="the number of instances that are involved in the scaling action. This value must be 1 or greater. The default value is 1.")] [string] @@ -86,7 +87,7 @@ function New-AzAutoscaleScaleRuleObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleRule]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.ScaleRule]::New() if ($PSBoundParameters.ContainsKey('MetricTriggerDimension')) { $Object.MetricTriggerDimension = $MetricTriggerDimension diff --git a/src/Monitor/Autoscale.Autorest/custom/Update-AzAutoscaleSetting.ps1 b/src/Monitor/Autoscale.Autorest/custom/Update-AzAutoscaleSetting.ps1 index beb806dd1971..82d323259ec7 100644 --- a/src/Monitor/Autoscale.Autorest/custom/Update-AzAutoscaleSetting.ps1 +++ b/src/Monitor/Autoscale.Autorest/custom/Update-AzAutoscaleSetting.ps1 @@ -29,7 +29,7 @@ To update other fields use the CreateOrUpdate method. .Inputs Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleSettingResource +Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleSettingResource .Notes COMPLEX PARAMETER PROPERTIES @@ -87,7 +87,7 @@ PROFILE : the collection of automatic scaling profiles that https://learn.microsoft.com/powershell/module/az.monitor/update-azAutoscaleSetting #> function Update-AzAutoscaleSetting { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleSettingResource])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleSettingResource])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -129,7 +129,7 @@ function Update-AzAutoscaleSetting { [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleNotification[]] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleNotification[]] # the collection of notifications. # To construct, see NOTES section for NOTIFICATION properties and create a hash table. ${Notification}, @@ -142,16 +142,16 @@ function Update-AzAutoscaleSetting { ${PredictiveAutoscalePolicyScaleLookAheadTime}, [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.PredictiveAutoscalePolicyScaleMode])] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.PSArgumentCompleterAttribute("Disabled", "ForecastOnly", "Enabled")] [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.PredictiveAutoscalePolicyScaleMode] + [System.String] # the predictive autoscale mode ${PredictiveAutoscalePolicyScaleMode}, [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleProfile[]] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleProfile[]] # the collection of automatic scaling profiles that specify different scaling parameters for different time periods. # A maximum of 20 profiles can be specified. # To construct, see NOTES section for PROFILE properties and create a hash table. @@ -159,7 +159,7 @@ function Update-AzAutoscaleSetting { [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleSettingResourcePatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleSettingResourcePatchTags]))] [System.Collections.Hashtable] # Resource tags ${Tag}, diff --git a/src/Monitor/Autoscale.Autorest/custom/autogen-model-cmdlets/New-AzAutoscaleWebhookNotificationObject.ps1 b/src/Monitor/Autoscale.Autorest/custom/autogen-model-cmdlets/New-AzAutoscaleWebhookNotificationObject.ps1 index fc9fc9d1798b..c7cd748c7a63 100644 --- a/src/Monitor/Autoscale.Autorest/custom/autogen-model-cmdlets/New-AzAutoscaleWebhookNotificationObject.ps1 +++ b/src/Monitor/Autoscale.Autorest/custom/autogen-model-cmdlets/New-AzAutoscaleWebhookNotificationObject.ps1 @@ -21,17 +21,18 @@ Create an in-memory object for WebhookNotification. Create an in-memory object for WebhookNotification. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.WebhookNotification +Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.WebhookNotification .Link -https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleWebhookNotificationObject +https://learn.microsoft.com/powershell/module/Az.Monitor/new-azautoscalewebhooknotificationobject #> function New-AzAutoscaleWebhookNotificationObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.WebhookNotification')] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.WebhookNotification')] [CmdletBinding(PositionalBinding=$false)] Param( [Parameter(HelpMessage="a property bag of settings. This value can be empty.")] - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IWebhookNotificationProperties] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IWebhookNotificationProperties] $Property, [Parameter(HelpMessage="the service address to receive the notification.")] [string] @@ -39,7 +40,7 @@ function New-AzAutoscaleWebhookNotificationObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.WebhookNotification]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.WebhookNotification]::New() if ($PSBoundParameters.ContainsKey('Property')) { $Object.Property = $Property diff --git a/src/Monitor/Autoscale.Autorest/docs/Az.Autoscale.md b/src/Monitor/Autoscale.Autorest/docs/Az.Autoscale.md index cbddc915a3b2..fa16340ec305 100644 --- a/src/Monitor/Autoscale.Autorest/docs/Az.Autoscale.md +++ b/src/Monitor/Autoscale.Autorest/docs/Az.Autoscale.md @@ -12,7 +12,7 @@ Microsoft Azure PowerShell: Autoscale cmdlets ## Az.Autoscale Cmdlets ### [Get-AzAutoscalePredictiveMetric](Get-AzAutoscalePredictiveMetric.md) -get predictive autoscale metric future data +Get predictive autoscale metric future data ### [Get-AzAutoscaleSetting](Get-AzAutoscaleSetting.md) Gets an autoscale setting @@ -30,7 +30,7 @@ Create an in-memory object for ScaleRuleMetricDimension. Create an in-memory object for ScaleRule. ### [New-AzAutoscaleSetting](New-AzAutoscaleSetting.md) -Creates or updates an autoscale setting. +Create an autoscale setting. ### [New-AzAutoscaleWebhookNotificationObject](New-AzAutoscaleWebhookNotificationObject.md) Create an in-memory object for WebhookNotification. diff --git a/src/Monitor/Autoscale.Autorest/docs/Get-AzAutoscalePredictiveMetric.md b/src/Monitor/Autoscale.Autorest/docs/Get-AzAutoscalePredictiveMetric.md index 916384d3ce05..74da09c7c624 100644 --- a/src/Monitor/Autoscale.Autorest/docs/Get-AzAutoscalePredictiveMetric.md +++ b/src/Monitor/Autoscale.Autorest/docs/Get-AzAutoscalePredictiveMetric.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Get-AzAutoscalePredictiveMetric ## SYNOPSIS -get predictive autoscale metric future data +Get predictive autoscale metric future data ## SYNTAX @@ -27,7 +27,7 @@ Get-AzAutoscalePredictiveMetric -AutoscaleSettingName -ResourceGroupNam ``` ## DESCRIPTION -get predictive autoscale metric future data +Get predictive autoscale metric future data ## EXAMPLES @@ -88,7 +88,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleIdentity @@ -206,7 +205,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IPredictiveResponse +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IPredictiveResponse ## NOTES diff --git a/src/Monitor/Autoscale.Autorest/docs/Get-AzAutoscaleSetting.md b/src/Monitor/Autoscale.Autorest/docs/Get-AzAutoscaleSetting.md index 5883aff8b65a..78e2d92b152d 100644 --- a/src/Monitor/Autoscale.Autorest/docs/Get-AzAutoscaleSetting.md +++ b/src/Monitor/Autoscale.Autorest/docs/Get-AzAutoscaleSetting.md @@ -80,7 +80,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleIdentity @@ -149,7 +148,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleSettingResource +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleSettingResource ## NOTES diff --git a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleNotificationObject.md b/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleNotificationObject.md index 63fae2b21041..375f3251ded8 100644 --- a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleNotificationObject.md +++ b/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleNotificationObject.md @@ -1,7 +1,7 @@ --- external help file: Module Name: Az.Monitor -online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleNotificationObject +online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-azautoscalenotificationobject schema: 2.0.0 --- @@ -81,10 +81,9 @@ Accept wildcard characters: False ### -Webhook the collection of webhook notifications. -To construct, see NOTES section for WEBHOOK properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IWebhookNotification[] +Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IWebhookNotification[] Parameter Sets: (All) Aliases: @@ -102,7 +101,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.AutoscaleNotification +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.AutoscaleNotification ## NOTES diff --git a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleProfileObject.md b/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleProfileObject.md index 8095b2c37816..2ba27d6663a6 100644 --- a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleProfileObject.md +++ b/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleProfileObject.md @@ -1,7 +1,7 @@ --- external help file: Module Name: Az.Monitor -online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleProfileObject +online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-azautoscaleprofileobject schema: 2.0.0 --- @@ -15,7 +15,7 @@ Create an in-memory object for AutoscaleProfile. ``` New-AzAutoscaleProfileObject -CapacityDefault -CapacityMaximum -CapacityMinimum -Name -Rule [-FixedDateEnd ] [-FixedDateStart ] - [-FixedDateTimeZone ] [-RecurrenceFrequency ] [-ScheduleDay ] + [-FixedDateTimeZone ] [-RecurrenceFrequency ] [-ScheduleDay ] [-ScheduleHour ] [-ScheduleMinute ] [-ScheduleTimeZone ] [] ``` @@ -160,7 +160,7 @@ For example, to set a daily schedule, set **schedule** to every day of the week. The frequency property specifies that the schedule is repeated weekly. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.RecurrenceFrequency +Type: System.String Parameter Sets: (All) Aliases: @@ -174,10 +174,9 @@ Accept wildcard characters: False ### -Rule the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified. -To construct, see NOTES section for RULE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IScaleRule[] +Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IScaleRule[] Parameter Sets: (All) Aliases: @@ -267,7 +266,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.AutoscaleProfile +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.AutoscaleProfile ## NOTES diff --git a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleScaleRuleMetricDimensionObject.md b/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleScaleRuleMetricDimensionObject.md index c69d5fb132e3..e819433a7469 100644 --- a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleScaleRuleMetricDimensionObject.md +++ b/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleScaleRuleMetricDimensionObject.md @@ -1,7 +1,7 @@ --- external help file: Module Name: Az.Monitor -online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleScaleRuleMetricDimensionObject +online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-azautoscalescalerulemetricdimensionobject schema: 2.0.0 --- @@ -13,8 +13,8 @@ Create an in-memory object for ScaleRuleMetricDimension. ## SYNTAX ``` -New-AzAutoscaleScaleRuleMetricDimensionObject -DimensionName - -Operator -Value [] +New-AzAutoscaleScaleRuleMetricDimensionObject -DimensionName -Operator -Value + [] ``` ## DESCRIPTION @@ -53,7 +53,7 @@ Only 'Equals' and 'NotEquals' are supported. 'NotEquals' being not equal to all of the values. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleRuleMetricDimensionOperationType +Type: System.String Parameter Sets: (All) Aliases: @@ -87,7 +87,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleRuleMetricDimension +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.ScaleRuleMetricDimension ## NOTES diff --git a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleScaleRuleObject.md b/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleScaleRuleObject.md index 6559dc670c6b..443c561e8027 100644 --- a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleScaleRuleObject.md +++ b/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleScaleRuleObject.md @@ -1,7 +1,7 @@ --- external help file: Module Name: Az.Monitor -online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleScaleRuleObject +online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-azautoscalescaleruleobject schema: 2.0.0 --- @@ -14,10 +14,9 @@ Create an in-memory object for ScaleRule. ``` New-AzAutoscaleScaleRuleObject -MetricTriggerMetricName -MetricTriggerMetricResourceUri - -MetricTriggerOperator -MetricTriggerStatistic - -MetricTriggerThreshold -MetricTriggerTimeAggregation - -MetricTriggerTimeGrain -MetricTriggerTimeWindow -ScaleActionCooldown - -ScaleActionDirection -ScaleActionType + -MetricTriggerOperator -MetricTriggerStatistic -MetricTriggerThreshold + -MetricTriggerTimeAggregation -MetricTriggerTimeGrain -MetricTriggerTimeWindow + -ScaleActionCooldown -ScaleActionDirection -ScaleActionType [-MetricTriggerDimension ] [-MetricTriggerDividePerInstance ] [-MetricTriggerMetricNamespace ] [-MetricTriggerMetricResourceLocation ] [-ScaleActionValue ] [] @@ -41,10 +40,9 @@ Create scale rule object ### -MetricTriggerDimension List of dimension conditions. For example: [{"DimensionName":"AppName","Operator":"Equals","Values":["App1"]},{"DimensionName":"Deployment","Operator":"Equals","Values":["default"]}]. -To construct, see NOTES section for METRICTRIGGERDIMENSION properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IScaleRuleMetricDimension[] +Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IScaleRuleMetricDimension[] Parameter Sets: (All) Aliases: @@ -134,7 +132,7 @@ Accept wildcard characters: False the operator that is used to compare the metric data and the threshold. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ComparisonOperationType +Type: System.String Parameter Sets: (All) Aliases: @@ -150,7 +148,7 @@ the metric statistic type. How the metrics from multiple instances are combined. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.MetricStatisticType +Type: System.String Parameter Sets: (All) Aliases: @@ -182,7 +180,7 @@ How the data that is collected should be combined over time. The default value is Average. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.TimeAggregationType +Type: System.String Parameter Sets: (All) Aliases: @@ -248,7 +246,7 @@ the scale direction. Whether the scaling action increases or decreases the number of instances. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleDirection +Type: System.String Parameter Sets: (All) Aliases: @@ -263,7 +261,7 @@ Accept wildcard characters: False the type of action that should occur when the scale rule fires. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleType +Type: System.String Parameter Sets: (All) Aliases: @@ -298,7 +296,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleRule +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.ScaleRule ## NOTES diff --git a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleSetting.md b/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleSetting.md index 70c6f0c030ee..0ba2c052d0dc 100644 --- a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleSetting.md +++ b/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleSetting.md @@ -8,28 +8,34 @@ schema: 2.0.0 # New-AzAutoscaleSetting ## SYNOPSIS -Creates or updates an autoscale setting. +Create an autoscale setting. ## SYNTAX -### CreateViaIdentity (Default) -``` -New-AzAutoscaleSetting -InputObject -Parameter - [-DefaultProfile ] [-Confirm] [-WhatIf] [] -``` - -### CreateExpanded +### CreateExpanded (Default) ``` New-AzAutoscaleSetting -Name -ResourceGroupName -Location -Profile [-SubscriptionId ] [-Enabled] [-Notification ] [-PredictiveAutoscalePolicyScaleLookAheadTime ] - [-PredictiveAutoscalePolicyScaleMode ] [-PropertiesName ] - [-Tag ] [-TargetResourceLocation ] [-TargetResourceUri ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-PredictiveAutoscalePolicyScaleMode ] [-PropertiesName ] [-Tag ] + [-TargetResourceLocation ] [-TargetResourceUri ] [-DefaultProfile ] [-Confirm] + [-WhatIf] [] +``` + +### CreateViaJsonFilePath +``` +New-AzAutoscaleSetting -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### CreateViaJsonString +``` +New-AzAutoscaleSetting -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION -Creates or updates an autoscale setting. +Create an autoscale setting. ## EXAMPLES @@ -80,19 +86,33 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleIdentity -Parameter Sets: CreateViaIdentity +Type: System.String +Parameter Sets: CreateViaJsonString Aliases: Required: True Position: Named Default value: None -Accept pipeline input: True (ByValue) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -116,7 +136,7 @@ The autoscale setting name. ```yaml Type: System.String -Parameter Sets: CreateExpanded +Parameter Sets: (All) Aliases: AutoscaleSettingName Required: True @@ -128,10 +148,9 @@ Accept wildcard characters: False ### -Notification the collection of notifications. -To construct, see NOTES section for NOTIFICATION properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleNotification[] +Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleNotification[] Parameter Sets: CreateExpanded Aliases: @@ -142,22 +161,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Parameter -The autoscale setting resource. -To construct, see NOTES section for PARAMETER properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleSettingResource -Parameter Sets: CreateViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -PredictiveAutoscalePolicyScaleLookAheadTime the amount of time to specify by which instances are launched in advance. It must be between 1 minute and 60 minutes in ISO 8601 format. @@ -178,7 +181,7 @@ Accept wildcard characters: False the predictive autoscale mode ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.PredictiveAutoscalePolicyScaleMode +Type: System.String Parameter Sets: CreateExpanded Aliases: @@ -192,10 +195,9 @@ Accept wildcard characters: False ### -Profile the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified. -To construct, see NOTES section for PROFILE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleProfile[] +Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleProfile[] Parameter Sets: CreateExpanded Aliases: @@ -227,7 +229,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: CreateExpanded +Parameter Sets: (All) Aliases: Required: True @@ -242,7 +244,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: CreateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -336,13 +338,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleSettingResource - -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleIdentity - ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleSettingResource +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleSettingResource ## NOTES diff --git a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleWebhookNotificationObject.md b/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleWebhookNotificationObject.md index 014b6dfe769d..d86df5b36026 100644 --- a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleWebhookNotificationObject.md +++ b/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleWebhookNotificationObject.md @@ -1,7 +1,7 @@ --- external help file: Module Name: Az.Monitor -online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleWebhookNotificationObject +online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-azautoscalewebhooknotificationobject schema: 2.0.0 --- @@ -34,10 +34,9 @@ Create webhook notification object ### -Property a property bag of settings. This value can be empty. -To construct, see NOTES section for PROPERTY properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IWebhookNotificationProperties +Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IWebhookNotificationProperties Parameter Sets: (All) Aliases: @@ -70,7 +69,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.WebhookNotification +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.WebhookNotification ## NOTES diff --git a/src/Monitor/Autoscale.Autorest/docs/Remove-AzAutoscaleSetting.md b/src/Monitor/Autoscale.Autorest/docs/Remove-AzAutoscaleSetting.md index e5c5c5e6fa53..02e714c2f52e 100644 --- a/src/Monitor/Autoscale.Autorest/docs/Remove-AzAutoscaleSetting.md +++ b/src/Monitor/Autoscale.Autorest/docs/Remove-AzAutoscaleSetting.md @@ -56,7 +56,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleIdentity diff --git a/src/Monitor/Autoscale.Autorest/docs/Update-AzAutoscaleSetting.md b/src/Monitor/Autoscale.Autorest/docs/Update-AzAutoscaleSetting.md index af99b248ea60..f4a33ed1bd24 100644 --- a/src/Monitor/Autoscale.Autorest/docs/Update-AzAutoscaleSetting.md +++ b/src/Monitor/Autoscale.Autorest/docs/Update-AzAutoscaleSetting.md @@ -17,19 +17,18 @@ To update other fields use the CreateOrUpdate method. ``` Update-AzAutoscaleSetting -Name -ResourceGroupName [-SubscriptionId ] [-Enabled ] [-Notification ] - [-PredictiveAutoscalePolicyScaleLookAheadTime ] - [-PredictiveAutoscalePolicyScaleMode ] [-Profile ] - [-Tag ] [-TargetResourceLocation ] [-TargetResourceUri ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-PredictiveAutoscalePolicyScaleLookAheadTime ] [-PredictiveAutoscalePolicyScaleMode ] + [-Profile ] [-Tag ] [-TargetResourceLocation ] + [-TargetResourceUri ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzAutoscaleSetting -InputObject [-Enabled ] [-Notification ] [-PredictiveAutoscalePolicyScaleLookAheadTime ] - [-PredictiveAutoscalePolicyScaleMode ] [-Profile ] - [-Tag ] [-TargetResourceLocation ] [-TargetResourceUri ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-PredictiveAutoscalePolicyScaleMode ] [-Profile ] [-Tag ] + [-TargetResourceLocation ] [-TargetResourceUri ] [-DefaultProfile ] [-Confirm] + [-WhatIf] [] ``` ## DESCRIPTION @@ -115,7 +114,7 @@ the collection of notifications. To construct, see NOTES section for NOTIFICATION properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleNotification[] +Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleNotification[] Parameter Sets: (All) Aliases: @@ -146,7 +145,7 @@ Accept wildcard characters: False the predictive autoscale mode ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.PredictiveAutoscalePolicyScaleMode +Type: System.String Parameter Sets: (All) Aliases: @@ -163,7 +162,7 @@ A maximum of 20 profiles can be specified. To construct, see NOTES section for PROFILE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleProfile[] +Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleProfile[] Parameter Sets: (All) Aliases: @@ -290,7 +289,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleSettingResource +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleSettingResource ## NOTES diff --git a/src/Monitor/Autoscale.Autorest/generate-info.json b/src/Monitor/Autoscale.Autorest/generate-info.json index 97d2a5915591..04ae1706fe04 100644 --- a/src/Monitor/Autoscale.Autorest/generate-info.json +++ b/src/Monitor/Autoscale.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "4dc0c7be-517b-4e7e-919e-a967cc2b9ae2" + "generate_Id": "47241ba7-acf0-4f0f-8719-bcba7287d058" } diff --git a/src/Monitor/Autoscale.Autorest/test/Autoscale.Recording.json b/src/Monitor/Autoscale.Autorest/test/Autoscale.Recording.json index bf61fc015da5..75527423d03c 100644 --- a/src/Monitor/Autoscale.Autorest/test/Autoscale.Recording.json +++ b/src/Monitor/Autoscale.Autorest/test/Autoscale.Recording.json @@ -1,15 +1,15 @@ { - "Autoscale+[NoContext]+CRUD+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/autoscale-groupmkwzn5/providers/Microsoft.Insights/autoscalesettings/test-autoscalesettingeijgb5?api-version=2022-10-01+1": { + "Autoscale+[NoContext]+CRUD+$PUT+https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/autoscale-groupn5j8xc/providers/Microsoft.Insights/autoscalesettings/test-autoscalesettingtpxwua?api-version=2022-10-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/autoscale-groupmkwzn5/providers/Microsoft.Insights/autoscalesettings/test-autoscalesettingeijgb5?api-version=2022-10-01", - "Content": "{\r\n \"location\": \"westeurope\",\r\n \"properties\": {\r\n \"predictiveAutoscalePolicy\": {\r\n \"scaleMode\": \"Enabled\",\r\n \"scaleLookAheadTime\": \"PT5M\"\r\n },\r\n \"profiles\": [\r\n {\r\n \"capacity\": {\r\n \"minimum\": \"1\",\r\n \"maximum\": \"10\",\r\n \"default\": \"1\"\r\n },\r\n \"fixedDate\": {\r\n \"timeZone\": \"UTC\",\r\n \"start\": \"2022-12-31T21:00:00.0000000+08:00\",\r\n \"end\": \"2022-12-31T22:00:00.0000000+08:00\"\r\n },\r\n \"name\": \"adios\",\r\n \"rules\": [\r\n {\r\n \"metricTrigger\": {\r\n \"metricName\": \"Percentage CPU\",\r\n \"metricResourceUri\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/autoscale-groupmkwzn5/providers/Microsoft.Compute/virtualMachineScaleSets/test-vmsstuc9nx\",\r\n \"timeGrain\": \"PT1M\",\r\n \"statistic\": \"Average\",\r\n \"timeWindow\": \"PT5M\",\r\n \"timeAggregation\": \"Average\",\r\n \"operator\": \"GreaterThan\",\r\n \"threshold\": 10,\r\n \"dividePerInstance\": false\r\n },\r\n \"scaleAction\": {\r\n \"direction\": \"Increase\",\r\n \"type\": \"ChangeCount\",\r\n \"value\": \"1\",\r\n \"cooldown\": \"PT5M\"\r\n }\r\n }\r\n ]\r\n }\r\n ],\r\n \"notifications\": [\r\n {\r\n \"email\": {\r\n \"sendToSubscriptionAdministrator\": true,\r\n \"sendToSubscriptionCoAdministrators\": true,\r\n \"customEmails\": [ \"gu@ms.com\" ]\r\n },\r\n \"operation\": \"Scale\",\r\n \"webhooks\": [\r\n {\r\n \"serviceUri\": \"http://myservice.com\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"enabled\": true,\r\n \"targetResourceUri\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/autoscale-groupmkwzn5/providers/Microsoft.Compute/virtualMachineScaleSets/test-vmsstuc9nx\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/autoscale-groupn5j8xc/providers/Microsoft.Insights/autoscalesettings/test-autoscalesettingtpxwua?api-version=2022-10-01", + "Content": "{\r\n \"location\": \"westeurope\",\r\n \"properties\": {\r\n \"predictiveAutoscalePolicy\": {\r\n \"scaleMode\": \"Enabled\",\r\n \"scaleLookAheadTime\": \"PT5M\"\r\n },\r\n \"profiles\": [\r\n {\r\n \"capacity\": {\r\n \"minimum\": \"1\",\r\n \"maximum\": \"10\",\r\n \"default\": \"1\"\r\n },\r\n \"fixedDate\": {\r\n \"timeZone\": \"UTC\",\r\n \"start\": \"2022-12-31T21:00:00.0000000+08:00\",\r\n \"end\": \"2022-12-31T22:00:00.0000000+08:00\"\r\n },\r\n \"name\": \"adios\",\r\n \"rules\": [\r\n {\r\n \"metricTrigger\": {\r\n \"metricName\": \"Percentage CPU\",\r\n \"metricResourceUri\": \"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/autoscale-groupn5j8xc/providers/Microsoft.Compute/virtualMachineScaleSets/test-vmss9g01m2\",\r\n \"timeGrain\": \"PT1M\",\r\n \"statistic\": \"Average\",\r\n \"timeWindow\": \"PT5M\",\r\n \"timeAggregation\": \"Average\",\r\n \"operator\": \"GreaterThan\",\r\n \"threshold\": 10,\r\n \"dividePerInstance\": false\r\n },\r\n \"scaleAction\": {\r\n \"direction\": \"Increase\",\r\n \"type\": \"ChangeCount\",\r\n \"value\": \"1\",\r\n \"cooldown\": \"PT5M\"\r\n }\r\n }\r\n ]\r\n }\r\n ],\r\n \"notifications\": [\r\n {\r\n \"email\": {\r\n \"customEmails\": [ \"gu@ms.com\" ]\r\n },\r\n \"operation\": \"Scale\",\r\n \"webhooks\": [\r\n {\r\n \"serviceUri\": \"http://myservice.com\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"enabled\": true,\r\n \"targetResourceUri\": \"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/autoscale-groupn5j8xc/providers/Microsoft.Compute/virtualMachineScaleSets/test-vmss9g01m2\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "1919" ] + "Content-Length": [ "1812" ] } }, "Response": { @@ -18,36 +18,39 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "cb135886-fd05-4413-9601-15b324619b51" ], - "Server": [ "Microsoft-IIS/10.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], - "x-ms-correlation-request-id": [ "8623f5f5-e3e8-4437-8454-c8e5153d3a57" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220921T033831Z:8623f5f5-e3e8-4437-8454-c8e5153d3a57" ], + "x-ms-request-id": [ "d9b5c41f-6ee3-440d-8c5f-77a1d278588b" ], + "x-ms-operation-identifier": [ "tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=0f876fc3-c749-4607-ad50-c13ef1569cea/southeastasia/af570d67-288c-4bac-9096-28497c70a599" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "199" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "2999" ], + "x-ms-correlation-request-id": [ "38a8a2f8-8085-4925-be7d-aea9731b743e" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20250701T071830Z:38a8a2f8-8085-4925-be7d-aea9731b743e" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Wed, 21 Sep 2022 03:38:30 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 30DE9381726E41CEB7A41EE7B3EB964A Ref B: MAA201060513039 Ref C: 2025-07-01T07:18:23Z" ], + "Date": [ "Tue, 01 Jul 2025 07:18:30 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1546" ], + "Content-Length": [ "1548" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/autoscale-groupmkwzn5/providers/microsoft.insights/autoscalesettings/test-autoscalesettingeijgb5\",\"name\":\"test-autoscalesettingeijgb5\",\"type\":\"Microsoft.Insights/autoscaleSettings\",\"location\":\"westeurope\",\"tags\":{},\"properties\":{\"profiles\":[{\"name\":\"adios\",\"capacity\":{\"minimum\":\"1\",\"maximum\":\"10\",\"default\":\"1\"},\"rules\":[{\"metricTrigger\":{\"metricName\":\"Percentage CPU\",\"metricNamespace\":\"\",\"metricResourceUri\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/autoscale-groupmkwzn5/providers/Microsoft.Compute/virtualMachineScaleSets/test-vmsstuc9nx\",\"timeGrain\":\"PT1M\",\"statistic\":\"Average\",\"timeWindow\":\"PT5M\",\"timeAggregation\":\"Average\",\"operator\":\"GreaterThan\",\"threshold\":10.0,\"dimensions\":null,\"dividePerInstance\":false},\"scaleAction\":{\"direction\":\"Increase\",\"type\":\"ChangeCount\",\"value\":\"1\",\"cooldown\":\"PT5M\"}}],\"fixedDate\":{\"timeZone\":\"UTC\",\"start\":\"2022-12-31T13:00:00Z\",\"end\":\"2022-12-31T14:00:00Z\"}}],\"enabled\":true,\"name\":\"test-autoscalesettingeijgb5\",\"targetResourceUri\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/autoscale-groupmkwzn5/providers/Microsoft.Compute/virtualMachineScaleSets/test-vmsstuc9nx\",\"notifications\":[{\"operation\":\"Scale\",\"email\":{\"sendToSubscriptionAdministrator\":true,\"sendToSubscriptionCoAdministrators\":true,\"customEmails\":[\"gu@ms.com\"]},\"webhooks\":[{\"serviceUri\":\"http://myservice.com\",\"properties\":null}]}],\"predictiveAutoscalePolicy\":{\"scaleMode\":\"Enabled\",\"scaleLookAheadTime\":\"PT5M\"}}}", + "Content": "{\"id\":\"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/autoscale-groupn5j8xc/providers/microsoft.insights/autoscalesettings/test-autoscalesettingtpxwua\",\"name\":\"test-autoscalesettingtpxwua\",\"type\":\"Microsoft.Insights/autoscaleSettings\",\"location\":\"westeurope\",\"tags\":{},\"properties\":{\"profiles\":[{\"name\":\"adios\",\"capacity\":{\"minimum\":\"1\",\"maximum\":\"10\",\"default\":\"1\"},\"rules\":[{\"metricTrigger\":{\"metricName\":\"Percentage CPU\",\"metricNamespace\":\"\",\"metricResourceUri\":\"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/autoscale-groupn5j8xc/providers/Microsoft.Compute/virtualMachineScaleSets/test-vmss9g01m2\",\"timeGrain\":\"PT1M\",\"statistic\":\"Average\",\"timeWindow\":\"PT5M\",\"timeAggregation\":\"Average\",\"operator\":\"GreaterThan\",\"threshold\":10.0,\"dimensions\":null,\"dividePerInstance\":false},\"scaleAction\":{\"direction\":\"Increase\",\"type\":\"ChangeCount\",\"value\":\"1\",\"cooldown\":\"PT5M\"}}],\"fixedDate\":{\"timeZone\":\"UTC\",\"start\":\"2022-12-31T13:00:00Z\",\"end\":\"2022-12-31T14:00:00Z\"}}],\"enabled\":true,\"name\":\"test-autoscalesettingtpxwua\",\"targetResourceUri\":\"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/autoscale-groupn5j8xc/providers/Microsoft.Compute/virtualMachineScaleSets/test-vmss9g01m2\",\"notifications\":[{\"operation\":\"Scale\",\"email\":{\"sendToSubscriptionAdministrator\":false,\"sendToSubscriptionCoAdministrators\":false,\"customEmails\":[\"gu@ms.com\"]},\"webhooks\":[{\"serviceUri\":\"http://myservice.com\",\"properties\":null}]}],\"predictiveAutoscalePolicy\":{\"scaleMode\":\"Enabled\",\"scaleLookAheadTime\":\"PT5M\"}}}", "isContentBase64": false } }, - "Autoscale+[NoContext]+CRUD+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/autoscale-groupmkwzn5/providers/Microsoft.Insights/autoscalesettings/test-autoscalesettingeijgb5?api-version=2022-10-01+2": { + "Autoscale+[NoContext]+CRUD+$GET+https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/autoscale-groupn5j8xc/providers/Microsoft.Insights/autoscalesettings/test-autoscalesettingtpxwua?api-version=2022-10-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/autoscale-groupmkwzn5/providers/Microsoft.Insights/autoscalesettings/test-autoscalesettingeijgb5?api-version=2022-10-01", + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/autoscale-groupn5j8xc/providers/Microsoft.Insights/autoscalesettings/test-autoscalesettingtpxwua?api-version=2022-10-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "3" ], - "x-ms-client-request-id": [ "be7d3eab-c234-412c-adbd-5f31b9e6cb8e" ], + "x-ms-client-request-id": [ "3a719029-2dad-4266-af97-fd8a631a6882" ], "CommandName": [ "Get-AzAutoscaleSetting" ], "FullCommandName": [ "Get-AzAutoscaleSetting_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.6", "Az.Autoscale/0.1.0" ], + "User-Agent": [ "AzurePowershell/v14.1.0", "PSVersion/v7.5.1", "Az.Autoscale/6.0.2" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -59,36 +62,38 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "8f563c6e-1a50-4ddf-97a0-aac19716d64b" ], - "Server": [ "Microsoft-IIS/10.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], - "x-ms-correlation-request-id": [ "008d7380-3104-4925-858c-6c932ad7f2b6" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220921T033831Z:008d7380-3104-4925-858c-6c932ad7f2b6" ], + "x-ms-request-id": [ "7912ec4d-a50a-48fb-9e24-ad824669bd88" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "249" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "3749" ], + "x-ms-correlation-request-id": [ "f32dee8f-9c3f-4ee8-a95c-f11677f42cf1" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20250701T071832Z:f32dee8f-9c3f-4ee8-a95c-f11677f42cf1" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Wed, 21 Sep 2022 03:38:30 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 8ADB3D23B4694D5CBCB9ADD155343C48 Ref B: MAA201060513039 Ref C: 2025-07-01T07:18:31Z" ], + "Date": [ "Tue, 01 Jul 2025 07:18:32 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1546" ], + "Content-Length": [ "1548" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/autoscale-groupmkwzn5/providers/microsoft.insights/autoscalesettings/test-autoscalesettingeijgb5\",\"name\":\"test-autoscalesettingeijgb5\",\"type\":\"Microsoft.Insights/autoscaleSettings\",\"location\":\"westeurope\",\"tags\":{},\"properties\":{\"profiles\":[{\"name\":\"adios\",\"capacity\":{\"minimum\":\"1\",\"maximum\":\"10\",\"default\":\"1\"},\"rules\":[{\"metricTrigger\":{\"metricName\":\"Percentage CPU\",\"metricNamespace\":\"\",\"metricResourceUri\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/autoscale-groupmkwzn5/providers/Microsoft.Compute/virtualMachineScaleSets/test-vmsstuc9nx\",\"timeGrain\":\"PT1M\",\"statistic\":\"Average\",\"timeWindow\":\"PT5M\",\"timeAggregation\":\"Average\",\"operator\":\"GreaterThan\",\"threshold\":10.0,\"dimensions\":null,\"dividePerInstance\":false},\"scaleAction\":{\"direction\":\"Increase\",\"type\":\"ChangeCount\",\"value\":\"1\",\"cooldown\":\"PT5M\"}}],\"fixedDate\":{\"timeZone\":\"UTC\",\"start\":\"2022-12-31T13:00:00Z\",\"end\":\"2022-12-31T14:00:00Z\"}}],\"enabled\":true,\"name\":\"test-autoscalesettingeijgb5\",\"targetResourceUri\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/autoscale-groupmkwzn5/providers/Microsoft.Compute/virtualMachineScaleSets/test-vmsstuc9nx\",\"notifications\":[{\"operation\":\"Scale\",\"email\":{\"sendToSubscriptionAdministrator\":true,\"sendToSubscriptionCoAdministrators\":true,\"customEmails\":[\"gu@ms.com\"]},\"webhooks\":[{\"serviceUri\":\"http://myservice.com\",\"properties\":null}]}],\"predictiveAutoscalePolicy\":{\"scaleMode\":\"Enabled\",\"scaleLookAheadTime\":\"PT5M\"}}}", + "Content": "{\"id\":\"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/autoscale-groupn5j8xc/providers/microsoft.insights/autoscalesettings/test-autoscalesettingtpxwua\",\"name\":\"test-autoscalesettingtpxwua\",\"type\":\"Microsoft.Insights/autoscaleSettings\",\"location\":\"westeurope\",\"tags\":{},\"properties\":{\"profiles\":[{\"name\":\"adios\",\"capacity\":{\"minimum\":\"1\",\"maximum\":\"10\",\"default\":\"1\"},\"rules\":[{\"metricTrigger\":{\"metricName\":\"Percentage CPU\",\"metricNamespace\":\"\",\"metricResourceUri\":\"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/autoscale-groupn5j8xc/providers/Microsoft.Compute/virtualMachineScaleSets/test-vmss9g01m2\",\"timeGrain\":\"PT1M\",\"statistic\":\"Average\",\"timeWindow\":\"PT5M\",\"timeAggregation\":\"Average\",\"operator\":\"GreaterThan\",\"threshold\":10.0,\"dimensions\":null,\"dividePerInstance\":false},\"scaleAction\":{\"direction\":\"Increase\",\"type\":\"ChangeCount\",\"value\":\"1\",\"cooldown\":\"PT5M\"}}],\"fixedDate\":{\"timeZone\":\"UTC\",\"start\":\"2022-12-31T13:00:00Z\",\"end\":\"2022-12-31T14:00:00Z\"}}],\"enabled\":true,\"name\":\"test-autoscalesettingtpxwua\",\"targetResourceUri\":\"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/autoscale-groupn5j8xc/providers/Microsoft.Compute/virtualMachineScaleSets/test-vmss9g01m2\",\"notifications\":[{\"operation\":\"Scale\",\"email\":{\"sendToSubscriptionAdministrator\":false,\"sendToSubscriptionCoAdministrators\":false,\"customEmails\":[\"gu@ms.com\"]},\"webhooks\":[{\"serviceUri\":\"http://myservice.com\",\"properties\":null}]}],\"predictiveAutoscalePolicy\":{\"scaleMode\":\"Enabled\",\"scaleLookAheadTime\":\"PT5M\"}}}", "isContentBase64": false } }, - "Autoscale+[NoContext]+CRUD+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/autoscale-groupmkwzn5/providers/Microsoft.Insights/autoscalesettings/test-autoscalesettingeijgb5?api-version=2022-10-01+3": { + "Autoscale+[NoContext]+CRUD+$DELETE+https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/autoscale-groupn5j8xc/providers/Microsoft.Insights/autoscalesettings/test-autoscalesettingtpxwua?api-version=2022-10-01+3": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/autoscale-groupmkwzn5/providers/Microsoft.Insights/autoscalesettings/test-autoscalesettingeijgb5?api-version=2022-10-01", + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/autoscale-groupn5j8xc/providers/Microsoft.Insights/autoscalesettings/test-autoscalesettingtpxwua?api-version=2022-10-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "4" ], - "x-ms-client-request-id": [ "231d40e5-f4b2-4302-9816-bb19c65d1ecc" ], + "x-ms-client-request-id": [ "40feb826-9244-4433-a041-15ec9ad59354" ], "CommandName": [ "Remove-AzAutoscaleSetting" ], "FullCommandName": [ "Remove-AzAutoscaleSetting_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.6", "Az.Autoscale/0.1.0" ], + "User-Agent": [ "AzurePowershell/v14.1.0", "PSVersion/v7.5.1", "Az.Autoscale/6.0.2" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -100,13 +105,16 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "704c137d-c7a4-4c05-8908-bcb6f8a92b37" ], - "Server": [ "Microsoft-IIS/10.0" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], - "x-ms-correlation-request-id": [ "e9b6ac14-f4ff-4ee4-bf68-fe138ec903be" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220921T033834Z:e9b6ac14-f4ff-4ee4-bf68-fe138ec903be" ], + "x-ms-request-id": [ "d5700a41-fd03-4bfd-b78f-87a5404e4254" ], + "x-ms-operation-identifier": [ "tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=0f876fc3-c749-4607-ad50-c13ef1569cea/southeastasia/7047977b-feda-4a61-a255-d03e89ebcdb6" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "199" ], + "x-ms-ratelimit-remaining-subscription-global-deletes": [ "2999" ], + "x-ms-correlation-request-id": [ "38e99621-999a-4586-81d8-bf67031a6ea1" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20250701T071838Z:38e99621-999a-4586-81d8-bf67031a6ea1" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Wed, 21 Sep 2022 03:38:33 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 66AE964ABD794C279E697A48CE0CED18 Ref B: MAA201060513039 Ref C: 2025-07-01T07:18:33Z" ], + "Date": [ "Tue, 01 Jul 2025 07:18:38 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], diff --git a/src/Monitor/Autoscale.Autorest/test/Autoscale.Tests.ps1 b/src/Monitor/Autoscale.Autorest/test/Autoscale.Tests.ps1 index 57d0b9aab32d..18a11a5cb24a 100644 --- a/src/Monitor/Autoscale.Autorest/test/Autoscale.Tests.ps1 +++ b/src/Monitor/Autoscale.Autorest/test/Autoscale.Tests.ps1 @@ -19,7 +19,7 @@ Describe 'Autoscale' { $rule1=New-AzAutoscaleScaleRuleObject -MetricTriggerMetricName "Percentage CPU" -MetricTriggerMetricResourceUri $env.vmssId -MetricTriggerTimeGrain ([System.TimeSpan]::New(0,1,0)) -MetricTriggerStatistic "Average" -MetricTriggerTimeWindow ([System.TimeSpan]::New(0,5,0)) -MetricTriggerTimeAggregation "Average" -MetricTriggerOperator "GreaterThan" -MetricTriggerThreshold 10 -MetricTriggerDividePerInstance $false -ScaleActionDirection "Increase" -ScaleActionType "ChangeCount" -ScaleActionValue 1 -ScaleActionCooldown ([System.TimeSpan]::New(0,5,0)) $profile1=New-AzAutoscaleProfileObject -Name "adios" -CapacityDefault 1 -CapacityMaximum 10 -CapacityMinimum 1 -Rule $rule1 -FixedDateEnd ([System.DateTime]::Parse("2022-12-31T14:00:00Z")) -FixedDateStart ([System.DateTime]::Parse("2022-12-31T13:00:00Z")) -FixedDateTimeZone "UTC" $webhook1=New-AzAutoscaleWebhookNotificationObject -Property @{} -ServiceUri "http://myservice.com" - $notification1=New-AzAutoscaleNotificationObject -EmailCustomEmail "gu@ms.com" -EmailSendToSubscriptionAdministrator $true -EmailSendToSubscriptionCoAdministrator $true -Webhook $webhook1 + $notification1=New-AzAutoscaleNotificationObject -EmailCustomEmail "gu@ms.com" -Webhook $webhook1 New-AzAutoscaleSetting -Name $env.autoscaleSettingName -ResourceGroupName $env.resourceGroupName -Location westeurope -Profile $profile1 -Enabled -Notification $notification1 -PredictiveAutoscalePolicyScaleLookAheadTime ([System.TimeSpan]::New(0,5,0)) -PredictiveAutoscalePolicyScaleMode 'Enabled' -TargetResourceUri $env.vmssId $setting = Get-AzAutoscaleSetting -Name $env.autoscaleSettingName -ResourceGroupName $env.resourceGroupName diff --git a/src/Monitor/Autoscale.Autorest/test/env.json b/src/Monitor/Autoscale.Autorest/test/env.json index 6303eca1376f..e4dfcfeef8b8 100644 --- a/src/Monitor/Autoscale.Autorest/test/env.json +++ b/src/Monitor/Autoscale.Autorest/test/env.json @@ -1,8 +1,8 @@ { - "vmssId": "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/autoscale-groupmkwzn5/providers/Microsoft.Compute/virtualMachineScaleSets/test-vmsstuc9nx", - "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "SubscriptionId": "9e223dbe-3399-4e19-88eb-0975f02ac87f", - "resourceGroupName": "autoscale-groupmkwzn5", - "autoscaleSettingName": "test-autoscalesettingeijgb5", - "vmssName": "test-vmsstuc9nx" + "resourceGroupName": "autoscale-groupn5j8xc", + "Tenant": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "SubscriptionId": "0b1f6471-1bf0-4dda-aec3-cb9272f09590", + "autoscaleSettingName": "test-autoscalesettingtpxwua", + "vmssId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/autoscale-groupn5j8xc/providers/Microsoft.Compute/virtualMachineScaleSets/test-vmss9g01m2", + "vmssName": "test-vmss9g01m2" } diff --git a/src/Monitor/Monitor.sln b/src/Monitor/Monitor.sln index d43fcb5ea1c7..46c7a7bce1ca 100644 --- a/src/Monitor/Monitor.sln +++ b/src/Monitor/Monitor.sln @@ -1,4 +1,4 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 @@ -47,13 +47,13 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "DataCollectionRule.Autorest EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DataCollectionRule", "..\..\generated\Monitor\DataCollectionRule.Autorest\Az.DataCollectionRule.csproj", "{138B61C0-9D0E-44A1-9EA1-E8142303ECA5}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Metricdata.Autorest", "Metricdata.Autorest", "{97973F8C-3EE1-368A-3B71-C62280C2DC8C}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Autoscale.Autorest", "Autoscale.Autorest", "{0832AC06-44A1-FEDA-3879-082134F4AAB5}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Metricdata", "..\..\generated\Monitor\Metricdata.Autorest\Az.Metricdata.csproj", "{ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Autoscale", "..\..\generated\Monitor\Autoscale.Autorest\Az.Autoscale.csproj", "{7AD2DC17-D116-4480-A74F-EB823CB6F7B5}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Autoscale.Autorest", "Autoscale.Autorest", "{0832AC06-44A1-FEDA-3879-082134F4AAB5}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Metricdata.Autorest", "Metricdata.Autorest", "{97973F8C-3EE1-368A-3B71-C62280C2DC8C}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Autoscale", "..\..\generated\Monitor\Autoscale.Autorest\Az.Autoscale.csproj", "{A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Metricdata", "..\..\generated\Monitor\Metricdata.Autorest\Az.Metricdata.csproj", "{ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ActivityLogAlert.Autorest", "ActivityLogAlert.Autorest", "{F5B68159-9278-7C75-41B6-315547561DBE}" EndProject @@ -297,18 +297,18 @@ Global {138B61C0-9D0E-44A1-9EA1-E8142303ECA5}.Release|x64.Build.0 = Release|Any CPU {138B61C0-9D0E-44A1-9EA1-E8142303ECA5}.Release|x86.ActiveCfg = Release|Any CPU {138B61C0-9D0E-44A1-9EA1-E8142303ECA5}.Release|x86.Build.0 = Release|Any CPU - {0A51A656-9092-4C82-83B5-524516C8FED7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0A51A656-9092-4C82-83B5-524516C8FED7}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0A51A656-9092-4C82-83B5-524516C8FED7}.Debug|x64.ActiveCfg = Debug|Any CPU - {0A51A656-9092-4C82-83B5-524516C8FED7}.Debug|x64.Build.0 = Debug|Any CPU - {0A51A656-9092-4C82-83B5-524516C8FED7}.Debug|x86.ActiveCfg = Debug|Any CPU - {0A51A656-9092-4C82-83B5-524516C8FED7}.Debug|x86.Build.0 = Debug|Any CPU - {0A51A656-9092-4C82-83B5-524516C8FED7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0A51A656-9092-4C82-83B5-524516C8FED7}.Release|Any CPU.Build.0 = Release|Any CPU - {0A51A656-9092-4C82-83B5-524516C8FED7}.Release|x64.ActiveCfg = Release|Any CPU - {0A51A656-9092-4C82-83B5-524516C8FED7}.Release|x64.Build.0 = Release|Any CPU - {0A51A656-9092-4C82-83B5-524516C8FED7}.Release|x86.ActiveCfg = Release|Any CPU - {0A51A656-9092-4C82-83B5-524516C8FED7}.Release|x86.Build.0 = Release|Any CPU + {7AD2DC17-D116-4480-A74F-EB823CB6F7B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7AD2DC17-D116-4480-A74F-EB823CB6F7B5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7AD2DC17-D116-4480-A74F-EB823CB6F7B5}.Debug|x64.ActiveCfg = Debug|Any CPU + {7AD2DC17-D116-4480-A74F-EB823CB6F7B5}.Debug|x64.Build.0 = Debug|Any CPU + {7AD2DC17-D116-4480-A74F-EB823CB6F7B5}.Debug|x86.ActiveCfg = Debug|Any CPU + {7AD2DC17-D116-4480-A74F-EB823CB6F7B5}.Debug|x86.Build.0 = Debug|Any CPU + {7AD2DC17-D116-4480-A74F-EB823CB6F7B5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7AD2DC17-D116-4480-A74F-EB823CB6F7B5}.Release|Any CPU.Build.0 = Release|Any CPU + {7AD2DC17-D116-4480-A74F-EB823CB6F7B5}.Release|x64.ActiveCfg = Release|Any CPU + {7AD2DC17-D116-4480-A74F-EB823CB6F7B5}.Release|x64.Build.0 = Release|Any CPU + {7AD2DC17-D116-4480-A74F-EB823CB6F7B5}.Release|x86.ActiveCfg = Release|Any CPU + {7AD2DC17-D116-4480-A74F-EB823CB6F7B5}.Release|x86.Build.0 = Release|Any CPU {81F263BA-D395-42CB-A7E0-AFC20029C4BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {81F263BA-D395-42CB-A7E0-AFC20029C4BC}.Debug|Any CPU.Build.0 = Debug|Any CPU {81F263BA-D395-42CB-A7E0-AFC20029C4BC}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -333,30 +333,6 @@ Global {88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Release|x64.Build.0 = Release|Any CPU {88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Release|x86.ActiveCfg = Release|Any CPU {88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Release|x86.Build.0 = Release|Any CPU - {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Debug|x64.ActiveCfg = Debug|Any CPU - {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Debug|x64.Build.0 = Debug|Any CPU - {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Debug|x86.ActiveCfg = Debug|Any CPU - {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Debug|x86.Build.0 = Debug|Any CPU - {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Release|Any CPU.Build.0 = Release|Any CPU - {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Release|x64.ActiveCfg = Release|Any CPU - {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Release|x64.Build.0 = Release|Any CPU - {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Release|x86.ActiveCfg = Release|Any CPU - {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Release|x86.Build.0 = Release|Any CPU - {0D41ADE3-ABBA-445B-8990-EA015AD4203D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0D41ADE3-ABBA-445B-8990-EA015AD4203D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0D41ADE3-ABBA-445B-8990-EA015AD4203D}.Debug|x64.ActiveCfg = Debug|Any CPU - {0D41ADE3-ABBA-445B-8990-EA015AD4203D}.Debug|x64.Build.0 = Debug|Any CPU - {0D41ADE3-ABBA-445B-8990-EA015AD4203D}.Debug|x86.ActiveCfg = Debug|Any CPU - {0D41ADE3-ABBA-445B-8990-EA015AD4203D}.Debug|x86.Build.0 = Debug|Any CPU - {0D41ADE3-ABBA-445B-8990-EA015AD4203D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0D41ADE3-ABBA-445B-8990-EA015AD4203D}.Release|Any CPU.Build.0 = Release|Any CPU - {0D41ADE3-ABBA-445B-8990-EA015AD4203D}.Release|x64.ActiveCfg = Release|Any CPU - {0D41ADE3-ABBA-445B-8990-EA015AD4203D}.Release|x64.Build.0 = Release|Any CPU - {0D41ADE3-ABBA-445B-8990-EA015AD4203D}.Release|x86.ActiveCfg = Release|Any CPU - {0D41ADE3-ABBA-445B-8990-EA015AD4203D}.Release|x86.Build.0 = Release|Any CPU {A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Debug|Any CPU.Build.0 = Debug|Any CPU {A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -412,13 +388,10 @@ Global {B54BD1A5-F4AB-485B-8478-520B6AA1E9E7} = {5E1B5E7C-8C9C-47AD-8F8F-19628E8D1B34} {0636EEB2-FE81-4424-8CFC-CCEB25360A40} = {3F76A15C-B128-4A31-A887-05E303CF8D7F} {138B61C0-9D0E-44A1-9EA1-E8142303ECA5} = {35E5CBAF-5596-AC3C-3DBD-816FC74B54D0} - {0A51A656-9092-4C82-83B5-524516C8FED7} = {97973F8C-3EE1-368A-3B71-C62280C2DC8C} - {0D41ADE3-ABBA-445B-8990-EA015AD4203D} = {F5B68159-9278-7C75-41B6-315547561DBE} + {7AD2DC17-D116-4480-A74F-EB823CB6F7B5} = {0832AC06-44A1-FEDA-3879-082134F4AAB5} {A3CBC4A9-A39C-4343-99F2-F3F53F20049B} = {DFE9A16E-4879-AFA3-BD8B-DBC73F42D0CA} {81F263BA-D395-42CB-A7E0-AFC20029C4BC} = {F5B68159-9278-7C75-41B6-315547561DBE} {88085FD3-B4EE-4AC4-94B7-D1D2A9A18033} = {4644B825-05AB-0B45-5567-89C0D700A638} - {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627} = {0832AC06-44A1-FEDA-3879-082134F4AAB5} - {0D41ADE3-ABBA-445B-8990-EA015AD4203D} = {F5B68159-9278-7C75-41B6-315547561DBE} {3BDF8EC5-1C35-4425-AB3C-6EF677F618E2} = {635E4282-7AFB-1B5B-749B-823438FF2057} {ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4} = {97973F8C-3EE1-368A-3B71-C62280C2DC8C} EndGlobalSection diff --git a/src/Monitor/Monitor/ChangeLog.md b/src/Monitor/Monitor/ChangeLog.md index 0d21a1c9f54d..ca77b0718c38 100644 --- a/src/Monitor/Monitor/ChangeLog.md +++ b/src/Monitor/Monitor/ChangeLog.md @@ -19,6 +19,7 @@ --> ## Upcoming Release +* Parameters EmailSendToSubscriptionAdministrator and EmailSendToSubscriptionCoAdministrator of cmdlet `New-AzAutoscaleNotificationObject` was unavailable after April 3, 2024 due to Azure classic administrator retirement. ## Version 6.0.3 * Added breaking change announcement for below cmdlets from single object or fixed array to list. diff --git a/src/Monitor/Monitor/help/Az.Monitor.md b/src/Monitor/Monitor/help/Az.Monitor.md index 0ef3a0d17020..76afca230443 100644 --- a/src/Monitor/Monitor/help/Az.Monitor.md +++ b/src/Monitor/Monitor/help/Az.Monitor.md @@ -48,7 +48,7 @@ Gets classic alert rules. Gets the Autoscale history. ### [Get-AzAutoscalePredictiveMetric](Get-AzAutoscalePredictiveMetric.md) -get predictive autoscale metric future data +Get predictive autoscale metric future data ### [Get-AzAutoscaleSetting](Get-AzAutoscaleSetting.md) Gets an autoscale setting @@ -172,7 +172,7 @@ Create an in-memory object for ScaleRuleMetricDimension. Create an in-memory object for ScaleRule. ### [New-AzAutoscaleSetting](New-AzAutoscaleSetting.md) -Creates or updates an autoscale setting. +Create an autoscale setting. ### [New-AzAutoscaleWebhookNotificationObject](New-AzAutoscaleWebhookNotificationObject.md) Create an in-memory object for WebhookNotification. diff --git a/src/Monitor/Monitor/help/Get-AzAutoscalePredictiveMetric.md b/src/Monitor/Monitor/help/Get-AzAutoscalePredictiveMetric.md index 6cbf30194947..e657a23d251f 100644 --- a/src/Monitor/Monitor/help/Get-AzAutoscalePredictiveMetric.md +++ b/src/Monitor/Monitor/help/Get-AzAutoscalePredictiveMetric.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Get-AzAutoscalePredictiveMetric ## SYNOPSIS -get predictive autoscale metric future data +Get predictive autoscale metric future data ## SYNTAX @@ -28,7 +28,7 @@ Get-AzAutoscalePredictiveMetric -AutoscaleSettingName -ResourceGroupNam ``` ## DESCRIPTION -get predictive autoscale metric future data +Get predictive autoscale metric future data ## EXAMPLES @@ -89,7 +89,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleIdentity @@ -207,7 +206,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IPredictiveResponse +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IPredictiveResponse ## NOTES diff --git a/src/Monitor/Monitor/help/Get-AzAutoscaleSetting.md b/src/Monitor/Monitor/help/Get-AzAutoscaleSetting.md index bb5dfc96f6b4..99b39cc4c197 100644 --- a/src/Monitor/Monitor/help/Get-AzAutoscaleSetting.md +++ b/src/Monitor/Monitor/help/Get-AzAutoscaleSetting.md @@ -82,7 +82,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleIdentity @@ -151,7 +150,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleSettingResource +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleSettingResource ## NOTES diff --git a/src/Monitor/Monitor/help/New-AzAutoscaleNotificationObject.md b/src/Monitor/Monitor/help/New-AzAutoscaleNotificationObject.md index 92f61a870053..486ef29c680b 100644 --- a/src/Monitor/Monitor/help/New-AzAutoscaleNotificationObject.md +++ b/src/Monitor/Monitor/help/New-AzAutoscaleNotificationObject.md @@ -1,7 +1,7 @@ --- external help file: Az.Autoscale.psm1-help.xml Module Name: Az.Monitor -online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleNotificationObject +online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-azautoscalenotificationobject schema: 2.0.0 --- @@ -81,10 +81,9 @@ Accept wildcard characters: False ### -Webhook the collection of webhook notifications. -To construct, see NOTES section for WEBHOOK properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IWebhookNotification[] +Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IWebhookNotification[] Parameter Sets: (All) Aliases: @@ -102,7 +101,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.AutoscaleNotification +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.AutoscaleNotification ## NOTES diff --git a/src/Monitor/Monitor/help/New-AzAutoscaleProfileObject.md b/src/Monitor/Monitor/help/New-AzAutoscaleProfileObject.md index 119e398e76ae..397703bd5256 100644 --- a/src/Monitor/Monitor/help/New-AzAutoscaleProfileObject.md +++ b/src/Monitor/Monitor/help/New-AzAutoscaleProfileObject.md @@ -1,7 +1,7 @@ --- external help file: Az.Autoscale.psm1-help.xml Module Name: Az.Monitor -online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleProfileObject +online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-azautoscaleprofileobject schema: 2.0.0 --- @@ -15,7 +15,7 @@ Create an in-memory object for AutoscaleProfile. ``` New-AzAutoscaleProfileObject -CapacityDefault -CapacityMaximum -CapacityMinimum -Name -Rule [-FixedDateEnd ] [-FixedDateStart ] - [-FixedDateTimeZone ] [-RecurrenceFrequency ] [-ScheduleDay ] + [-FixedDateTimeZone ] [-RecurrenceFrequency ] [-ScheduleDay ] [-ScheduleHour ] [-ScheduleMinute ] [-ScheduleTimeZone ] [] ``` @@ -161,7 +161,7 @@ For example, to set a daily schedule, set **schedule** to every day of the week. The frequency property specifies that the schedule is repeated weekly. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.RecurrenceFrequency +Type: System.String Parameter Sets: (All) Aliases: @@ -175,10 +175,9 @@ Accept wildcard characters: False ### -Rule the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified. -To construct, see NOTES section for RULE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IScaleRule[] +Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IScaleRule[] Parameter Sets: (All) Aliases: @@ -268,7 +267,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.AutoscaleProfile +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.AutoscaleProfile ## NOTES diff --git a/src/Monitor/Monitor/help/New-AzAutoscaleScaleRuleMetricDimensionObject.md b/src/Monitor/Monitor/help/New-AzAutoscaleScaleRuleMetricDimensionObject.md index 5e0191994fc2..94ed4cd7d59e 100644 --- a/src/Monitor/Monitor/help/New-AzAutoscaleScaleRuleMetricDimensionObject.md +++ b/src/Monitor/Monitor/help/New-AzAutoscaleScaleRuleMetricDimensionObject.md @@ -1,7 +1,7 @@ --- external help file: Az.Autoscale.psm1-help.xml Module Name: Az.Monitor -online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleScaleRuleMetricDimensionObject +online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-azautoscalescalerulemetricdimensionobject schema: 2.0.0 --- @@ -13,8 +13,7 @@ Create an in-memory object for ScaleRuleMetricDimension. ## SYNTAX ``` -New-AzAutoscaleScaleRuleMetricDimensionObject -DimensionName - -Operator -Value +New-AzAutoscaleScaleRuleMetricDimensionObject -DimensionName -Operator -Value [] ``` @@ -54,7 +53,7 @@ Only 'Equals' and 'NotEquals' are supported. 'NotEquals' being not equal to all of the values. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleRuleMetricDimensionOperationType +Type: System.String Parameter Sets: (All) Aliases: @@ -88,7 +87,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleRuleMetricDimension +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.ScaleRuleMetricDimension ## NOTES diff --git a/src/Monitor/Monitor/help/New-AzAutoscaleScaleRuleObject.md b/src/Monitor/Monitor/help/New-AzAutoscaleScaleRuleObject.md index cd82469fcbdb..bed47f14fe68 100644 --- a/src/Monitor/Monitor/help/New-AzAutoscaleScaleRuleObject.md +++ b/src/Monitor/Monitor/help/New-AzAutoscaleScaleRuleObject.md @@ -1,7 +1,7 @@ --- external help file: Az.Autoscale.psm1-help.xml Module Name: Az.Monitor -online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleScaleRuleObject +online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-azautoscalescaleruleobject schema: 2.0.0 --- @@ -14,10 +14,9 @@ Create an in-memory object for ScaleRule. ``` New-AzAutoscaleScaleRuleObject -MetricTriggerMetricName -MetricTriggerMetricResourceUri - -MetricTriggerOperator -MetricTriggerStatistic - -MetricTriggerThreshold -MetricTriggerTimeAggregation - -MetricTriggerTimeGrain -MetricTriggerTimeWindow -ScaleActionCooldown - -ScaleActionDirection -ScaleActionType + -MetricTriggerOperator -MetricTriggerStatistic -MetricTriggerThreshold + -MetricTriggerTimeAggregation -MetricTriggerTimeGrain -MetricTriggerTimeWindow + -ScaleActionCooldown -ScaleActionDirection -ScaleActionType [-MetricTriggerDimension ] [-MetricTriggerDividePerInstance ] [-MetricTriggerMetricNamespace ] [-MetricTriggerMetricResourceLocation ] [-ScaleActionValue ] [] @@ -41,10 +40,9 @@ Create scale rule object ### -MetricTriggerDimension List of dimension conditions. For example: [{"DimensionName":"AppName","Operator":"Equals","Values":["App1"]},{"DimensionName":"Deployment","Operator":"Equals","Values":["default"]}]. -To construct, see NOTES section for METRICTRIGGERDIMENSION properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IScaleRuleMetricDimension[] +Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IScaleRuleMetricDimension[] Parameter Sets: (All) Aliases: @@ -134,7 +132,7 @@ Accept wildcard characters: False the operator that is used to compare the metric data and the threshold. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ComparisonOperationType +Type: System.String Parameter Sets: (All) Aliases: @@ -150,7 +148,7 @@ the metric statistic type. How the metrics from multiple instances are combined. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.MetricStatisticType +Type: System.String Parameter Sets: (All) Aliases: @@ -182,7 +180,7 @@ How the data that is collected should be combined over time. The default value is Average. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.TimeAggregationType +Type: System.String Parameter Sets: (All) Aliases: @@ -248,7 +246,7 @@ the scale direction. Whether the scaling action increases or decreases the number of instances. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleDirection +Type: System.String Parameter Sets: (All) Aliases: @@ -263,7 +261,7 @@ Accept wildcard characters: False the type of action that should occur when the scale rule fires. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleType +Type: System.String Parameter Sets: (All) Aliases: @@ -298,7 +296,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleRule +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.ScaleRule ## NOTES diff --git a/src/Monitor/Monitor/help/New-AzAutoscaleSetting.md b/src/Monitor/Monitor/help/New-AzAutoscaleSetting.md index 8922fcabc909..38bb65da661b 100644 --- a/src/Monitor/Monitor/help/New-AzAutoscaleSetting.md +++ b/src/Monitor/Monitor/help/New-AzAutoscaleSetting.md @@ -8,28 +8,35 @@ schema: 2.0.0 # New-AzAutoscaleSetting ## SYNOPSIS -Creates or updates an autoscale setting. +Create an autoscale setting. ## SYNTAX -### CreateViaIdentity (Default) +### CreateExpanded (Default) ``` -New-AzAutoscaleSetting -InputObject -Parameter +New-AzAutoscaleSetting -Name -ResourceGroupName [-SubscriptionId ] -Location + -Profile [-Enabled] [-Notification ] + [-PredictiveAutoscalePolicyScaleLookAheadTime ] [-PredictiveAutoscalePolicyScaleMode ] + [-PropertiesName ] [-Tag ] [-TargetResourceLocation ] [-TargetResourceUri ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` -### CreateExpanded +### CreateViaJsonFilePath ``` -New-AzAutoscaleSetting -Name -ResourceGroupName [-SubscriptionId ] -Location - -Profile [-Enabled] [-Notification ] - [-PredictiveAutoscalePolicyScaleLookAheadTime ] - [-PredictiveAutoscalePolicyScaleMode ] [-PropertiesName ] - [-Tag ] [-TargetResourceLocation ] [-TargetResourceUri ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] +New-AzAutoscaleSetting -Name -ResourceGroupName [-SubscriptionId ] + -JsonFilePath [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + +### CreateViaJsonString +``` +New-AzAutoscaleSetting -Name -ResourceGroupName [-SubscriptionId ] + -JsonString [-DefaultProfile ] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION -Creates or updates an autoscale setting. +Create an autoscale setting. ## EXAMPLES @@ -80,19 +87,33 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. +### -JsonFilePath +Path of Json file supplied to the Create operation ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleIdentity -Parameter Sets: CreateViaIdentity +Type: System.String +Parameter Sets: CreateViaJsonFilePath Aliases: Required: True Position: Named Default value: None -Accept pipeline input: True (ByValue) +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False Accept wildcard characters: False ``` @@ -116,7 +137,7 @@ The autoscale setting name. ```yaml Type: System.String -Parameter Sets: CreateExpanded +Parameter Sets: (All) Aliases: AutoscaleSettingName Required: True @@ -128,10 +149,9 @@ Accept wildcard characters: False ### -Notification the collection of notifications. -To construct, see NOTES section for NOTIFICATION properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleNotification[] +Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleNotification[] Parameter Sets: CreateExpanded Aliases: @@ -142,22 +162,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Parameter -The autoscale setting resource. -To construct, see NOTES section for PARAMETER properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleSettingResource -Parameter Sets: CreateViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -PredictiveAutoscalePolicyScaleLookAheadTime the amount of time to specify by which instances are launched in advance. It must be between 1 minute and 60 minutes in ISO 8601 format. @@ -178,7 +182,7 @@ Accept wildcard characters: False the predictive autoscale mode ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.PredictiveAutoscalePolicyScaleMode +Type: System.String Parameter Sets: CreateExpanded Aliases: @@ -192,10 +196,9 @@ Accept wildcard characters: False ### -Profile the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified. -To construct, see NOTES section for PROFILE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleProfile[] +Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleProfile[] Parameter Sets: CreateExpanded Aliases: @@ -227,7 +230,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: CreateExpanded +Parameter Sets: (All) Aliases: Required: True @@ -242,7 +245,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: CreateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -336,13 +339,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleSettingResource - -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleIdentity - ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleSettingResource +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleSettingResource ## NOTES diff --git a/src/Monitor/Monitor/help/New-AzAutoscaleWebhookNotificationObject.md b/src/Monitor/Monitor/help/New-AzAutoscaleWebhookNotificationObject.md index 81fc988ad856..2f221a7589be 100644 --- a/src/Monitor/Monitor/help/New-AzAutoscaleWebhookNotificationObject.md +++ b/src/Monitor/Monitor/help/New-AzAutoscaleWebhookNotificationObject.md @@ -1,7 +1,7 @@ --- external help file: Az.Autoscale.psm1-help.xml Module Name: Az.Monitor -online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleWebhookNotificationObject +online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-azautoscalewebhooknotificationobject schema: 2.0.0 --- @@ -34,10 +34,9 @@ Create webhook notification object ### -Property a property bag of settings. This value can be empty. -To construct, see NOTES section for PROPERTY properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IWebhookNotificationProperties +Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IWebhookNotificationProperties Parameter Sets: (All) Aliases: @@ -70,7 +69,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.WebhookNotification +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.WebhookNotification ## NOTES diff --git a/src/Monitor/Monitor/help/Remove-AzAutoscaleSetting.md b/src/Monitor/Monitor/help/Remove-AzAutoscaleSetting.md index dcf9bbd9043e..81428ac70532 100644 --- a/src/Monitor/Monitor/help/Remove-AzAutoscaleSetting.md +++ b/src/Monitor/Monitor/help/Remove-AzAutoscaleSetting.md @@ -57,7 +57,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleIdentity diff --git a/src/Monitor/Monitor/help/Update-AzAutoscaleSetting.md b/src/Monitor/Monitor/help/Update-AzAutoscaleSetting.md index 25b0b4a7e035..28bbeb53b78c 100644 --- a/src/Monitor/Monitor/help/Update-AzAutoscaleSetting.md +++ b/src/Monitor/Monitor/help/Update-AzAutoscaleSetting.md @@ -17,19 +17,19 @@ To update other fields use the CreateOrUpdate method. ``` Update-AzAutoscaleSetting -Name -ResourceGroupName [-SubscriptionId ] [-Enabled ] [-Notification ] - [-PredictiveAutoscalePolicyScaleLookAheadTime ] - [-PredictiveAutoscalePolicyScaleMode ] [-Profile ] - [-Tag ] [-TargetResourceLocation ] [-TargetResourceUri ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-PredictiveAutoscalePolicyScaleLookAheadTime ] [-PredictiveAutoscalePolicyScaleMode ] + [-Profile ] [-Tag ] [-TargetResourceLocation ] + [-TargetResourceUri ] [-DefaultProfile ] [-WhatIf] + [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzAutoscaleSetting -InputObject [-Enabled ] [-Notification ] [-PredictiveAutoscalePolicyScaleLookAheadTime ] - [-PredictiveAutoscalePolicyScaleMode ] [-Profile ] - [-Tag ] [-TargetResourceLocation ] [-TargetResourceUri ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-PredictiveAutoscalePolicyScaleMode ] [-Profile ] [-Tag ] + [-TargetResourceLocation ] [-TargetResourceUri ] [-DefaultProfile ] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -115,7 +115,7 @@ the collection of notifications. To construct, see NOTES section for NOTIFICATION properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleNotification[] +Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleNotification[] Parameter Sets: (All) Aliases: @@ -146,7 +146,7 @@ Accept wildcard characters: False the predictive autoscale mode ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.PredictiveAutoscalePolicyScaleMode +Type: System.String Parameter Sets: (All) Aliases: @@ -163,7 +163,7 @@ A maximum of 20 profiles can be specified. To construct, see NOTES section for PROFILE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleProfile[] +Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleProfile[] Parameter Sets: (All) Aliases: @@ -290,7 +290,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleSettingResource +### Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleSettingResource ## NOTES diff --git a/tools/StaticAnalysis/Exceptions/Az.Monitor/BreakingChangeIssues.csv b/tools/StaticAnalysis/Exceptions/Az.Monitor/BreakingChangeIssues.csv new file mode 100644 index 000000000000..64b910419c4e --- /dev/null +++ b/tools/StaticAnalysis/Exceptions/Az.Monitor/BreakingChangeIssues.csv @@ -0,0 +1,54 @@ +"Module","ClassName","Target","Severity","ProblemId","Description","Remediation" +"Az.Monitor","Get-AzAutoscalePredictiveMetric","Get-AzAutoscalePredictiveMetric","0","3000","The type of property 'Data' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IPredictiveResponse' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IPredictiveValue' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IPredictiveValue]'.","Change the type of property 'Data' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IPredictiveValue'." +"Az.Monitor","Get-AzAutoscaleSetting","Get-AzAutoscaleSetting","0","3000","The type of property 'Notification' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleSettingResource' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleNotification' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleNotification]'.","Change the type of property 'Notification' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleNotification'." +"Az.Monitor","Get-AzAutoscaleSetting","Get-AzAutoscaleSetting","0","3000","The type of property 'Profile' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleSettingResource' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleProfile' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleProfile]'.","Change the type of property 'Profile' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleProfile'." +"Az.Monitor","Get-AzAutoscaleSetting","Get-AzAutoscaleSetting","0","3000","The type of property 'PredictiveAutoscalePolicyScaleMode' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleSettingResource' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.PredictiveAutoscalePolicyScaleMode]' to 'System.String'.","Change the type of property 'PredictiveAutoscalePolicyScaleMode' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.PredictiveAutoscalePolicyScaleMode]'." +"Az.Monitor","New-AzAutoscaleNotificationObject","New-AzAutoscaleNotificationObject","0","3000","The type of property 'Webhook' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.AutoscaleNotification' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IWebhookNotification' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IWebhookNotification]'.","Change the type of property 'Webhook' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IWebhookNotification'." +"Az.Monitor","New-AzAutoscaleNotificationObject","New-AzAutoscaleNotificationObject","0","3000","The type of property 'EmailCustomEmail' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.AutoscaleNotification' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'EmailCustomEmail' back to 'System.String[]'." +"Az.Monitor","New-AzAutoscaleProfileObject","New-AzAutoscaleProfileObject","0","3000","The type of property 'Rule' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.AutoscaleProfile' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IScaleRule' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IScaleRule]'.","Change the type of property 'Rule' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IScaleRule'." +"Az.Monitor","New-AzAutoscaleProfileObject","New-AzAutoscaleProfileObject","0","3000","The type of property 'ScheduleHour' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.AutoscaleProfile' has changed from 'System.Int32[]' to 'System.Collections.Generic.List`1[System.Int32]'.","Change the type of property 'ScheduleHour' back to 'System.Int32[]'." +"Az.Monitor","New-AzAutoscaleProfileObject","New-AzAutoscaleProfileObject","0","3000","The type of property 'ScheduleMinute' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.AutoscaleProfile' has changed from 'System.Int32[]' to 'System.Collections.Generic.List`1[System.Int32]'.","Change the type of property 'ScheduleMinute' back to 'System.Int32[]'." +"Az.Monitor","New-AzAutoscaleProfileObject","New-AzAutoscaleProfileObject","0","3000","The type of property 'RecurrenceFrequency' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.AutoscaleProfile' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.RecurrenceFrequency]' to 'System.String'.","Change the type of property 'RecurrenceFrequency' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.RecurrenceFrequency]'." +"Az.Monitor","New-AzAutoscaleProfileObject","New-AzAutoscaleProfileObject","0","3000","The type of property 'ScheduleDay' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.AutoscaleProfile' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'ScheduleDay' back to 'System.String[]'." +"Az.Monitor","New-AzAutoscaleProfileObject","New-AzAutoscaleProfileObject","0","3000","The type of property 'MetricTriggerDimension' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IScaleRule' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IScaleRuleMetricDimension' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IScaleRuleMetricDimension]'.","Change the type of property 'MetricTriggerDimension' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IScaleRuleMetricDimension'." +"Az.Monitor","New-AzAutoscaleProfileObject","New-AzAutoscaleProfileObject","0","3000","The type of property 'MetricTriggerOperator' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IScaleRule' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ComparisonOperationType' to 'System.String'.","Change the type of property 'MetricTriggerOperator' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ComparisonOperationType'." +"Az.Monitor","New-AzAutoscaleProfileObject","New-AzAutoscaleProfileObject","0","3000","The type of property 'MetricTriggerStatistic' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IScaleRule' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.MetricStatisticType' to 'System.String'.","Change the type of property 'MetricTriggerStatistic' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.MetricStatisticType'." +"Az.Monitor","New-AzAutoscaleProfileObject","New-AzAutoscaleProfileObject","0","3000","The type of property 'ScaleActionDirection' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IScaleRule' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleDirection' to 'System.String'.","Change the type of property 'ScaleActionDirection' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleDirection'." +"Az.Monitor","New-AzAutoscaleProfileObject","New-AzAutoscaleProfileObject","0","3000","The type of property 'ScaleActionType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IScaleRule' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleType' to 'System.String'.","Change the type of property 'ScaleActionType' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleType'." +"Az.Monitor","New-AzAutoscaleProfileObject","New-AzAutoscaleProfileObject","0","3000","The type of property 'MetricTriggerTimeAggregation' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IScaleRule' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.TimeAggregationType' to 'System.String'.","Change the type of property 'MetricTriggerTimeAggregation' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.TimeAggregationType'." +"Az.Monitor","New-AzAutoscaleProfileObject","New-AzAutoscaleProfileObject","0","2020","The cmdlet 'New-AzAutoscaleProfileObject' no longer supports the type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.RecurrenceFrequency' for parameter 'RecurrenceFrequency'.","Change the type for parameter 'RecurrenceFrequency' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.RecurrenceFrequency'." +"Az.Monitor","New-AzAutoscaleScaleRuleMetricDimensionObject","New-AzAutoscaleScaleRuleMetricDimensionObject","0","3000","The type of property 'Operator' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleRuleMetricDimension' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleRuleMetricDimensionOperationType' to 'System.String'.","Change the type of property 'Operator' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleRuleMetricDimensionOperationType'." +"Az.Monitor","New-AzAutoscaleScaleRuleMetricDimensionObject","New-AzAutoscaleScaleRuleMetricDimensionObject","0","3000","The type of property 'Value' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleRuleMetricDimension' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'Value' back to 'System.String[]'." +"Az.Monitor","New-AzAutoscaleScaleRuleMetricDimensionObject","New-AzAutoscaleScaleRuleMetricDimensionObject","0","2020","The cmdlet 'New-AzAutoscaleScaleRuleMetricDimensionObject' no longer supports the type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleRuleMetricDimensionOperationType' for parameter 'Operator'.","Change the type for parameter 'Operator' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleRuleMetricDimensionOperationType'." +"Az.Monitor","New-AzAutoscaleScaleRuleObject","New-AzAutoscaleScaleRuleObject","0","3000","The type of property 'MetricTriggerDimension' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleRule' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IScaleRuleMetricDimension' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IScaleRuleMetricDimension]'.","Change the type of property 'MetricTriggerDimension' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IScaleRuleMetricDimension'." +"Az.Monitor","New-AzAutoscaleScaleRuleObject","New-AzAutoscaleScaleRuleObject","0","3000","The type of property 'MetricTriggerOperator' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleRule' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ComparisonOperationType' to 'System.String'.","Change the type of property 'MetricTriggerOperator' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ComparisonOperationType'." +"Az.Monitor","New-AzAutoscaleScaleRuleObject","New-AzAutoscaleScaleRuleObject","0","3000","The type of property 'MetricTriggerStatistic' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleRule' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.MetricStatisticType' to 'System.String'.","Change the type of property 'MetricTriggerStatistic' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.MetricStatisticType'." +"Az.Monitor","New-AzAutoscaleScaleRuleObject","New-AzAutoscaleScaleRuleObject","0","3000","The type of property 'ScaleActionDirection' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleRule' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleDirection' to 'System.String'.","Change the type of property 'ScaleActionDirection' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleDirection'." +"Az.Monitor","New-AzAutoscaleScaleRuleObject","New-AzAutoscaleScaleRuleObject","0","3000","The type of property 'ScaleActionType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleRule' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleType' to 'System.String'.","Change the type of property 'ScaleActionType' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleType'." +"Az.Monitor","New-AzAutoscaleScaleRuleObject","New-AzAutoscaleScaleRuleObject","0","3000","The type of property 'MetricTriggerTimeAggregation' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleRule' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.TimeAggregationType' to 'System.String'.","Change the type of property 'MetricTriggerTimeAggregation' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.TimeAggregationType'." +"Az.Monitor","New-AzAutoscaleScaleRuleObject","New-AzAutoscaleScaleRuleObject","0","2020","The cmdlet 'New-AzAutoscaleScaleRuleObject' no longer supports the type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ComparisonOperationType' for parameter 'MetricTriggerOperator'.","Change the type for parameter 'MetricTriggerOperator' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ComparisonOperationType'." +"Az.Monitor","New-AzAutoscaleScaleRuleObject","New-AzAutoscaleScaleRuleObject","0","2020","The cmdlet 'New-AzAutoscaleScaleRuleObject' no longer supports the type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.MetricStatisticType' for parameter 'MetricTriggerStatistic'.","Change the type for parameter 'MetricTriggerStatistic' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.MetricStatisticType'." +"Az.Monitor","New-AzAutoscaleScaleRuleObject","New-AzAutoscaleScaleRuleObject","0","2020","The cmdlet 'New-AzAutoscaleScaleRuleObject' no longer supports the type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.TimeAggregationType' for parameter 'MetricTriggerTimeAggregation'.","Change the type for parameter 'MetricTriggerTimeAggregation' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.TimeAggregationType'." +"Az.Monitor","New-AzAutoscaleScaleRuleObject","New-AzAutoscaleScaleRuleObject","0","2020","The cmdlet 'New-AzAutoscaleScaleRuleObject' no longer supports the type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleDirection' for parameter 'ScaleActionDirection'.","Change the type for parameter 'ScaleActionDirection' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleDirection'." +"Az.Monitor","New-AzAutoscaleScaleRuleObject","New-AzAutoscaleScaleRuleObject","0","2020","The cmdlet 'New-AzAutoscaleScaleRuleObject' no longer supports the type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleType' for parameter 'ScaleActionType'.","Change the type for parameter 'ScaleActionType' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleType'." +"Az.Monitor","New-AzAutoscaleScaleRuleObject","New-AzAutoscaleScaleRuleObject","0","3000","The type of property 'Operator' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IScaleRuleMetricDimension' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleRuleMetricDimensionOperationType' to 'System.String'.","Change the type of property 'Operator' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleRuleMetricDimensionOperationType'." +"Az.Monitor","New-AzAutoscaleScaleRuleObject","New-AzAutoscaleScaleRuleObject","0","3000","The type of property 'Value' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IScaleRuleMetricDimension' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'Value' back to 'System.String[]'." +"Az.Monitor","New-AzAutoscaleSetting","New-AzAutoscaleSetting","0","3000","The type of property 'Notification' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleSettingResource' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleNotification' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleNotification]'.","Change the type of property 'Notification' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleNotification'." +"Az.Monitor","New-AzAutoscaleSetting","New-AzAutoscaleSetting","0","3000","The type of property 'Profile' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleSettingResource' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleProfile' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleProfile]'.","Change the type of property 'Profile' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleProfile'." +"Az.Monitor","New-AzAutoscaleSetting","New-AzAutoscaleSetting","0","3000","The type of property 'PredictiveAutoscalePolicyScaleMode' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleSettingResource' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.PredictiveAutoscalePolicyScaleMode]' to 'System.String'.","Change the type of property 'PredictiveAutoscalePolicyScaleMode' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.PredictiveAutoscalePolicyScaleMode]'." +"Az.Monitor","New-AzAutoscaleSetting","New-AzAutoscaleSetting","0","1060","The parameter set 'CreateViaIdentity' for cmdlet 'New-AzAutoscaleSetting' is no longer the default parameter set.","Change the default parameter for cmdlet 'New-AzAutoscaleSetting' back to 'CreateViaIdentity'." +"Az.Monitor","New-AzAutoscaleSetting","New-AzAutoscaleSetting","0","3000","The type of property 'Rule' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleProfile' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IScaleRule' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IScaleRule]'.","Change the type of property 'Rule' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IScaleRule'." +"Az.Monitor","New-AzAutoscaleSetting","New-AzAutoscaleSetting","0","3000","The type of property 'ScheduleHour' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleProfile' has changed from 'System.Int32[]' to 'System.Collections.Generic.List`1[System.Int32]'.","Change the type of property 'ScheduleHour' back to 'System.Int32[]'." +"Az.Monitor","New-AzAutoscaleSetting","New-AzAutoscaleSetting","0","3000","The type of property 'ScheduleMinute' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleProfile' has changed from 'System.Int32[]' to 'System.Collections.Generic.List`1[System.Int32]'.","Change the type of property 'ScheduleMinute' back to 'System.Int32[]'." +"Az.Monitor","New-AzAutoscaleSetting","New-AzAutoscaleSetting","0","3000","The type of property 'RecurrenceFrequency' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleProfile' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.RecurrenceFrequency]' to 'System.String'.","Change the type of property 'RecurrenceFrequency' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.RecurrenceFrequency]'." +"Az.Monitor","New-AzAutoscaleSetting","New-AzAutoscaleSetting","0","3000","The type of property 'ScheduleDay' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleProfile' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'ScheduleDay' back to 'System.String[]'." +"Az.Monitor","New-AzAutoscaleSetting","New-AzAutoscaleSetting","0","3000","The type of property 'Webhook' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleNotification' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IWebhookNotification' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IWebhookNotification]'.","Change the type of property 'Webhook' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IWebhookNotification'." +"Az.Monitor","New-AzAutoscaleSetting","New-AzAutoscaleSetting","0","3000","The type of property 'EmailCustomEmail' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleNotification' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'.","Change the type of property 'EmailCustomEmail' back to 'System.String[]'." +"Az.Monitor","New-AzAutoscaleSetting","New-AzAutoscaleSetting","0","2020","The cmdlet 'New-AzAutoscaleSetting' no longer supports the type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.PredictiveAutoscalePolicyScaleMode' for parameter 'PredictiveAutoscalePolicyScaleMode'.","Change the type for parameter 'PredictiveAutoscalePolicyScaleMode' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.PredictiveAutoscalePolicyScaleMode'." +"Az.Monitor","New-AzAutoscaleSetting","New-AzAutoscaleSetting","0","2000","The cmdlet 'New-AzAutoscaleSetting' no longer supports the parameter 'Parameter' and no alias was found for the original parameter name.","Add the parameter 'Parameter' back to the cmdlet 'New-AzAutoscaleSetting', or add an alias to the original parameter name." +"Az.Monitor","New-AzAutoscaleSetting","New-AzAutoscaleSetting","0","1050","The parameter set 'CreateViaIdentity' for cmdlet 'New-AzAutoscaleSetting' has been removed.","Add parameter set 'CreateViaIdentity' back to cmdlet 'New-AzAutoscaleSetting'." +"Az.Monitor","New-AzAutoscaleSetting","New-AzAutoscaleSetting","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzAutoscaleSetting' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzAutoscaleSetting'." +"Az.Monitor","Update-AzAutoscaleSetting","Update-AzAutoscaleSetting","0","3000","The type of property 'Notification' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleSettingResource' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleNotification' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleNotification]'.","Change the type of property 'Notification' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleNotification'." +"Az.Monitor","Update-AzAutoscaleSetting","Update-AzAutoscaleSetting","0","3000","The type of property 'Profile' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleSettingResource' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleProfile' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleProfile]'.","Change the type of property 'Profile' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleProfile'." +"Az.Monitor","Update-AzAutoscaleSetting","Update-AzAutoscaleSetting","0","3000","The type of property 'PredictiveAutoscalePolicyScaleMode' of type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleSettingResource' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.PredictiveAutoscalePolicyScaleMode]' to 'System.String'.","Change the type of property 'PredictiveAutoscalePolicyScaleMode' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.PredictiveAutoscalePolicyScaleMode]'." +"Az.Monitor","Update-AzAutoscaleSetting","Update-AzAutoscaleSetting","0","2020","The cmdlet 'Update-AzAutoscaleSetting' no longer supports the type 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.PredictiveAutoscalePolicyScaleMode' for parameter 'PredictiveAutoscalePolicyScaleMode'.","Change the type for parameter 'PredictiveAutoscalePolicyScaleMode' back to 'Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.PredictiveAutoscalePolicyScaleMode'."