Skip to content

Commit 69cdf49

Browse files
authored
[Monitor] Autorest v4 upgrade for Az.Monitor (#28843)
2 parents 37351f4 + 655c53e commit 69cdf49

File tree

114 files changed

+3544
-1130
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+3544
-1130
lines changed

src/Monitor/Autoscale.Autorest/README.md

Lines changed: 6 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -39,59 +39,13 @@ title: Autoscale
3939
module-version: 0.1.0
4040
subject-prefix: Autoscale
4141
namespace: Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale
42-
nested-object-to-string: true
43-
44-
# If there are post APIs for some kinds of actions in the RP, you may need to
45-
# uncomment following line to support viaIdentity for these post APIs
46-
# identity-correction-for-post: true
47-
48-
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
49-
use-extension:
50-
"@autorest/powershell": "3.x"
5142

5243
directive:
53-
- where:
54-
Verb: Get
55-
subject: PredictiveMetric
56-
set:
57-
breaking-change:
58-
deprecated-output-properties:
59-
- Data
60-
new-output-properties:
61-
- Data
62-
change-description: The type of the property 'Data' of type 'IPredictiveResponse' will be changed from single object to 'List'.
63-
deprecated-by-version: 7.0.0
64-
deprecated-by-azversion: 15.0.0
65-
change-effective-date: 2025/11/03
66-
- where:
67-
verb: Get|Update|New
68-
subject: AutoscaleSetting
69-
set:
70-
breaking-change:
71-
deprecated-output-properties:
72-
- Notification
73-
- Profile
74-
new-output-properties:
75-
- Notification
76-
- Profile
77-
change-description: The types of the properties 'Notification' and 'Profile' of type 'IAutoscaleSettingResource' will be changed from single object to 'List'.
78-
deprecated-by-version: 7.0.0
79-
deprecated-by-azversion: 15.0.0
80-
change-effective-date: 2025/11/03
81-
- where:
82-
parameter-name: Profile|Rule|ScheduleHour|ScheduleMinute|ScheduleDay|Webhook|EmailCustomEmail
83-
set:
84-
breaking-change:
85-
old-parameter-type: Array
86-
new-parameter-type: List
87-
deprecated-by-version: 7.0.0
88-
deprecated-by-azversion: 15.0.0
89-
change-effective-date: 2025/11/03
9044
# Following is two common directive which are normally required in all the RPs
9145
# 1. Remove the unexpanded parameter set
9246
# 2. For New-* cmdlets, ViaIdentity is not required, so CreateViaIdentityExpanded is removed as well
9347
- where:
94-
variant: ^Create$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
48+
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))|^CreateViaIdentityExpanded$
9549
remove: true
9650
- where:
9751
verb: Set
@@ -104,14 +58,6 @@ directive:
10458
verb: Update
10559
subject: AutoscaleSetting
10660
hide: true
107-
# Rename 'Equals'
108-
- from: source-file-csharp
109-
where: $
110-
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";');
111-
112-
- from: source-file-csharp
113-
where: $
114-
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";');
11561

