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',