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..459301515d5b 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/README.md +++ b/src/Monitor/ActivityLogAlert.Autorest/README.md @@ -51,6 +51,50 @@ use-extension: "@autorest/powershell": "3.x" directive: + - where: + verb: Get + subject: ActivityLogAlert + set: + breaking-change: + 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 @@ -83,9 +127,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 81% 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..ee575426dac8 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/custom/autogen-model-cmdlets/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.ps1 +++ b/src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.ps1 @@ -26,13 +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.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/autogen-model-cmdlets/New-AzActivityLogAlertAlertRuleLeafConditionObject.ps1 b/src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlertAlertRuleLeafConditionObject.ps1 similarity index 84% 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..500f2f852f54 100644 --- a/src/Monitor/ActivityLogAlert.Autorest/custom/autogen-model-cmdlets/New-AzActivityLogAlertAlertRuleLeafConditionObject.ps1 +++ b/src/Monitor/ActivityLogAlert.Autorest/custom/New-AzActivityLogAlertAlertRuleLeafConditionObject.ps1 @@ -26,10 +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.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 1faf4a81537d..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: 51359a36-98ad-4a4b-878d-564c18864934 +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 094946275bd7..f9359382fe2f 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": "557a23dd-6cc7-4465-9727-de2275b798dd" } 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 e8c2aeb78095..a19130e3b70e 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", "{8CCDA0AF-4765-4CE0-AED1-FE3EA06DD53F}" +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 @@ -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 + {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 @@ -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} + {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 e9d4a2a63b59..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 = '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', diff --git a/src/Monitor/Monitor/ChangeLog.md b/src/Monitor/Monitor/ChangeLog.md index 4d0727106cc2..ff0c0196e94a 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