From e50d96bd684c99ed933441ba92b765dd7f0db05b Mon Sep 17 00:00:00 2001 From: JoyerJin <116236375+JoyerJin@users.noreply.github.com> Date: Wed, 2 Jul 2025 14:47:33 +0800 Subject: [PATCH 1/6] add breaking change message for Autoscale submodule under Monitor module --- .../Properties/AssemblyInfo.cs | 26 ++++++++++++++++ src/Monitor/Autoscale.Autorest/README.md | 26 +++++++++++++--- .../New-AzAutoscaleNotificationObject.ps1 | 1 + .../New-AzAutoscaleProfileObject.ps1 | 1 + ...utoscaleScaleRuleMetricDimensionObject.ps1 | 1 + .../New-AzAutoscaleScaleRuleObject.ps1 | 1 + .../Autoscale.Autorest/docs/Az.Autoscale.md | 2 +- .../Autoscale.Autorest/generate-info.json | 2 +- .../Autoscale.Autorest/resources/README.md | 11 +++++++ src/Monitor/Monitor.sln | 31 ++++++++++--------- src/Monitor/Monitor/Az.Monitor.psd1 | 4 +-- 11 files changed, 83 insertions(+), 23 deletions(-) create mode 100644 src/Monitor/Autoscale.Autorest/Properties/AssemblyInfo.cs rename src/Monitor/Autoscale.Autorest/custom/{autogen-model-cmdlets => }/New-AzAutoscaleNotificationObject.ps1 (92%) rename src/Monitor/Autoscale.Autorest/custom/{autogen-model-cmdlets => }/New-AzAutoscaleProfileObject.ps1 (96%) rename src/Monitor/Autoscale.Autorest/custom/{autogen-model-cmdlets => }/New-AzAutoscaleScaleRuleMetricDimensionObject.ps1 (92%) rename src/Monitor/Autoscale.Autorest/custom/{autogen-model-cmdlets => }/New-AzAutoscaleScaleRuleObject.ps1 (96%) create mode 100644 src/Monitor/Autoscale.Autorest/resources/README.md diff --git a/src/Monitor/Autoscale.Autorest/Properties/AssemblyInfo.cs b/src/Monitor/Autoscale.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..5fd3358e721d --- /dev/null +++ b/src/Monitor/Autoscale.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +// 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..850f367efc23 100644 --- a/src/Monitor/Autoscale.Autorest/README.md +++ b/src/Monitor/Autoscale.Autorest/README.md @@ -50,6 +50,22 @@ use-extension: "@autorest/powershell": "3.x" directive: + - where: + subject: PredictiveMetric + set: + breaking-change: + change-description: The type of the property 'Data' of type 'IPredictiveResponse' will be changed from single object to 'List'. + deprecated-by-version: 7.0.0 + deprecated-by-azversion: 15.0.0 + change-effective-date: 2025/11/03 + - where: + subject: AutoscaleSetting + set: + breaking-change: + change-description: The types of the properties 'Notification' and 'Profile' of type 'IAutoscaleSettingResource' will be changed from single object to 'List'. The types of the properties 'Rule', 'ScheduleHour', 'ScheduleMinute' and 'ScheduleDay' of type 'IAutoscaleProfile' will be changed from single object or fixed array to 'List'. The types of the properties 'Webhook' and 'EmailCustomEmail' of type 'IAutoscaleNotification' will be changed from single object or fixed array to 'List'. + deprecated-by-version: 7.0.0 + deprecated-by-azversion: 15.0.0 + change-effective-date: 2025/11/03 # Following is two common directive which are normally required in all the RPs # 1. Remove the unexpanded parameter set # 2. For New-* cmdlets, ViaIdentity is not required, so CreateViaIdentityExpanded is removed as well @@ -99,11 +115,11 @@ directive: }, "description": "A specific date-time for the profile." } - +# Add breaking change for them, will add back. - model-cmdlet: - - AutoscaleProfile - - ScaleRule - - AutoscaleNotification + # - AutoscaleProfile + # - ScaleRule + # - AutoscaleNotification - WebhookNotification - - ScaleRuleMetricDimension + # - ScaleRuleMetricDimension ``` diff --git a/src/Monitor/Autoscale.Autorest/custom/autogen-model-cmdlets/New-AzAutoscaleNotificationObject.ps1 b/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleNotificationObject.ps1 similarity index 92% rename from src/Monitor/Autoscale.Autorest/custom/autogen-model-cmdlets/New-AzAutoscaleNotificationObject.ps1 rename to src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleNotificationObject.ps1 index e1bc1df5a662..8a9599792b68 100644 --- a/src/Monitor/Autoscale.Autorest/custom/autogen-model-cmdlets/New-AzAutoscaleNotificationObject.ps1 +++ b/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleNotificationObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.Autoscal https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleNotificationObject #> function New-AzAutoscaleNotificationObject { + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.CmdletBreakingChange("15.0.0", "7.0.0", "2025/11/03", ChangeDescription="The type of property 'Webhook' and 'EmailCustomEmail' will be changed from array to List.")] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.AutoscaleNotification')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Monitor/Autoscale.Autorest/custom/autogen-model-cmdlets/New-AzAutoscaleProfileObject.ps1 b/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleProfileObject.ps1 similarity index 96% rename from src/Monitor/Autoscale.Autorest/custom/autogen-model-cmdlets/New-AzAutoscaleProfileObject.ps1 rename to src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleProfileObject.ps1 index 7db1d2c17390..8561d746f717 100644 --- a/src/Monitor/Autoscale.Autorest/custom/autogen-model-cmdlets/New-AzAutoscaleProfileObject.ps1 +++ b/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleProfileObject.ps1 @@ -27,6 +27,7 @@ https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleProfileO #> function New-AzAutoscaleProfileObject { [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.AutoscaleProfile')] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.CmdletBreakingChange("15.0.0", "7.0.0", "2025/11/03", ChangeDescription="The types of properties 'Rule', 'ScheduleHour', 'ScheduleMinute', 'ScheduleDay' and 'MetricTriggerDimension' of IAutoscaleProfile will be changed from array to List. The type of property 'MetricTriggerDimension' of type 'IScaleRule' has changed from single object to 'List'.")] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Monitor/Autoscale.Autorest/custom/autogen-model-cmdlets/New-AzAutoscaleScaleRuleMetricDimensionObject.ps1 b/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleScaleRuleMetricDimensionObject.ps1 similarity index 92% rename from src/Monitor/Autoscale.Autorest/custom/autogen-model-cmdlets/New-AzAutoscaleScaleRuleMetricDimensionObject.ps1 rename to src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleScaleRuleMetricDimensionObject.ps1 index 0b9141f5b963..1d51502d44e1 100644 --- a/src/Monitor/Autoscale.Autorest/custom/autogen-model-cmdlets/New-AzAutoscaleScaleRuleMetricDimensionObject.ps1 +++ b/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleScaleRuleMetricDimensionObject.ps1 @@ -27,6 +27,7 @@ https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleScaleRul #> function New-AzAutoscaleScaleRuleMetricDimensionObject { [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleRuleMetricDimension')] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.CmdletBreakingChange("15.0.0", "7.0.0", "2025/11/03", ChangeDescription="The type of property 'Value' will be changed from array to List.")] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Monitor/Autoscale.Autorest/custom/autogen-model-cmdlets/New-AzAutoscaleScaleRuleObject.ps1 b/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleScaleRuleObject.ps1 similarity index 96% rename from src/Monitor/Autoscale.Autorest/custom/autogen-model-cmdlets/New-AzAutoscaleScaleRuleObject.ps1 rename to src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleScaleRuleObject.ps1 index 880f226f961d..581d5dd8e81d 100644 --- a/src/Monitor/Autoscale.Autorest/custom/autogen-model-cmdlets/New-AzAutoscaleScaleRuleObject.ps1 +++ b/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleScaleRuleObject.ps1 @@ -27,6 +27,7 @@ https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleScaleRul #> function New-AzAutoscaleScaleRuleObject { [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleRule')] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.CmdletBreakingChange("15.0.0", "7.0.0", "2025/11/03", ChangeDescription="The type of property 'MetricTriggerDimension' of type 'IScaleRuleMetricDimension' will be changed from array to List.")] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Monitor/Autoscale.Autorest/docs/Az.Autoscale.md b/src/Monitor/Autoscale.Autorest/docs/Az.Autoscale.md index 55ffda565d75..cbddc915a3b2 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: a9b125f5-74a5-4fd4-a060-a0fdb28485e1 Download Help Link: https://learn.microsoft.com/powershell/module/az.autoscale Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Monitor/Autoscale.Autorest/generate-info.json b/src/Monitor/Autoscale.Autorest/generate-info.json index 1349c9c69e3e..07d563582b6a 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": "f7cf4f24-9370-472c-b093-751ceaf7df26" } 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/Monitor.sln b/src/Monitor/Monitor.sln index e8c2aeb78095..4bcc78017947 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", "{87825558-0D8A-4DB6-AA9B-D954705387F4}" +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 @@ -331,6 +321,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 + {87825558-0D8A-4DB6-AA9B-D954705387F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {87825558-0D8A-4DB6-AA9B-D954705387F4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {87825558-0D8A-4DB6-AA9B-D954705387F4}.Debug|x64.ActiveCfg = Debug|Any CPU + {87825558-0D8A-4DB6-AA9B-D954705387F4}.Debug|x64.Build.0 = Debug|Any CPU + {87825558-0D8A-4DB6-AA9B-D954705387F4}.Debug|x86.ActiveCfg = Debug|Any CPU + {87825558-0D8A-4DB6-AA9B-D954705387F4}.Debug|x86.Build.0 = Debug|Any CPU + {87825558-0D8A-4DB6-AA9B-D954705387F4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {87825558-0D8A-4DB6-AA9B-D954705387F4}.Release|Any CPU.Build.0 = Release|Any CPU + {87825558-0D8A-4DB6-AA9B-D954705387F4}.Release|x64.ActiveCfg = Release|Any CPU + {87825558-0D8A-4DB6-AA9B-D954705387F4}.Release|x64.Build.0 = Release|Any CPU + {87825558-0D8A-4DB6-AA9B-D954705387F4}.Release|x86.ActiveCfg = Release|Any CPU + {87825558-0D8A-4DB6-AA9B-D954705387F4}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -350,5 +352,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} + {87825558-0D8A-4DB6-AA9B-D954705387F4} = {0832AC06-44A1-FEDA-3879-082134F4AAB5} EndGlobalSection EndGlobal diff --git a/src/Monitor/Monitor/Az.Monitor.psd1 b/src/Monitor/Monitor/Az.Monitor.psd1 index e9d4a2a63b59..cd74ffd6d62e 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: 7/1/2025 +# Generated on: 7/2/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', From 82148751db92408e89a8296c4a058892c8d27d4f Mon Sep 17 00:00:00 2001 From: JoyerJin <116236375+JoyerJin@users.noreply.github.com> Date: Tue, 15 Jul 2025 14:17:17 +0800 Subject: [PATCH 2/6] update breaking change message --- src/Monitor/Autoscale.Autorest/README.md | 48 ++++++++++++++++++- .../New-AzAutoscaleNotificationObject.ps1 | 4 +- .../custom/New-AzAutoscaleProfileObject.ps1 | 5 +- ...utoscaleScaleRuleMetricDimensionObject.ps1 | 2 +- .../custom/New-AzAutoscaleScaleRuleObject.ps1 | 3 +- .../Autoscale.Autorest/generate-info.json | 2 +- src/Monitor/Monitor.sln | 28 +++++------ src/Monitor/Monitor/Az.Monitor.psd1 | 2 +- 8 files changed, 70 insertions(+), 24 deletions(-) diff --git a/src/Monitor/Autoscale.Autorest/README.md b/src/Monitor/Autoscale.Autorest/README.md index 850f367efc23..f3b6ce7f7991 100644 --- a/src/Monitor/Autoscale.Autorest/README.md +++ b/src/Monitor/Autoscale.Autorest/README.md @@ -51,18 +51,62 @@ use-extension: directive: - where: + Verb: Get subject: PredictiveMetric set: breaking-change: - change-description: The type of the property 'Data' of type 'IPredictiveResponse' will be changed from single object to 'List'. + deprecated-output-properties: + - Data + new-output-properties: + - List[Data] deprecated-by-version: 7.0.0 deprecated-by-azversion: 15.0.0 change-effective-date: 2025/11/03 - where: + verb: Get|Update subject: AutoscaleSetting set: breaking-change: - change-description: The types of the properties 'Notification' and 'Profile' of type 'IAutoscaleSettingResource' will be changed from single object to 'List'. The types of the properties 'Rule', 'ScheduleHour', 'ScheduleMinute' and 'ScheduleDay' of type 'IAutoscaleProfile' will be changed from single object or fixed array to 'List'. The types of the properties 'Webhook' and 'EmailCustomEmail' of type 'IAutoscaleNotification' will be changed from single object or fixed array to 'List'. + deprecated-output-properties: + - Notification + - Profile + new-output-properties: + - List[Notification] + - List[Profile] + deprecated-by-version: 7.0.0 + deprecated-by-azversion: 15.0.0 + change-effective-date: 2025/11/03 + - where: + verb: New + subject: AutoscaleSetting + set: + breaking-change: + deprecated-output-properties: + - Profile + - Rule + - ScheduleHour + - ScheduleMinute + - ScheduleDay + - Webhook + - EmailCustomEmail[] + new-output-properties: + - List[Profile] + - List[Rule] + - List[ScheduleHour] + - List[ScheduleMinute] + - List[ScheduleDay] + - List[Webhook] + - List[EmailCustomEmail] + change-description: The types of the properties 'Webhook' and 'EmailCustomEmail' of type 'IAutoscaleNotification' will be changed from single object or fixed array to 'List'. + deprecated-by-version: 7.0.0 + deprecated-by-azversion: 15.0.0 + change-effective-date: 2025/11/03 + - where: + parameter-name: Profile|Rule|ScheduleHour|ScheduleMinute|ScheduleDay|Webhook|EmailCustomEmail + set: + breaking-change: + old-parameter-type: Array + new-parameter-type: List deprecated-by-version: 7.0.0 deprecated-by-azversion: 15.0.0 change-effective-date: 2025/11/03 diff --git a/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleNotificationObject.ps1 b/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleNotificationObject.ps1 index 8a9599792b68..165adaafa16e 100644 --- a/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleNotificationObject.ps1 +++ b/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleNotificationObject.ps1 @@ -26,11 +26,10 @@ Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.Autoscal https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleNotificationObject #> function New-AzAutoscaleNotificationObject { - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.CmdletBreakingChange("15.0.0", "7.0.0", "2025/11/03", ChangeDescription="The type of property 'Webhook' and 'EmailCustomEmail' will be changed from array to List.")] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.AutoscaleNotification')] [CmdletBinding(PositionalBinding=$false)] Param( - + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.ParameterBreakingChange("EmailCustomEmail", "15.0.0", "7.0.0", "2025/11/03", OldParamaterType="Array", NewParameterType="List")] [Parameter(HelpMessage="the custom e-mails list. This value can be null or empty, in which case this attribute will be ignored.")] [string[]] $EmailCustomEmail, @@ -40,6 +39,7 @@ function New-AzAutoscaleNotificationObject { [Parameter(HelpMessage="a value indicating whether to send email to subscription co-administrators.")] [bool] $EmailSendToSubscriptionCoAdministrator, + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.ParameterBreakingChange("Webhook", "15.0.0", "7.0.0", "2025/11/03", OldParamaterType="Array", NewParameterType="List")] [Parameter(HelpMessage="the collection of webhook notifications.")] [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IWebhookNotification[]] $Webhook diff --git a/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleProfileObject.ps1 b/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleProfileObject.ps1 index 8561d746f717..703e0e370d0f 100644 --- a/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleProfileObject.ps1 +++ b/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleProfileObject.ps1 @@ -27,7 +27,6 @@ https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleProfileO #> function New-AzAutoscaleProfileObject { [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.AutoscaleProfile')] - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.CmdletBreakingChange("15.0.0", "7.0.0", "2025/11/03", ChangeDescription="The types of properties 'Rule', 'ScheduleHour', 'ScheduleMinute', 'ScheduleDay' and 'MetricTriggerDimension' of IAutoscaleProfile will be changed from array to List. The type of property 'MetricTriggerDimension' of type 'IScaleRule' has changed from single object to 'List'.")] [CmdletBinding(PositionalBinding=$false)] Param( @@ -56,15 +55,19 @@ function New-AzAutoscaleProfileObject { [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.RecurrenceFrequency])] [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.RecurrenceFrequency] $RecurrenceFrequency, + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.ParameterBreakingChange("Rule", "15.0.0", "7.0.0", "2025/11/03", OldParamaterType="Array", NewParameterType="List")] [Parameter(Mandatory, HelpMessage="the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified.")] [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IScaleRule[]] $Rule, + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.ParameterBreakingChange("ScheduleDay", "15.0.0", "7.0.0", "2025/11/03", OldParamaterType="Array", NewParameterType="List")] [Parameter(HelpMessage="the collection of days that the profile takes effect on. Possible values are Sunday through Saturday.")] [string[]] $ScheduleDay, + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.ParameterBreakingChange("ScheduleHour", "15.0.0", "7.0.0", "2025/11/03", OldParamaterType="Array", NewParameterType="List")] [Parameter(HelpMessage="A collection of hours that the profile takes effect on. Values supported are 0 to 23 on the 24-hour clock (AM/PM times are not supported).")] [int[]] $ScheduleHour, + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.ParameterBreakingChange("ScheduleMinute", "15.0.0", "7.0.0", "2025/11/03", OldParamaterType="Array", NewParameterType="List")] [Parameter(HelpMessage="A collection of minutes at which the profile takes effect at.")] [int[]] $ScheduleMinute, diff --git a/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleScaleRuleMetricDimensionObject.ps1 b/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleScaleRuleMetricDimensionObject.ps1 index 1d51502d44e1..a835d594e915 100644 --- a/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleScaleRuleMetricDimensionObject.ps1 +++ b/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleScaleRuleMetricDimensionObject.ps1 @@ -27,7 +27,6 @@ https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleScaleRul #> function New-AzAutoscaleScaleRuleMetricDimensionObject { [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleRuleMetricDimension')] - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.CmdletBreakingChange("15.0.0", "7.0.0", "2025/11/03", ChangeDescription="The type of property 'Value' will be changed from array to List.")] [CmdletBinding(PositionalBinding=$false)] Param( @@ -38,6 +37,7 @@ function New-AzAutoscaleScaleRuleMetricDimensionObject { [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleRuleMetricDimensionOperationType])] [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Support.ScaleRuleMetricDimensionOperationType] $Operator, + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.ParameterBreakingChange("Value", "15.0.0", "7.0.0", "2025/11/03", OldParamaterType="Array", NewParameterType="List")] [Parameter(Mandatory, HelpMessage="list of dimension values. For example: [`"App1`",`"App2`"].")] [string[]] $Value diff --git a/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleScaleRuleObject.ps1 b/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleScaleRuleObject.ps1 index 581d5dd8e81d..e0a7f85bb23b 100644 --- a/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleScaleRuleObject.ps1 +++ b/src/Monitor/Autoscale.Autorest/custom/New-AzAutoscaleScaleRuleObject.ps1 @@ -27,10 +27,9 @@ https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleScaleRul #> function New-AzAutoscaleScaleRuleObject { [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.ScaleRule')] - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.CmdletBreakingChange("15.0.0", "7.0.0", "2025/11/03", ChangeDescription="The type of property 'MetricTriggerDimension' of type 'IScaleRuleMetricDimension' will be changed from array to List.")] [CmdletBinding(PositionalBinding=$false)] Param( - + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Runtime.ParameterBreakingChange("MetricTriggerDimension", "15.0.0", "7.0.0", "2025/11/03", OldParamaterType="Array", NewParameterType="List")] [Parameter(HelpMessage="List of dimension conditions. For example: [{`"DimensionName`":`"AppName`",`"Operator`":`"Equals`",`"Values`":[`"App1`"]},{`"DimensionName`":`"Deployment`",`"Operator`":`"Equals`",`"Values`":[`"default`"]}].")] [Microsoft.Azure.PowerShell.Cmdlets.Monitor.Autoscale.Models.Api20221001.IScaleRuleMetricDimension[]] $MetricTriggerDimension, diff --git a/src/Monitor/Autoscale.Autorest/generate-info.json b/src/Monitor/Autoscale.Autorest/generate-info.json index 07d563582b6a..29dc4a0be5f6 100644 --- a/src/Monitor/Autoscale.Autorest/generate-info.json +++ b/src/Monitor/Autoscale.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "f7cf4f24-9370-472c-b093-751ceaf7df26" + "generate_Id": "84b97904-5e18-487e-84f8-3333bb0ada44" } diff --git a/src/Monitor/Monitor.sln b/src/Monitor/Monitor.sln index 4bcc78017947..328d24d7b2e8 100644 --- a/src/Monitor/Monitor.sln +++ b/src/Monitor/Monitor.sln @@ -57,7 +57,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DataCollectionRule", ".. 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", "{87825558-0D8A-4DB6-AA9B-D954705387F4}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Autoscale", "..\..\generated\Monitor\Autoscale.Autorest\Az.Autoscale.csproj", "{4E933E66-44EC-4E61-89B7-F8DC12AE3CE9}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -321,18 +321,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 - {87825558-0D8A-4DB6-AA9B-D954705387F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {87825558-0D8A-4DB6-AA9B-D954705387F4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {87825558-0D8A-4DB6-AA9B-D954705387F4}.Debug|x64.ActiveCfg = Debug|Any CPU - {87825558-0D8A-4DB6-AA9B-D954705387F4}.Debug|x64.Build.0 = Debug|Any CPU - {87825558-0D8A-4DB6-AA9B-D954705387F4}.Debug|x86.ActiveCfg = Debug|Any CPU - {87825558-0D8A-4DB6-AA9B-D954705387F4}.Debug|x86.Build.0 = Debug|Any CPU - {87825558-0D8A-4DB6-AA9B-D954705387F4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {87825558-0D8A-4DB6-AA9B-D954705387F4}.Release|Any CPU.Build.0 = Release|Any CPU - {87825558-0D8A-4DB6-AA9B-D954705387F4}.Release|x64.ActiveCfg = Release|Any CPU - {87825558-0D8A-4DB6-AA9B-D954705387F4}.Release|x64.Build.0 = Release|Any CPU - {87825558-0D8A-4DB6-AA9B-D954705387F4}.Release|x86.ActiveCfg = Release|Any CPU - {87825558-0D8A-4DB6-AA9B-D954705387F4}.Release|x86.Build.0 = Release|Any CPU + {4E933E66-44EC-4E61-89B7-F8DC12AE3CE9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4E933E66-44EC-4E61-89B7-F8DC12AE3CE9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4E933E66-44EC-4E61-89B7-F8DC12AE3CE9}.Debug|x64.ActiveCfg = Debug|Any CPU + {4E933E66-44EC-4E61-89B7-F8DC12AE3CE9}.Debug|x64.Build.0 = Debug|Any CPU + {4E933E66-44EC-4E61-89B7-F8DC12AE3CE9}.Debug|x86.ActiveCfg = Debug|Any CPU + {4E933E66-44EC-4E61-89B7-F8DC12AE3CE9}.Debug|x86.Build.0 = Debug|Any CPU + {4E933E66-44EC-4E61-89B7-F8DC12AE3CE9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4E933E66-44EC-4E61-89B7-F8DC12AE3CE9}.Release|Any CPU.Build.0 = Release|Any CPU + {4E933E66-44EC-4E61-89B7-F8DC12AE3CE9}.Release|x64.ActiveCfg = Release|Any CPU + {4E933E66-44EC-4E61-89B7-F8DC12AE3CE9}.Release|x64.Build.0 = Release|Any CPU + {4E933E66-44EC-4E61-89B7-F8DC12AE3CE9}.Release|x86.ActiveCfg = Release|Any CPU + {4E933E66-44EC-4E61-89B7-F8DC12AE3CE9}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -352,6 +352,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} - {87825558-0D8A-4DB6-AA9B-D954705387F4} = {0832AC06-44A1-FEDA-3879-082134F4AAB5} + {4E933E66-44EC-4E61-89B7-F8DC12AE3CE9} = {0832AC06-44A1-FEDA-3879-082134F4AAB5} EndGlobalSection EndGlobal diff --git a/src/Monitor/Monitor/Az.Monitor.psd1 b/src/Monitor/Monitor/Az.Monitor.psd1 index cd74ffd6d62e..0301a73689ef 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: 7/2/2025 +# Generated on: 7/15/2025 # @{ From a1c33142e93802050232d9d5440de10a8e46bb35 Mon Sep 17 00:00:00 2001 From: JoyerJin <116236375+JoyerJin@users.noreply.github.com> Date: Fri, 18 Jul 2025 10:34:52 +0800 Subject: [PATCH 3/6] update breaking change --- src/Monitor/Autoscale.Autorest/README.md | 26 ++++++++------- .../Autoscale.Autorest/generate-info.json | 2 +- src/Monitor/Monitor.sln | 33 ++++++++++--------- src/Monitor/Monitor/Az.Monitor.psd1 | 2 +- 4 files changed, 33 insertions(+), 30 deletions(-) diff --git a/src/Monitor/Autoscale.Autorest/README.md b/src/Monitor/Autoscale.Autorest/README.md index f3b6ce7f7991..88712c0540e5 100644 --- a/src/Monitor/Autoscale.Autorest/README.md +++ b/src/Monitor/Autoscale.Autorest/README.md @@ -58,7 +58,8 @@ directive: deprecated-output-properties: - Data new-output-properties: - - List[Data] + - Data + change-description: The type of the property 'Data' of type 'IPredictiveResponse' will be changed from single object to 'List'. deprecated-by-version: 7.0.0 deprecated-by-azversion: 15.0.0 change-effective-date: 2025/11/03 @@ -71,8 +72,9 @@ directive: - Notification - Profile new-output-properties: - - List[Notification] - - List[Profile] + - Notification + - Profile + change-description: The types of the properties 'Notification' and 'Profile' of type 'IAutoscaleSettingResource' will be changed from single object to 'List'. deprecated-by-version: 7.0.0 deprecated-by-azversion: 15.0.0 change-effective-date: 2025/11/03 @@ -88,16 +90,16 @@ directive: - ScheduleMinute - ScheduleDay - Webhook - - EmailCustomEmail[] + - EmailCustomEmail new-output-properties: - - List[Profile] - - List[Rule] - - List[ScheduleHour] - - List[ScheduleMinute] - - List[ScheduleDay] - - List[Webhook] - - List[EmailCustomEmail] - change-description: The types of the properties 'Webhook' and 'EmailCustomEmail' of type 'IAutoscaleNotification' will be changed from single object or fixed array to 'List'. + - Profile + - Rule + - ScheduleHour + - ScheduleMinute + - ScheduleDay + - Webhook + - EmailCustomEmail + change-description: The types of the properties 'Notification' and 'Profile' of type 'IAutoscaleSettingResource' will be changed from single object to 'List'. The types of the properties 'Rule', 'ScheduleHour', 'ScheduleMinute' and 'ScheduleDay' of type 'IAutoscaleProfile' will be changed from single object or fixed array to 'List'. The types of the properties 'Webhook' and 'EmailCustomEmail' of type 'IAutoscaleNotification' will be changed from single object or fixed array to 'List'. deprecated-by-version: 7.0.0 deprecated-by-azversion: 15.0.0 change-effective-date: 2025/11/03 diff --git a/src/Monitor/Autoscale.Autorest/generate-info.json b/src/Monitor/Autoscale.Autorest/generate-info.json index 29dc4a0be5f6..5f54d2ecfa01 100644 --- a/src/Monitor/Autoscale.Autorest/generate-info.json +++ b/src/Monitor/Autoscale.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "84b97904-5e18-487e-84f8-3333bb0ada44" + "generate_Id": "b0e7ea1d-cfd1-4f97-953d-a311874d6195" } diff --git a/src/Monitor/Monitor.sln b/src/Monitor/Monitor.sln index 9f31a956ddbc..1062d67c4317 100644 --- a/src/Monitor/Monitor.sln +++ b/src/Monitor/Monitor.sln @@ -53,13 +53,14 @@ 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", "{4E933E66-44EC-4E61-89B7-F8DC12AE3CE9}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Metricdata.Autorest", "Metricdata.Autorest", "{97973F8C-3EE1-368A-3B71-C62280C2DC8C}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Metricdata", "..\..\generated\Monitor\Metricdata.Autorest\Az.Metricdata.csproj", "{0A51A656-9092-4C82-83B5-524516C8FED7}" 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", "{A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -322,18 +323,6 @@ 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 - {4E933E66-44EC-4E61-89B7-F8DC12AE3CE9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {4E933E66-44EC-4E61-89B7-F8DC12AE3CE9}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4E933E66-44EC-4E61-89B7-F8DC12AE3CE9}.Debug|x64.ActiveCfg = Debug|Any CPU - {4E933E66-44EC-4E61-89B7-F8DC12AE3CE9}.Debug|x64.Build.0 = Debug|Any CPU - {4E933E66-44EC-4E61-89B7-F8DC12AE3CE9}.Debug|x86.ActiveCfg = Debug|Any CPU - {4E933E66-44EC-4E61-89B7-F8DC12AE3CE9}.Debug|x86.Build.0 = Debug|Any CPU - {4E933E66-44EC-4E61-89B7-F8DC12AE3CE9}.Release|Any CPU.ActiveCfg = Release|Any CPU - {4E933E66-44EC-4E61-89B7-F8DC12AE3CE9}.Release|Any CPU.Build.0 = Release|Any CPU - {4E933E66-44EC-4E61-89B7-F8DC12AE3CE9}.Release|x64.ActiveCfg = Release|Any CPU - {4E933E66-44EC-4E61-89B7-F8DC12AE3CE9}.Release|x64.Build.0 = Release|Any CPU - {4E933E66-44EC-4E61-89B7-F8DC12AE3CE9}.Release|x86.ActiveCfg = Release|Any CPU - {4E933E66-44EC-4E61-89B7-F8DC12AE3CE9}.Release|x86.Build.0 = Release|Any CPU {0A51A656-9092-4C82-83B5-524516C8FED7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {0A51A656-9092-4C82-83B5-524516C8FED7}.Debug|Any CPU.Build.0 = Debug|Any CPU {0A51A656-9092-4C82-83B5-524516C8FED7}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -346,6 +335,18 @@ Global {0A51A656-9092-4C82-83B5-524516C8FED7}.Release|x64.Build.0 = Release|Any CPU {0A51A656-9092-4C82-83B5-524516C8FED7}.Release|x86.ActiveCfg = Release|Any CPU {0A51A656-9092-4C82-83B5-524516C8FED7}.Release|x86.Build.0 = Release|Any CPU + {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Debug|x64.ActiveCfg = Debug|Any CPU + {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Debug|x64.Build.0 = Debug|Any CPU + {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Debug|x86.ActiveCfg = Debug|Any CPU + {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Debug|x86.Build.0 = Debug|Any CPU + {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Release|Any CPU.Build.0 = Release|Any CPU + {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Release|x64.ActiveCfg = Release|Any CPU + {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Release|x64.Build.0 = Release|Any CPU + {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Release|x86.ActiveCfg = Release|Any CPU + {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -365,7 +366,7 @@ 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} - {4E933E66-44EC-4E61-89B7-F8DC12AE3CE9} = {0832AC06-44A1-FEDA-3879-082134F4AAB5} {0A51A656-9092-4C82-83B5-524516C8FED7} = {97973F8C-3EE1-368A-3B71-C62280C2DC8C} + {A55047D2-EBBB-4C25-BD5E-52FEF9E5C627} = {0832AC06-44A1-FEDA-3879-082134F4AAB5} EndGlobalSection EndGlobal diff --git a/src/Monitor/Monitor/Az.Monitor.psd1 b/src/Monitor/Monitor/Az.Monitor.psd1 index f3e86a047a66..b12b522a1f0e 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: 7/15/2025 +# Generated on: 7/18/2025 # @{ From 9258451cb20970848bb9f2d4ec4172b2032f042e Mon Sep 17 00:00:00 2001 From: JoyerJin <116236375+JoyerJin@users.noreply.github.com> Date: Fri, 18 Jul 2025 18:06:20 +0800 Subject: [PATCH 4/6] Update ChangeLog.md --- src/Monitor/Monitor/ChangeLog.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Monitor/Monitor/ChangeLog.md b/src/Monitor/Monitor/ChangeLog.md index ff0c0196e94a..ec1a3a207181 100644 --- a/src/Monitor/Monitor/ChangeLog.md +++ b/src/Monitor/Monitor/ChangeLog.md @@ -25,6 +25,14 @@ - `Update-AzActivityLogAlert` - `New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject` - `New-AzActivityLogAlertAlertRuleLeafConditionObject` + - `Get-AzAutoscalePredictiveMetric` + - `Get-AzAutoscaleSetting` + - `New-AzAutoscaleNotificationObject` + - `New-AzAutoscaleProfileObject` + - `New-AzAutoscaleScaleRuleMetricDimensionObject` + - `New-AzAutoscaleScaleRuleObject` + - `New-AzAutoscaleSetting` + - `Update-AzAutoscaleSetting` ## Version 6.0.2 * Pipeline Group upgraded API version to 2024-10-01-preview From d7805af91bf399f3e488f2824a16fe096511b29c Mon Sep 17 00:00:00 2001 From: JoyerJin <116236375+JoyerJin@users.noreply.github.com> Date: Mon, 21 Jul 2025 14:31:01 +0800 Subject: [PATCH 5/6] remove unexpanded property warning --- src/Monitor/Autoscale.Autorest/README.md | 6 +----- src/Monitor/Autoscale.Autorest/generate-info.json | 2 +- src/Monitor/Monitor/Az.Monitor.psd1 | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/Monitor/Autoscale.Autorest/README.md b/src/Monitor/Autoscale.Autorest/README.md index 88712c0540e5..8c2345a5b97d 100644 --- a/src/Monitor/Autoscale.Autorest/README.md +++ b/src/Monitor/Autoscale.Autorest/README.md @@ -89,17 +89,13 @@ directive: - ScheduleHour - ScheduleMinute - ScheduleDay - - Webhook - - EmailCustomEmail new-output-properties: - Profile - Rule - ScheduleHour - ScheduleMinute - ScheduleDay - - Webhook - - EmailCustomEmail - change-description: The types of the properties 'Notification' and 'Profile' of type 'IAutoscaleSettingResource' will be changed from single object to 'List'. The types of the properties 'Rule', 'ScheduleHour', 'ScheduleMinute' and 'ScheduleDay' of type 'IAutoscaleProfile' will be changed from single object or fixed array to 'List'. The types of the properties 'Webhook' and 'EmailCustomEmail' of type 'IAutoscaleNotification' will be changed from single object or fixed array to 'List'. + change-description: The types of the properties 'Notification' and 'Profile' of type 'IAutoscaleSettingResource' will be changed from single object to 'List'. The types of the properties 'Rule', 'ScheduleHour', 'ScheduleMinute' and 'ScheduleDay' of type 'IAutoscaleProfile' will be changed from single object or fixed array to 'List'. deprecated-by-version: 7.0.0 deprecated-by-azversion: 15.0.0 change-effective-date: 2025/11/03 diff --git a/src/Monitor/Autoscale.Autorest/generate-info.json b/src/Monitor/Autoscale.Autorest/generate-info.json index 5f54d2ecfa01..22217aa2d871 100644 --- a/src/Monitor/Autoscale.Autorest/generate-info.json +++ b/src/Monitor/Autoscale.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "b0e7ea1d-cfd1-4f97-953d-a311874d6195" + "generate_Id": "034c94a7-9993-43f0-89a6-618dc6940321" } diff --git a/src/Monitor/Monitor/Az.Monitor.psd1 b/src/Monitor/Monitor/Az.Monitor.psd1 index b12b522a1f0e..3ea2315d63ca 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: 7/18/2025 +# Generated on: 7/21/2025 # @{ From df634c482f94e6c23d381ffd5aef228bfb6db05d Mon Sep 17 00:00:00 2001 From: JoyerJin <116236375+JoyerJin@users.noreply.github.com> Date: Mon, 21 Jul 2025 14:54:35 +0800 Subject: [PATCH 6/6] delete unexpanded property warning --- src/Monitor/Autoscale.Autorest/README.md | 23 +------------------ .../Autoscale.Autorest/generate-info.json | 2 +- 2 files changed, 2 insertions(+), 23 deletions(-) diff --git a/src/Monitor/Autoscale.Autorest/README.md b/src/Monitor/Autoscale.Autorest/README.md index 8c2345a5b97d..959414a8bfe1 100644 --- a/src/Monitor/Autoscale.Autorest/README.md +++ b/src/Monitor/Autoscale.Autorest/README.md @@ -64,7 +64,7 @@ directive: deprecated-by-azversion: 15.0.0 change-effective-date: 2025/11/03 - where: - verb: Get|Update + verb: Get|Update|New subject: AutoscaleSetting set: breaking-change: @@ -78,27 +78,6 @@ directive: deprecated-by-version: 7.0.0 deprecated-by-azversion: 15.0.0 change-effective-date: 2025/11/03 - - where: - verb: New - subject: AutoscaleSetting - set: - breaking-change: - deprecated-output-properties: - - Profile - - Rule - - ScheduleHour - - ScheduleMinute - - ScheduleDay - new-output-properties: - - Profile - - Rule - - ScheduleHour - - ScheduleMinute - - ScheduleDay - change-description: The types of the properties 'Notification' and 'Profile' of type 'IAutoscaleSettingResource' will be changed from single object to 'List'. The types of the properties 'Rule', 'ScheduleHour', 'ScheduleMinute' and 'ScheduleDay' of type 'IAutoscaleProfile' will be changed from single object or fixed array to 'List'. - deprecated-by-version: 7.0.0 - deprecated-by-azversion: 15.0.0 - change-effective-date: 2025/11/03 - where: parameter-name: Profile|Rule|ScheduleHour|ScheduleMinute|ScheduleDay|Webhook|EmailCustomEmail set: diff --git a/src/Monitor/Autoscale.Autorest/generate-info.json b/src/Monitor/Autoscale.Autorest/generate-info.json index 22217aa2d871..97d2a5915591 100644 --- a/src/Monitor/Autoscale.Autorest/generate-info.json +++ b/src/Monitor/Autoscale.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "034c94a7-9993-43f0-89a6-618dc6940321" + "generate_Id": "4dc0c7be-517b-4e7e-919e-a967cc2b9ae2" }