Skip to content

[PS] Add breaking change message for Autoscale submodule under Monitor module #28101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions src/Monitor/Autoscale.Autorest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -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)]
26 changes: 21 additions & 5 deletions src/Monitor/Autoscale.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
```
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(

Expand Down
2 changes: 1 addition & 1 deletion src/Monitor/Autoscale.Autorest/docs/Az.Autoscale.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Monitor/Autoscale.Autorest/generate-info.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"generate_Id": "1863f57c-1604-4cb9-94ca-cef9e5348acf"
"generate_Id": "f7cf4f24-9370-472c-b093-751ceaf7df26"
}
11 changes: 11 additions & 0 deletions src/Monitor/Autoscale.Autorest/resources/README.md
Original file line number Diff line number Diff line change
@@ -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.
31 changes: 17 additions & 14 deletions src/Monitor/Monitor.sln
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
4 changes: 2 additions & 2 deletions src/Monitor/Monitor/Az.Monitor.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
# Generated on: 7/1/2025
# Generated on: 7/2/2025
#

@{
Expand Down Expand Up @@ -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',
Expand Down
Loading