From 266e982f7029a88ac94dd42168025180bfe3cf08 Mon Sep 17 00:00:00 2001 From: JoyerJin <116236375+JoyerJin@users.noreply.github.com> Date: Thu, 26 Jun 2025 15:41:50 +0800 Subject: [PATCH 1/3] ActivityLogAlert breaking change of autorest v4 migration --- .../Properties/AssemblyInfo.cs | 26 ++++++++++++++++ .../ActivityLogAlert.Autorest/README.md | 14 +++++++-- ...ertAlertRuleAnyOfOrLeafConditionObject.ps1 | 1 + ...tyLogAlertAlertRuleLeafConditionObject.ps1 | 1 + .../docs/Az.ActivityLogAlert.md | 2 +- .../generate-info.json | 2 +- .../resources/README.md | 11 +++++++ src/Monitor/Monitor.sln | 31 ++++++++++--------- src/Monitor/Monitor/Az.Monitor.psd1 | 4 +-- src/Monitor/Monitor/ChangeLog.md | 6 ++++ 10 files changed, 77 insertions(+), 21 deletions(-) create mode 100644 src/Monitor/ActivityLogAlert.Autorest/Properties/AssemblyInfo.cs rename src/Monitor/ActivityLogAlert.Autorest/custom/{autogen-model-cmdlets => }/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.ps1 (93%) rename src/Monitor/ActivityLogAlert.Autorest/custom/{autogen-model-cmdlets => }/New-AzActivityLogAlertAlertRuleLeafConditionObject.ps1 (92%) create mode 100644 src/Monitor/ActivityLogAlert.Autorest/resources/README.md diff --git a/src/Monitor/ActivityLogAlert.Autorest/Properties/AssemblyInfo.cs b/src/Monitor/ActivityLogAlert.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..b27bed753bbc --- /dev/null +++ b/src/Monitor/ActivityLogAlert.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 - ActivityLogAlert")] +[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/ActivityLogAlert.Autorest/README.md b/src/Monitor/ActivityLogAlert.Autorest/README.md index 81d6e174a860..8612c067109e 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/README.md +++ b/src/Monitor/ActivityLogAlert.Autorest/README.md @@ -51,6 +51,14 @@ use-extension: "@autorest/powershell": "3.x" directive: + - where: + subject: ActivityLogAlert + set: + breaking-change: + change-description: The types of the properties ActionGroup, ConditionAllOf, Scope, AnyOf, and ContainsAny 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 @@ -83,9 +91,9 @@ directive: subject: (ActivityLogAlert)(.*) set: subject-prefix: "" - + # Add breaking change for them, will add back. - model-cmdlet: - - AlertRuleAnyOfOrLeafCondition - - AlertRuleLeafCondition + # - AlertRuleAnyOfOrLeafCondition + # - AlertRuleLeafCondition - ActionGroup ``` diff --git a/src/Monitor/ActivityLogAlert.Autorest/custom/autogen-model-cmdlets/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.ps1 b/src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.ps1 similarity index 93% rename from src/Monitor/ActivityLogAlert.Autorest/custom/autogen-model-cmdlets/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.ps1 rename to src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.ps1 index 44063d15af01..1b6b1b5f2d69 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/custom/autogen-model-cmdlets/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.ps1 +++ b/src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.A https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject #> function New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject { + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Runtime.CmdletBreakingChange("15.0.0", "7.0.0", "2025/11/03", ChangeDescription="The type of property 'AnyOf' and 'ContainsAny' will be changed from array to List.")] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleAnyOfOrLeafCondition')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Monitor/ActivityLogAlert.Autorest/custom/autogen-model-cmdlets/New-AzActivityLogAlertAlertRuleLeafConditionObject.ps1 b/src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlertAlertRuleLeafConditionObject.ps1 similarity index 92% rename from src/Monitor/ActivityLogAlert.Autorest/custom/autogen-model-cmdlets/New-AzActivityLogAlertAlertRuleLeafConditionObject.ps1 rename to src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlertAlertRuleLeafConditionObject.ps1 index 890223929e8f..4259860a0ce0 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/custom/autogen-model-cmdlets/New-AzActivityLogAlertAlertRuleLeafConditionObject.ps1 +++ b/src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlertAlertRuleLeafConditionObject.ps1 @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.A https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzActivityLogAlertAlertRuleLeafConditionObject #> function New-AzActivityLogAlertAlertRuleLeafConditionObject { + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Runtime.CmdletBreakingChange("15.0.0", "7.0.0", "2025/11/03", ChangeDescription="The type of property 'ContainsAny' has changed from array to List.")] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleLeafCondition')] [CmdletBinding(PositionalBinding=$false)] Param( diff --git a/src/Monitor/ActivityLogAlert.Autorest/docs/Az.ActivityLogAlert.md b/src/Monitor/ActivityLogAlert.Autorest/docs/Az.ActivityLogAlert.md index 1faf4a81537d..1cbbba9bdb61 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/docs/Az.ActivityLogAlert.md +++ b/src/Monitor/ActivityLogAlert.Autorest/docs/Az.ActivityLogAlert.md @@ -1,6 +1,6 @@ --- Module Name: Az.ActivityLogAlert -Module Guid: 51359a36-98ad-4a4b-878d-564c18864934 +Module Guid: dccda9aa-2ba4-49cd-add3-fe720b425f58 Download Help Link: https://learn.microsoft.com/powershell/module/az.activitylogalert Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Monitor/ActivityLogAlert.Autorest/generate-info.json b/src/Monitor/ActivityLogAlert.Autorest/generate-info.json index 094946275bd7..9b3037bcd969 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/generate-info.json +++ b/src/Monitor/ActivityLogAlert.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "84e197d8-48f1-467b-bdae-e7b8d0aa733a" + "generate_Id": "6ed94251-9849-4c6d-9452-d57c10a21365" } diff --git a/src/Monitor/ActivityLogAlert.Autorest/resources/README.md b/src/Monitor/ActivityLogAlert.Autorest/resources/README.md new file mode 100644 index 000000000000..937f07f8fec2 --- /dev/null +++ b/src/Monitor/ActivityLogAlert.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 ba2759d54917..2dff5852ad58 100644 --- a/src/Monitor/Monitor.sln +++ b/src/Monitor/Monitor.sln @@ -37,8 +37,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestFx", "..\..\tools\TestF EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ActionGroup", "..\..\generated\Monitor\ActionGroup.Autorest\Az.ActionGroup.csproj", "{D76924F4-9611-46DC-8F04-B15A105806B8}" 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}" @@ -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}") = "ActivityLogAlert.Autorest", "ActivityLogAlert.Autorest", "{F5B68159-9278-7C75-41B6-315547561DBE}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ActivityLogAlert", "..\..\generated\Monitor\ActivityLogAlert.Autorest\Az.ActivityLogAlert.csproj", "{FC51CA4D-213B-4F50-B11A-90EA24CBE55A}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -235,18 +237,6 @@ Global {D76924F4-9611-46DC-8F04-B15A105806B8}.Release|x64.Build.0 = Release|Any CPU {D76924F4-9611-46DC-8F04-B15A105806B8}.Release|x86.ActiveCfg = Release|Any CPU {D76924F4-9611-46DC-8F04-B15A105806B8}.Release|x86.Build.0 = Release|Any CPU - {A25F7324-8E75-4640-A6B2-B904378FC7F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A25F7324-8E75-4640-A6B2-B904378FC7F4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A25F7324-8E75-4640-A6B2-B904378FC7F4}.Debug|x64.ActiveCfg = Debug|Any CPU - {A25F7324-8E75-4640-A6B2-B904378FC7F4}.Debug|x64.Build.0 = Debug|Any CPU - {A25F7324-8E75-4640-A6B2-B904378FC7F4}.Debug|x86.ActiveCfg = Debug|Any CPU - {A25F7324-8E75-4640-A6B2-B904378FC7F4}.Debug|x86.Build.0 = Debug|Any CPU - {A25F7324-8E75-4640-A6B2-B904378FC7F4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A25F7324-8E75-4640-A6B2-B904378FC7F4}.Release|Any CPU.Build.0 = Release|Any CPU - {A25F7324-8E75-4640-A6B2-B904378FC7F4}.Release|x64.ActiveCfg = Release|Any CPU - {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 @@ -343,6 +333,18 @@ Global {138B61C0-9D0E-44A1-9EA1-E8142303ECA5}.Release|x64.Build.0 = Release|Any CPU {138B61C0-9D0E-44A1-9EA1-E8142303ECA5}.Release|x86.ActiveCfg = Release|Any CPU {138B61C0-9D0E-44A1-9EA1-E8142303ECA5}.Release|x86.Build.0 = Release|Any CPU + {FC51CA4D-213B-4F50-B11A-90EA24CBE55A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FC51CA4D-213B-4F50-B11A-90EA24CBE55A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FC51CA4D-213B-4F50-B11A-90EA24CBE55A}.Debug|x64.ActiveCfg = Debug|Any CPU + {FC51CA4D-213B-4F50-B11A-90EA24CBE55A}.Debug|x64.Build.0 = Debug|Any CPU + {FC51CA4D-213B-4F50-B11A-90EA24CBE55A}.Debug|x86.ActiveCfg = Debug|Any CPU + {FC51CA4D-213B-4F50-B11A-90EA24CBE55A}.Debug|x86.Build.0 = Debug|Any CPU + {FC51CA4D-213B-4F50-B11A-90EA24CBE55A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FC51CA4D-213B-4F50-B11A-90EA24CBE55A}.Release|Any CPU.Build.0 = Release|Any CPU + {FC51CA4D-213B-4F50-B11A-90EA24CBE55A}.Release|x64.ActiveCfg = Release|Any CPU + {FC51CA4D-213B-4F50-B11A-90EA24CBE55A}.Release|x64.Build.0 = Release|Any CPU + {FC51CA4D-213B-4F50-B11A-90EA24CBE55A}.Release|x86.ActiveCfg = Release|Any CPU + {FC51CA4D-213B-4F50-B11A-90EA24CBE55A}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -362,5 +364,6 @@ Global {B54BD1A5-F4AB-485B-8478-520B6AA1E9E7} = {5E1B5E7C-8C9C-47AD-8F8F-19628E8D1B34} {0636EEB2-FE81-4424-8CFC-CCEB25360A40} = {3F76A15C-B128-4A31-A887-05E303CF8D7F} {138B61C0-9D0E-44A1-9EA1-E8142303ECA5} = {35E5CBAF-5596-AC3C-3DBD-816FC74B54D0} + {FC51CA4D-213B-4F50-B11A-90EA24CBE55A} = {F5B68159-9278-7C75-41B6-315547561DBE} EndGlobalSection EndGlobal diff --git a/src/Monitor/Monitor/Az.Monitor.psd1 b/src/Monitor/Monitor/Az.Monitor.psd1 index b08bdf25d62c..20e1a17d94d5 100644 --- a/src/Monitor/Monitor/Az.Monitor.psd1 +++ b/src/Monitor/Monitor/Az.Monitor.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 4/1/2025 +# Generated on: 6/26/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.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'ActionGroup.Autorest/bin/Az.ActionGroup.private.dll', diff --git a/src/Monitor/Monitor/ChangeLog.md b/src/Monitor/Monitor/ChangeLog.md index f94b659a0236..44a5e772e3ad 100644 --- a/src/Monitor/Monitor/ChangeLog.md +++ b/src/Monitor/Monitor/ChangeLog.md @@ -19,6 +19,12 @@ --> ## Upcoming Release +* Added breaking change announcement for below cmdlets from single object or fixed array to list. + - `Get-AzActivityLogAlert` + - `New-AzActivityLogAlert` + - `Update-AzActivityLogAlert` + - `New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject` + - `New-AzActivityLogAlertAlertRuleLeafConditionObject` ## Version 6.0.2 * Pipeline Group upgraded API version to 2024-10-01-preview From 06ae2a1f9d4dd9f7e42e0beca5fad8dff2b6c8b3 Mon Sep 17 00:00:00 2001 From: JoyerJin <116236375+JoyerJin@users.noreply.github.com> Date: Thu, 26 Jun 2025 15:55:39 +0800 Subject: [PATCH 2/3] Update New-AzActivityLogAlertAlertRuleLeafConditionObject.ps1 --- .../New-AzActivityLogAlertAlertRuleLeafConditionObject.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlertAlertRuleLeafConditionObject.ps1 b/src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlertAlertRuleLeafConditionObject.ps1 index 4259860a0ce0..09cd2b7da1db 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlertAlertRuleLeafConditionObject.ps1 +++ b/src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlertAlertRuleLeafConditionObject.ps1 @@ -26,7 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.A https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzActivityLogAlertAlertRuleLeafConditionObject #> function New-AzActivityLogAlertAlertRuleLeafConditionObject { - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Runtime.CmdletBreakingChange("15.0.0", "7.0.0", "2025/11/03", ChangeDescription="The type of property 'ContainsAny' has changed from array to List.")] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Runtime.CmdletBreakingChange("15.0.0", "7.0.0", "2025/11/03", ChangeDescription="The type of property 'ContainsAny' will be changed from array to List.")] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleLeafCondition')] [CmdletBinding(PositionalBinding=$false)] Param( From cad4343d2a6ab4e2739c0ab318c3f062ad46e246 Mon Sep 17 00:00:00 2001 From: JoyerJin <116236375+JoyerJin@users.noreply.github.com> Date: Mon, 14 Jul 2025 16:58:56 +0800 Subject: [PATCH 3/3] update breaking change message --- .../ActivityLogAlert.Autorest/README.md | 38 ++++++++++++++++++- ...ertAlertRuleAnyOfOrLeafConditionObject.ps1 | 5 ++- ...tyLogAlertAlertRuleLeafConditionObject.ps1 | 4 +- .../docs/Az.ActivityLogAlert.md | 2 +- .../generate-info.json | 2 +- src/Monitor/Monitor.sln | 28 +++++++------- src/Monitor/Monitor/Az.Monitor.psd1 | 4 +- 7 files changed, 60 insertions(+), 23 deletions(-) diff --git a/src/Monitor/ActivityLogAlert.Autorest/README.md b/src/Monitor/ActivityLogAlert.Autorest/README.md index 8612c067109e..459301515d5b 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/README.md +++ b/src/Monitor/ActivityLogAlert.Autorest/README.md @@ -52,13 +52,49 @@ use-extension: directive: - where: + verb: Get subject: ActivityLogAlert set: breaking-change: - change-description: The types of the properties ActionGroup, ConditionAllOf, Scope, AnyOf, and ContainsAny will be changed from single object or fixed array to 'List'. + deprecated-output-properties: + - ActionGroup + - ConditionAllOf + - Scope[] + new-output-properties: + - List[ActionGroup] + - List[ConditionAllOf] + - List[Scope] deprecated-by-version: 7.0.0 deprecated-by-azversion: 15.0.0 change-effective-date: 2025/11/03 + - where: + verb: New|Update + subject: ActivityLogAlert + set: + breaking-change: + deprecated-output-properties: + - ActionGroup + - ConditionAllOf[] + - Scope[] + - AnyOf[] + new-output-properties: + - List[ActionGroup] + - List[ConditionAllOf] + - List[Scope] + - List[AnyOf] + deprecated-by-version: 7.0.0 + deprecated-by-azversion: 15.0.0 + change-effective-date: 2025/11/03 + - where: + parameter-name: Action|Condition|Scope + 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 + # 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 diff --git a/src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.ps1 b/src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.ps1 index 1b6b1b5f2d69..ee575426dac8 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.ps1 +++ b/src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.ps1 @@ -26,14 +26,15 @@ Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.A https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject #> function New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject { - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Runtime.CmdletBreakingChange("15.0.0", "7.0.0", "2025/11/03", ChangeDescription="The type of property 'AnyOf' and 'ContainsAny' will be changed from array to List.")] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleAnyOfOrLeafCondition","15.0.0", "7.0.0", "2025/11/03", DeprecatedOutputProperties='"ContainsAny","AnyOf[]"', NewOutputProperties='"List[ContainsAny]","List[AnyOf]"')] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleAnyOfOrLeafCondition')] [CmdletBinding(PositionalBinding=$false)] Param( - + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Runtime.ParameterBreakingChange("AnyOf", "15.0.0", "7.0.0", "2025/11/03", OldParamaterType="Array", NewParameterType="List")] [Parameter(HelpMessage="An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.")] [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IAlertRuleLeafCondition[]] $AnyOf, + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Runtime.ParameterBreakingChange("ContainsAny", "15.0.0", "7.0.0", "2025/11/03", OldParamaterType="Array", NewParameterType="List")] [Parameter(HelpMessage="The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.")] [string[]] $ContainsAny, diff --git a/src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlertAlertRuleLeafConditionObject.ps1 b/src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlertAlertRuleLeafConditionObject.ps1 index 09cd2b7da1db..500f2f852f54 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlertAlertRuleLeafConditionObject.ps1 +++ b/src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlertAlertRuleLeafConditionObject.ps1 @@ -26,11 +26,11 @@ Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.A https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzActivityLogAlertAlertRuleLeafConditionObject #> function New-AzActivityLogAlertAlertRuleLeafConditionObject { - [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Runtime.CmdletBreakingChange("15.0.0", "7.0.0", "2025/11/03", ChangeDescription="The type of property 'ContainsAny' will be changed from array to List.")] + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleLeafCondition", "15.0.0", "7.0.0", "2025/11/03", DeprecatedOutputProperties="ContainsAny", NewOutputProperties="List[ContainsAny]")] [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleLeafCondition')] [CmdletBinding(PositionalBinding=$false)] Param( - + [Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Runtime.ParameterBreakingChange("ContainsAny", "15.0.0", "7.0.0", "2025/11/03", OldParamaterType="Array", NewParameterType="List")] [Parameter(HelpMessage="The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.")] [string[]] $ContainsAny, diff --git a/src/Monitor/ActivityLogAlert.Autorest/docs/Az.ActivityLogAlert.md b/src/Monitor/ActivityLogAlert.Autorest/docs/Az.ActivityLogAlert.md index 1cbbba9bdb61..463955c13f70 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/docs/Az.ActivityLogAlert.md +++ b/src/Monitor/ActivityLogAlert.Autorest/docs/Az.ActivityLogAlert.md @@ -1,6 +1,6 @@ --- Module Name: Az.ActivityLogAlert -Module Guid: dccda9aa-2ba4-49cd-add3-fe720b425f58 +Module Guid: 83e58f08-b015-404d-8cf1-9115293f74af Download Help Link: https://learn.microsoft.com/powershell/module/az.activitylogalert Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Monitor/ActivityLogAlert.Autorest/generate-info.json b/src/Monitor/ActivityLogAlert.Autorest/generate-info.json index 9b3037bcd969..f9359382fe2f 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/generate-info.json +++ b/src/Monitor/ActivityLogAlert.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "6ed94251-9849-4c6d-9452-d57c10a21365" + "generate_Id": "557a23dd-6cc7-4465-9727-de2275b798dd" } diff --git a/src/Monitor/Monitor.sln b/src/Monitor/Monitor.sln index 307ae7049264..a19130e3b70e 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}") = "ActivityLogAlert.Autorest", "ActivityLogAlert.Autorest", "{F5B68159-9278-7C75-41B6-315547561DBE}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ActivityLogAlert", "..\..\generated\Monitor\ActivityLogAlert.Autorest\Az.ActivityLogAlert.csproj", "{FC51CA4D-213B-4F50-B11A-90EA24CBE55A}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ActivityLogAlert", "..\..\generated\Monitor\ActivityLogAlert.Autorest\Az.ActivityLogAlert.csproj", "{8CCDA0AF-4765-4CE0-AED1-FE3EA06DD53F}" 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 - {FC51CA4D-213B-4F50-B11A-90EA24CBE55A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FC51CA4D-213B-4F50-B11A-90EA24CBE55A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FC51CA4D-213B-4F50-B11A-90EA24CBE55A}.Debug|x64.ActiveCfg = Debug|Any CPU - {FC51CA4D-213B-4F50-B11A-90EA24CBE55A}.Debug|x64.Build.0 = Debug|Any CPU - {FC51CA4D-213B-4F50-B11A-90EA24CBE55A}.Debug|x86.ActiveCfg = Debug|Any CPU - {FC51CA4D-213B-4F50-B11A-90EA24CBE55A}.Debug|x86.Build.0 = Debug|Any CPU - {FC51CA4D-213B-4F50-B11A-90EA24CBE55A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FC51CA4D-213B-4F50-B11A-90EA24CBE55A}.Release|Any CPU.Build.0 = Release|Any CPU - {FC51CA4D-213B-4F50-B11A-90EA24CBE55A}.Release|x64.ActiveCfg = Release|Any CPU - {FC51CA4D-213B-4F50-B11A-90EA24CBE55A}.Release|x64.Build.0 = Release|Any CPU - {FC51CA4D-213B-4F50-B11A-90EA24CBE55A}.Release|x86.ActiveCfg = Release|Any CPU - {FC51CA4D-213B-4F50-B11A-90EA24CBE55A}.Release|x86.Build.0 = Release|Any CPU + {8CCDA0AF-4765-4CE0-AED1-FE3EA06DD53F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8CCDA0AF-4765-4CE0-AED1-FE3EA06DD53F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8CCDA0AF-4765-4CE0-AED1-FE3EA06DD53F}.Debug|x64.ActiveCfg = Debug|Any CPU + {8CCDA0AF-4765-4CE0-AED1-FE3EA06DD53F}.Debug|x64.Build.0 = Debug|Any CPU + {8CCDA0AF-4765-4CE0-AED1-FE3EA06DD53F}.Debug|x86.ActiveCfg = Debug|Any CPU + {8CCDA0AF-4765-4CE0-AED1-FE3EA06DD53F}.Debug|x86.Build.0 = Debug|Any CPU + {8CCDA0AF-4765-4CE0-AED1-FE3EA06DD53F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8CCDA0AF-4765-4CE0-AED1-FE3EA06DD53F}.Release|Any CPU.Build.0 = Release|Any CPU + {8CCDA0AF-4765-4CE0-AED1-FE3EA06DD53F}.Release|x64.ActiveCfg = Release|Any CPU + {8CCDA0AF-4765-4CE0-AED1-FE3EA06DD53F}.Release|x64.Build.0 = Release|Any CPU + {8CCDA0AF-4765-4CE0-AED1-FE3EA06DD53F}.Release|x86.ActiveCfg = Release|Any CPU + {8CCDA0AF-4765-4CE0-AED1-FE3EA06DD53F}.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} - {FC51CA4D-213B-4F50-B11A-90EA24CBE55A} = {F5B68159-9278-7C75-41B6-315547561DBE} + {8CCDA0AF-4765-4CE0-AED1-FE3EA06DD53F} = {F5B68159-9278-7C75-41B6-315547561DBE} EndGlobalSection EndGlobal diff --git a/src/Monitor/Monitor/Az.Monitor.psd1 b/src/Monitor/Monitor/Az.Monitor.psd1 index 40d82351b6b9..d74a8f8ac3b1 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/14/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 = '5.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',