11662
- from: swagger-document
11763
where: $.definitions.TimeWindow
@@ -138,9 +84,9 @@ directive:
13884
}
13985
# Add breaking change for them, will add back.
14086
- model-cmdlet:
141-
# - AutoscaleProfile
142-
# - ScaleRule
143-
# - AutoscaleNotification
144-
- WebhookNotification
145-
# - ScaleRuleMetricDimension
87+
- model-name: AutoscaleProfile
88+
- model-name: ScaleRule
89+
- model-name: AutoscaleNotification
90+
- model-name: WebhookNotification
91+
- model-name: ScaleRuleMetricDimension
14692
```

src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleNotificationObject.ps1

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ Create an in-memory object for AutoscaleNotification.
2121
Create an in-memory object for AutoscaleNotification.
2222
2323
.Outputs
24-
Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.AutoscaleNotification
24+
Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.AutoscaleNotification
2525
.Link
26-
https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleNotificationObject
26+
https://learn.microsoft.com/powershell/module/Az.Monitor/new-azautoscalenotificationobject
2727
#>
2828
function New-AzAutoscaleNotificationObject {
29-
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.AutoscaleNotification')]
29+
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.ModelCmdletAttribute()]
30+
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.AutoscaleNotification')]
3031
[CmdletBinding(PositionalBinding=$false)]
3132
Param(
3233
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.ParameterBreakingChange("EmailCustomEmail", "15.0.0", "7.0.0", "2025/11/03", OldParamaterType="Array", NewParameterType="List")]
@@ -41,12 +42,12 @@ function New-AzAutoscaleNotificationObject {
4142
$EmailSendToSubscriptionCoAdministrator,
4243
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.ParameterBreakingChange("Webhook", "15.0.0", "7.0.0", "2025/11/03", OldParamaterType="Array", NewParameterType="List")]
4344
[Parameter(HelpMessage="the collection of webhook notifications.")]
44-
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IWebhookNotification[]]
45+
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IWebhookNotification[]]
4546
$Webhook
4647
)
4748

4849
process {
49-
$Object = [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.AutoscaleNotification]::New()
50+
$Object = [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.AutoscaleNotification]::New()
5051

5152
if ($PSBoundParameters.ContainsKey('EmailCustomEmail')) {
5253
$Object.EmailCustomEmail = $EmailCustomEmail

src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleProfileObject.ps1

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ Create an in-memory object for AutoscaleProfile.
2121
Create an in-memory object for AutoscaleProfile.
2222
2323
.Outputs
24-
Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.AutoscaleProfile
24+
Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.AutoscaleProfile
2525
.Link
26-
https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleProfileObject
26+
https://learn.microsoft.com/powershell/module/Az.Monitor/new-azautoscaleprofileobject
2727
#>
2828
function New-AzAutoscaleProfileObject {
29-
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.AutoscaleProfile')]
29+
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.ModelCmdletAttribute()]
30+
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.AutoscaleProfile')]
3031
[CmdletBinding(PositionalBinding=$false)]
3132
Param(
3233

@@ -52,12 +53,12 @@ function New-AzAutoscaleProfileObject {
5253
[string]
5354
$Name,
5455
[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.")]
55-
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.RecurrenceFrequency])]
56-
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.RecurrenceFrequency]
56+
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.PSArgumentCompleterAttribute("None", "Second", "Minute", "Hour", "Day", "Week", "Month", "Year")]
57+
[string]
5758
$RecurrenceFrequency,
5859
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.ParameterBreakingChange("Rule", "15.0.0", "7.0.0", "2025/11/03", OldParamaterType="Array", NewParameterType="List")]
5960
[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.")]
60-
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IScaleRule[]]
61+
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IScaleRule[]]
6162
$Rule,
6263
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.ParameterBreakingChange("ScheduleDay", "15.0.0", "7.0.0", "2025/11/03", OldParamaterType="Array", NewParameterType="List")]
6364
[Parameter(HelpMessage="the collection of days that the profile takes effect on. Possible values are Sunday through Saturday.")]
@@ -77,7 +78,7 @@ function New-AzAutoscaleProfileObject {
7778
)
7879

7980
process {
80-
$Object = [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.AutoscaleProfile]::New()
81+
$Object = [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.AutoscaleProfile]::New()
8182

8283
if ($PSBoundParameters.ContainsKey('CapacityDefault')) {
8384
$Object.CapacityDefault = $CapacityDefault

src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleScaleRuleMetricDimensionObject.ps1

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,22 @@ Create an in-memory object for ScaleRuleMetricDimension.
2121
Create an in-memory object for ScaleRuleMetricDimension.
2222
2323
.Outputs
24-
Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleRuleMetricDimension
24+
Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.ScaleRuleMetricDimension
2525
.Link
26-
https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleScaleRuleMetricDimensionObject
26+
https://learn.microsoft.com/powershell/module/Az.Monitor/new-azautoscalescalerulemetricdimensionobject
2727
#>
2828
function New-AzAutoscaleScaleRuleMetricDimensionObject {
29-
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleRuleMetricDimension')]
29+
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.ModelCmdletAttribute()]
30+
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.ScaleRuleMetricDimension')]
3031
[CmdletBinding(PositionalBinding=$false)]
3132
Param(
3233

3334
[Parameter(Mandatory, HelpMessage="Name of the dimension.")]
3435
[string]
3536
$DimensionName,
3637
[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.")]
37-
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleRuleMetricDimensionOperationType])]
38-
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleRuleMetricDimensionOperationType]
38+
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.PSArgumentCompleterAttribute("Equals", "NotEquals")]
39+
[string]
3940
$Operator,
4041
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.ParameterBreakingChange("Value", "15.0.0", "7.0.0", "2025/11/03", OldParamaterType="Array", NewParameterType="List")]
4142
[Parameter(Mandatory, HelpMessage="list of dimension values. For example: [`"App1`",`"App2`"].")]
@@ -44,7 +45,7 @@ function New-AzAutoscaleScaleRuleMetricDimensionObject {
4445
)
4546

