diff --git a/src/Monitor/Autoscale.Autorest/Properties/AssemblyInfo.cs b/src/Monitor/Autoscale.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..53e14615e3f4 --- /dev/null +++ b/src/Monitor/Autoscale.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the Apache License, Version 2.0 (the ""License""); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an ""AS IS"" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +// is regenerated. + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Autoscale")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("6.0.2")] +[assembly: System.Reflection.AssemblyVersionAttribute("6.0.2")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] + diff --git a/src/Monitor/Autoscale.Autorest/README.md b/src/Monitor/Autoscale.Autorest/README.md index 48470da35a48..12c363f0fe34 100644 --- a/src/Monitor/Autoscale.Autorest/README.md +++ b/src/Monitor/Autoscale.Autorest/README.md @@ -39,22 +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: # 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) remove: true - where: verb: Set @@ -67,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 @@ -101,9 +84,9 @@ directive: } - 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/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-AzAutoscaleNotificationObject.ps1 b/src/Monitor/Autoscale.Autorest/custom/autogen-model-cmdlets/New-AzAutoscaleNotificationObject.ps1 index e1bc1df5a662..e8ccacf78c8c 100644 --- a/src/Monitor/Autoscale.Autorest/custom/autogen-model-cmdlets/New-AzAutoscaleNotificationObject.ps1 +++ b/src/Monitor/Autoscale.Autorest/custom/autogen-model-cmdlets/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( @@ -40,12 +41,12 @@ function New-AzAutoscaleNotificationObject { [bool] $EmailSendToSubscriptionCoAdministrator, [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/autogen-model-cmdlets/New-AzAutoscaleProfileObject.ps1 b/src/Monitor/Autoscale.Autorest/custom/autogen-model-cmdlets/New-AzAutoscaleProfileObject.ps1 index 7db1d2c17390..6fbe4b993cd1 100644 --- a/src/Monitor/Autoscale.Autorest/custom/autogen-model-cmdlets/New-AzAutoscaleProfileObject.ps1 +++ b/src/Monitor/Autoscale.Autorest/custom/autogen-model-cmdlets/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,11 +53,11 @@ 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, [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, [Parameter(HelpMessage="the collection of days that the profile takes effect on. Possible values are Sunday through Saturday.")] [string[]] @@ -73,7 +74,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/autogen-model-cmdlets/New-AzAutoscaleScaleRuleMetricDimensionObject.ps1 b/src/Monitor/Autoscale.Autorest/custom/autogen-model-cmdlets/New-AzAutoscaleScaleRuleMetricDimensionObject.ps1 index 0b9141f5b963..6e7a91b3ce9c 100644 --- a/src/Monitor/Autoscale.Autorest/custom/autogen-model-cmdlets/New-AzAutoscaleScaleRuleMetricDimensionObject.ps1 +++ b/src/Monitor/Autoscale.Autorest/custom/autogen-model-cmdlets/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, [Parameter(Mandatory, HelpMessage="list of dimension values. For example: [`"App1`",`"App2`"].")] [string[]] @@ -43,7 +44,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/autogen-model-cmdlets/New-AzAutoscaleScaleRuleObject.ps1 b/src/Monitor/Autoscale.Autorest/custom/autogen-model-cmdlets/New-AzAutoscaleScaleRuleObject.ps1 index 880f226f961d..b20ff81f9067 100644 --- a/src/Monitor/Autoscale.Autorest/custom/autogen-model-cmdlets/New-AzAutoscaleScaleRuleObject.ps1 +++ b/src/Monitor/Autoscale.Autorest/custom/autogen-model-cmdlets/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( [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/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 55ffda565d75..6696a1147838 100644 --- a/src/Monitor/Autoscale.Autorest/docs/Az.Autoscale.md +++ b/src/Monitor/Autoscale.Autorest/docs/Az.Autoscale.md @@ -1,6 +1,6 @@ --- Module Name: Az.Autoscale -Module Guid: e83a8252-8dcb-4f34-8fbf-4ded92174cad +Module Guid: 4143e1e8-0843-4db4-b364-011977121247 Download Help Link: https://learn.microsoft.com/powershell/module/az.autoscale Help Version: 1.0.0.0 Locale: en-US @@ -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..513da2056698 100644 --- a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleSetting.md +++ b/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleSetting.md @@ -8,14 +8,17 @@ schema: 2.0.0 # New-AzAutoscaleSetting ## SYNOPSIS -Creates or updates an autoscale setting. +Create an autoscale setting. ## SYNTAX -### CreateViaIdentity (Default) +### CreateViaIdentityExpanded (Default) ``` -New-AzAutoscaleSetting -InputObject -Parameter - [-DefaultProfile ] [-Confirm] [-WhatIf] [] +New-AzAutoscaleSetting -InputObject -Location -Profile + [-Enabled] [-Notification ] + [-PredictiveAutoscalePolicyScaleLookAheadTime ] [-PredictiveAutoscalePolicyScaleMode ] + [-PropertiesName ] [-Tag ] [-TargetResourceLocation ] + [-TargetResourceUri ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ### CreateExpanded @@ -23,13 +26,13 @@ New-AzAutoscaleSetting -InputObject -Parameter -ResourceGroupName -Location -Profile [-SubscriptionId ] [-Enabled] [-Notification ] [-PredictiveAutoscalePolicyScaleLookAheadTime ] - [-PredictiveAutoscalePolicyScaleMode ] [-PropertiesName ] - [-Tag ] [-TargetResourceLocation ] [-TargetResourceUri ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-PredictiveAutoscalePolicyScaleMode ] [-PropertiesName ] [-Tag ] + [-TargetResourceLocation ] [-TargetResourceUri ] [-DefaultProfile ] [-Confirm] + [-WhatIf] [] ``` ## DESCRIPTION -Creates or updates an autoscale setting. +Create an autoscale setting. ## EXAMPLES @@ -70,7 +73,7 @@ The default value is 'false'. ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: CreateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -82,11 +85,10 @@ 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 -Parameter Sets: CreateViaIdentity +Parameter Sets: CreateViaIdentityExpanded Aliases: Required: True @@ -101,7 +103,7 @@ Resource location ```yaml Type: System.String -Parameter Sets: CreateExpanded +Parameter Sets: (All) Aliases: Required: True @@ -128,11 +130,10 @@ 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[] -Parameter Sets: CreateExpanded +Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleNotification[] +Parameter Sets: (All) Aliases: Required: False @@ -142,29 +143,13 @@ 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. ```yaml Type: System.TimeSpan -Parameter Sets: CreateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -178,8 +163,8 @@ Accept wildcard characters: False the predictive autoscale mode ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.PredictiveAutoscalePolicyScaleMode -Parameter Sets: CreateExpanded +Type: System.String +Parameter Sets: (All) Aliases: Required: False @@ -192,11 +177,10 @@ 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[] -Parameter Sets: CreateExpanded +Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleProfile[] +Parameter Sets: (All) Aliases: Required: True @@ -211,7 +195,7 @@ the name of the autoscale setting. ```yaml Type: System.String -Parameter Sets: CreateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -260,7 +244,7 @@ Each tag must have a key no greater in length than 128 characters and a value no ```yaml Type: System.Collections.Hashtable -Parameter Sets: CreateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -275,7 +259,7 @@ the location of the resource that the autoscale setting should be added to. ```yaml Type: System.String -Parameter Sets: CreateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -290,7 +274,7 @@ the resource identifier of the resource that the autoscale setting should be add ```yaml Type: System.String -Parameter Sets: CreateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -336,13 +320,11 @@ 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 1349c9c69e3e..7b87f1fd7d6f 100644 --- a/src/Monitor/Autoscale.Autorest/generate-info.json +++ b/src/Monitor/Autoscale.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "1863f57c-1604-4cb9-94ca-cef9e5348acf" + "generate_Id": "8b259b14-606c-4b36-bfa4-0bdcdebc4fa7" } diff --git a/src/Monitor/Autoscale.Autorest/resources/README.md b/src/Monitor/Autoscale.Autorest/resources/README.md new file mode 100644 index 000000000000..937f07f8fec2 --- /dev/null +++ b/src/Monitor/Autoscale.Autorest/resources/README.md @@ -0,0 +1,11 @@ +# Resources +This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. + +## Info +- Modifiable: yes +- Generated: no +- Committed: yes +- Packaged: no + +## Purpose +Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file 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 ba2759d54917..b12a34dea376 100644 --- a/src/Monitor/Monitor.sln +++ b/src/Monitor/Monitor.sln @@ -39,8 +39,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ActionGroup", "..\..\gen EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ActivityLogAlert", "..\..\generated\Monitor\ActivityLogAlert.Autorest\Az.ActivityLogAlert.csproj", "{A25F7324-8E75-4640-A6B2-B904378FC7F4}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Autoscale", "..\..\generated\Monitor\Autoscale.Autorest\Az.Autoscale.csproj", "{64D875E7-2E3B-40B2-945C-B8891BC6EF41}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DiagnosticSetting", "..\..\generated\Monitor\DiagnosticSetting.Autorest\Az.DiagnosticSetting.csproj", "{32336385-5322-43AC-B6D4-B99CDB5EDA5A}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.MetricData", "..\..\generated\Monitor\MetricData.Autorest\Az.MetricData.csproj", "{03D07C16-24B8-4BC7-AA33-724B196FB5B9}" @@ -57,6 +55,10 @@ 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}") = "Autoscale.Autorest", "Autoscale.Autorest", "{0832AC06-44A1-FEDA-3879-082134F4AAB5}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Autoscale", "..\..\generated\Monitor\Autoscale.Autorest\Az.Autoscale.csproj", "{A33EF777-3D4A-4250-96C9-A4F04D002494}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -247,18 +249,6 @@ Global {A25F7324-8E75-4640-A6B2-B904378FC7F4}.Release|x64.Build.0 = Release|Any CPU {A25F7324-8E75-4640-A6B2-B904378FC7F4}.Release|x86.ActiveCfg = Release|Any CPU {A25F7324-8E75-4640-A6B2-B904378FC7F4}.Release|x86.Build.0 = Release|Any CPU - {64D875E7-2E3B-40B2-945C-B8891BC6EF41}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {64D875E7-2E3B-40B2-945C-B8891BC6EF41}.Debug|Any CPU.Build.0 = Debug|Any CPU - {64D875E7-2E3B-40B2-945C-B8891BC6EF41}.Debug|x64.ActiveCfg = Debug|Any CPU - {64D875E7-2E3B-40B2-945C-B8891BC6EF41}.Debug|x64.Build.0 = Debug|Any CPU - {64D875E7-2E3B-40B2-945C-B8891BC6EF41}.Debug|x86.ActiveCfg = Debug|Any CPU - {64D875E7-2E3B-40B2-945C-B8891BC6EF41}.Debug|x86.Build.0 = Debug|Any CPU - {64D875E7-2E3B-40B2-945C-B8891BC6EF41}.Release|Any CPU.ActiveCfg = Release|Any CPU - {64D875E7-2E3B-40B2-945C-B8891BC6EF41}.Release|Any CPU.Build.0 = Release|Any CPU - {64D875E7-2E3B-40B2-945C-B8891BC6EF41}.Release|x64.ActiveCfg = Release|Any CPU - {64D875E7-2E3B-40B2-945C-B8891BC6EF41}.Release|x64.Build.0 = Release|Any CPU - {64D875E7-2E3B-40B2-945C-B8891BC6EF41}.Release|x86.ActiveCfg = Release|Any CPU - {64D875E7-2E3B-40B2-945C-B8891BC6EF41}.Release|x86.Build.0 = Release|Any CPU {32336385-5322-43AC-B6D4-B99CDB5EDA5A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {32336385-5322-43AC-B6D4-B99CDB5EDA5A}.Debug|Any CPU.Build.0 = Debug|Any CPU {32336385-5322-43AC-B6D4-B99CDB5EDA5A}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -343,6 +333,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 + {A33EF777-3D4A-4250-96C9-A4F04D002494}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A33EF777-3D4A-4250-96C9-A4F04D002494}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A33EF777-3D4A-4250-96C9-A4F04D002494}.Debug|x64.ActiveCfg = Debug|Any CPU + {A33EF777-3D4A-4250-96C9-A4F04D002494}.Debug|x64.Build.0 = Debug|Any CPU + {A33EF777-3D4A-4250-96C9-A4F04D002494}.Debug|x86.ActiveCfg = Debug|Any CPU + {A33EF777-3D4A-4250-96C9-A4F04D002494}.Debug|x86.Build.0 = Debug|Any CPU + {A33EF777-3D4A-4250-96C9-A4F04D002494}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A33EF777-3D4A-4250-96C9-A4F04D002494}.Release|Any CPU.Build.0 = Release|Any CPU + {A33EF777-3D4A-4250-96C9-A4F04D002494}.Release|x64.ActiveCfg = Release|Any CPU + {A33EF777-3D4A-4250-96C9-A4F04D002494}.Release|x64.Build.0 = Release|Any CPU + {A33EF777-3D4A-4250-96C9-A4F04D002494}.Release|x86.ActiveCfg = Release|Any CPU + {A33EF777-3D4A-4250-96C9-A4F04D002494}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -362,5 +364,6 @@ 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} + {A33EF777-3D4A-4250-96C9-A4F04D002494} = {0832AC06-44A1-FEDA-3879-082134F4AAB5} EndGlobalSection EndGlobal diff --git a/src/Monitor/Monitor/Az.Monitor.psd1 b/src/Monitor/Monitor/Az.Monitor.psd1 index b08bdf25d62c..95919c0be188 100644 --- a/src/Monitor/Monitor/Az.Monitor.psd1 +++ b/src/Monitor/Monitor/Az.Monitor.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 4/1/2025 +# Generated on: 7/1/2025 # @{ @@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.1.0'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.1.1'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'ActionGroup.Autorest/bin/Az.ActionGroup.private.dll', diff --git a/src/Monitor/Monitor/ChangeLog.md b/src/Monitor/Monitor/ChangeLog.md index 4d0727106cc2..21cc96f06797 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.2 * Pipeline Group upgraded API version to 2024-10-01-preview 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..07bcfcdcef59 100644 --- a/src/Monitor/Monitor/help/New-AzAutoscaleSetting.md +++ b/src/Monitor/Monitor/help/New-AzAutoscaleSetting.md @@ -8,13 +8,16 @@ schema: 2.0.0 # New-AzAutoscaleSetting ## SYNOPSIS -Creates or updates an autoscale setting. +Create an autoscale setting. ## SYNTAX -### CreateViaIdentity (Default) +### CreateViaIdentityExpanded (Default) ``` -New-AzAutoscaleSetting -InputObject -Parameter +New-AzAutoscaleSetting -InputObject -Location -Profile + [-Enabled] [-Notification ] + [-PredictiveAutoscalePolicyScaleLookAheadTime ] [-PredictiveAutoscalePolicyScaleMode ] + [-PropertiesName ] [-Tag ] [-TargetResourceLocation ] [-TargetResourceUri ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` @@ -22,14 +25,13 @@ New-AzAutoscaleSetting -InputObject -Parameter -ResourceGroupName [-SubscriptionId ] -Location -Profile [-Enabled] [-Notification ] - [-PredictiveAutoscalePolicyScaleLookAheadTime ] - [-PredictiveAutoscalePolicyScaleMode ] [-PropertiesName ] - [-Tag ] [-TargetResourceLocation ] [-TargetResourceUri ] + [-PredictiveAutoscalePolicyScaleLookAheadTime ] [-PredictiveAutoscalePolicyScaleMode ] + [-PropertiesName ] [-Tag ] [-TargetResourceLocation ] [-TargetResourceUri ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Creates or updates an autoscale setting. +Create an autoscale setting. ## EXAMPLES @@ -70,7 +72,7 @@ The default value is 'false'. ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: CreateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -82,11 +84,10 @@ 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 -Parameter Sets: CreateViaIdentity +Parameter Sets: CreateViaIdentityExpanded Aliases: Required: True @@ -101,7 +102,7 @@ Resource location ```yaml Type: System.String -Parameter Sets: CreateExpanded +Parameter Sets: (All) Aliases: Required: True @@ -128,11 +129,10 @@ 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[] -Parameter Sets: CreateExpanded +Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleNotification[] +Parameter Sets: (All) Aliases: Required: False @@ -142,29 +142,13 @@ 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. ```yaml Type: System.TimeSpan -Parameter Sets: CreateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -178,8 +162,8 @@ Accept wildcard characters: False the predictive autoscale mode ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.PredictiveAutoscalePolicyScaleMode -Parameter Sets: CreateExpanded +Type: System.String +Parameter Sets: (All) Aliases: Required: False @@ -192,11 +176,10 @@ 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[] -Parameter Sets: CreateExpanded +Type: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleProfile[] +Parameter Sets: (All) Aliases: Required: True @@ -211,7 +194,7 @@ the name of the autoscale setting. ```yaml Type: System.String -Parameter Sets: CreateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -260,7 +243,7 @@ Each tag must have a key no greater in length than 128 characters and a value no ```yaml Type: System.Collections.Hashtable -Parameter Sets: CreateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -275,7 +258,7 @@ the location of the resource that the autoscale setting should be added to. ```yaml Type: System.String -Parameter Sets: CreateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -290,7 +273,7 @@ the resource identifier of the resource that the autoscale setting should be add ```yaml Type: System.String -Parameter Sets: CreateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -336,13 +319,11 @@ 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'."