4647
process {
47-
$Object = [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleRuleMetricDimension]::New()
48+
$Object = [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.ScaleRuleMetricDimension]::New()
4849

4950
if ($PSBoundParameters.ContainsKey('DimensionName')) {
5051
$Object.DimensionName = $DimensionName

src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleScaleRuleObject.ps1

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,18 @@ Create an in-memory object for ScaleRule.
2121
Create an in-memory object for ScaleRule.
2222
2323
.Outputs
24-
Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleRule
24+
Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.ScaleRule
2525
.Link
26-
https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleScaleRuleObject
26+
https://learn.microsoft.com/powershell/module/Az.Monitor/new-azautoscalescaleruleobject
2727
#>
2828
function New-AzAutoscaleScaleRuleObject {
29-
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleRule')]
29+
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.ModelCmdletAttribute()]
30+
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.ScaleRule')]
3031
[CmdletBinding(PositionalBinding=$false)]
3132
Param(
3233
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.ParameterBreakingChange("MetricTriggerDimension", "15.0.0", "7.0.0", "2025/11/03", OldParamaterType="Array", NewParameterType="List")]
3334
[Parameter(HelpMessage="List of dimension conditions. For example: [{`"DimensionName`":`"AppName`",`"Operator`":`"Equals`",`"Values`":[`"App1`"]},{`"DimensionName`":`"Deployment`",`"Operator`":`"Equals`",`"Values`":[`"default`"]}].")]
34-
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IScaleRuleMetricDimension[]]
35+
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IScaleRuleMetricDimension[]]
3536
$MetricTriggerDimension,
3637
[Parameter(HelpMessage="a value indicating whether metric should divide per instance.")]
3738
[bool]
@@ -49,19 +50,19 @@ function New-AzAutoscaleScaleRuleObject {
4950
[string]
5051
$MetricTriggerMetricResourceUri,
5152
[Parameter(Mandatory, HelpMessage="the operator that is used to compare the metric data and the threshold.")]
52-
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ComparisonOperationType])]
53-
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ComparisonOperationType]
53+
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.PSArgumentCompleterAttribute("Equals", "NotEquals", "GreaterThan", "GreaterThanOrEqual", "LessThan", "LessThanOrEqual")]
54+
[string]
5455
$MetricTriggerOperator,
5556
[Parameter(Mandatory, HelpMessage="the metric statistic type. How the metrics from multiple instances are combined.")]
56-
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.MetricStatisticType])]
57-
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.MetricStatisticType]
57+
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.PSArgumentCompleterAttribute("Average", "Min", "Max", "Sum", "Count")]
58+
[string]
5859
$MetricTriggerStatistic,
5960
[Parameter(Mandatory, HelpMessage="the threshold of the metric that triggers the scale action.")]
6061
[double]
6162
$MetricTriggerThreshold,
6263
[Parameter(Mandatory, HelpMessage="time aggregation type. How the data that is collected should be combined over time. The default value is Average.")]
63-
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.TimeAggregationType])]
64-
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.TimeAggregationType]
64+
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.PSArgumentCompleterAttribute("Average", "Minimum", "Maximum", "Total", "Count", "Last")]
65+
[string]
6566
$MetricTriggerTimeAggregation,
6667
[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.")]
6768
[System.TimeSpan]
@@ -73,20 +74,20 @@ function New-AzAutoscaleScaleRuleObject {
7374
[System.TimeSpan]
7475
$ScaleActionCooldown,
7576
[Parameter(Mandatory, HelpMessage="the scale direction. Whether the scaling action increases or decreases the number of instances.")]
76-
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleDirection])]
77-
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleDirection]
77+
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.PSArgumentCompleterAttribute("None", "Increase", "Decrease")]
78+
[string]
7879
$ScaleActionDirection,
7980
[Parameter(Mandatory, HelpMessage="the type of action that should occur when the scale rule fires.")]
80-
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleType])]
81-
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleType]
81+
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.PSArgumentCompleterAttribute("ChangeCount", "PercentChangeCount", "ExactCount", "ServiceAllowedNextValue")]
82+
[string]
8283
$ScaleActionType,
8384
[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.")]
8485
[string]
8586
$ScaleActionValue
8687
)
8788

8889
process {
89-
$Object = [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleRule]::New()
90+
$Object = [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.ScaleRule]::New()
9091

9192
if ($PSBoundParameters.ContainsKey('MetricTriggerDimension')) {
9293
$Object.MetricTriggerDimension = $MetricTriggerDimension

src/Monitor/Autoscale.Autorest/custom/Update-AzAutoscaleSetting.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ To update other fields use the CreateOrUpdate method.
2929
.Inputs
3030
Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleIdentity
3131
.Outputs
32-
Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleSettingResource
32+
Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleSettingResource
3333
.Notes
3434
COMPLEX PARAMETER PROPERTIES
3535
@@ -87,7 +87,7 @@ PROFILE <IAutoscaleProfile[]>: the collection of automatic scaling profiles that
8787
https://learn.microsoft.com/powershell/module/az.monitor/update-azAutoscaleSetting
8888
#>
8989
function Update-AzAutoscaleSetting {
90-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleSettingResource])]
90+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleSettingResource])]
9191
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
9292
param(
9393
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -129,7 +129,7 @@ function Update-AzAutoscaleSetting {
129129
[Parameter()]
130130
[AllowEmptyCollection()]
131131
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Category('Body')]
132-
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleNotification[]]
132+
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleNotification[]]
133133
# the collection of notifications.
134134
# To construct, see NOTES section for NOTIFICATION properties and create a hash table.
135135
${Notification},
@@ -142,24 +142,24 @@ function Update-AzAutoscaleSetting {
142142
${PredictiveAutoscalePolicyScaleLookAheadTime},
143143

144144
[Parameter()]
145-
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.PredictiveAutoscalePolicyScaleMode])]
145+
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.PSArgumentCompleterAttribute("Disabled", "ForecastOnly", "Enabled")]
146146
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Category('Body')]
147-
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.PredictiveAutoscalePolicyScaleMode]
147+
[System.String]
148148
# the predictive autoscale mode
149149
${PredictiveAutoscalePolicyScaleMode},
150150

151151
[Parameter()]
152152
[AllowEmptyCollection()]
153153
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Category('Body')]
154-
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleProfile[]]
154+
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleProfile[]]
155155
# the collection of automatic scaling profiles that specify different scaling parameters for different time periods.
156156
# A maximum of 20 profiles can be specified.
157157
# To construct, see NOTES section for PROFILE properties and create a hash table.
158158
${Profile},
159159

160160
[Parameter()]
161161
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Category('Body')]
162-
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IAutoscaleSettingResourcePatchTags]))]
162+
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.IAutoscaleSettingResourcePatchTags]))]
163163
[System.Collections.Hashtable]
164164
# Resource tags
165165
${Tag},

0 commit comments

Comments
 (0)