Skip to content

Commit 633dded

Browse files
authored
[PS][Monitor] Add breaking change for ScheduledQueryRule (#28227)
1 parent b7bb89a commit 633dded

File tree

9 files changed

+103
-28
lines changed

9 files changed

+103
-28
lines changed

src/Monitor/Monitor.sln

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.MonitorWorkspace", "..\.
4141
EndProject
4242
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.PipelineGroup", "..\..\generated\Monitor\PipelineGroup.Autorest\Az.PipelineGroup.csproj", "{BBB1BE4E-4595-4589-AB2B-14BCFF7EB65C}"
4343
EndProject
44-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ScheduledQueryRule", "..\..\generated\Monitor\ScheduledQueryRule.Autorest\Az.ScheduledQueryRule.csproj", "{7CDB5277-30F0-4C26-97D9-DD08A11AA3B2}"
45-
EndProject
4644
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ApplicationInsights", "..\..\generated\ApplicationInsights\ApplicationInsights.Autorest\Az.ApplicationInsights.csproj", "{988AD78A-B61E-4D34-968B-05A014140ACF}"
4745
EndProject
4846
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "DataCollectionRule.Autorest", "DataCollectionRule.Autorest", "{35E5CBAF-5596-AC3C-3DBD-816FC74B54D0}"
@@ -69,6 +67,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "MonitorWorkspace.Autorest",
6967
EndProject
7068
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.MonitorWorkspace", "..\..\generated\Monitor\MonitorWorkspace.Autorest\Az.MonitorWorkspace.csproj", "{3BDF8EC5-1C35-4425-AB3C-6EF677F618E2}"
7169
EndProject
70+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ScheduledQueryRule.Autorest", "ScheduledQueryRule.Autorest", "{DFE9A16E-4879-AFA3-BD8B-DBC73F42D0CA}"
71+
EndProject
72+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ScheduledQueryRule", "..\..\generated\Monitor\ScheduledQueryRule.Autorest\Az.ScheduledQueryRule.csproj", "{A3CBC4A9-A39C-4343-99F2-F3F53F20049B}"
73+
EndProject
7274
Global
7375
GlobalSection(SolutionConfigurationPlatforms) = preSolution
7476
Debug|Any CPU = Debug|Any CPU
@@ -271,18 +273,6 @@ Global
271273
{BBB1BE4E-4595-4589-AB2B-14BCFF7EB65C}.Release|x64.Build.0 = Release|Any CPU
272274
{BBB1BE4E-4595-4589-AB2B-14BCFF7EB65C}.Release|x86.ActiveCfg = Release|Any CPU
273275
{BBB1BE4E-4595-4589-AB2B-14BCFF7EB65C}.Release|x86.Build.0 = Release|Any CPU
274-
{7CDB5277-30F0-4C26-97D9-DD08A11AA3B2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
275-
{7CDB5277-30F0-4C26-97D9-DD08A11AA3B2}.Debug|Any CPU.Build.0 = Debug|Any CPU
276-
{7CDB5277-30F0-4C26-97D9-DD08A11AA3B2}.Debug|x64.ActiveCfg = Debug|Any CPU
277-
{7CDB5277-30F0-4C26-97D9-DD08A11AA3B2}.Debug|x64.Build.0 = Debug|Any CPU
278-
{7CDB5277-30F0-4C26-97D9-DD08A11AA3B2}.Debug|x86.ActiveCfg = Debug|Any CPU
279-
{7CDB5277-30F0-4C26-97D9-DD08A11AA3B2}.Debug|x86.Build.0 = Debug|Any CPU
280-
{7CDB5277-30F0-4C26-97D9-DD08A11AA3B2}.Release|Any CPU.ActiveCfg = Release|Any CPU
281-
{7CDB5277-30F0-4C26-97D9-DD08A11AA3B2}.Release|Any CPU.Build.0 = Release|Any CPU
282-
{7CDB5277-30F0-4C26-97D9-DD08A11AA3B2}.Release|x64.ActiveCfg = Release|Any CPU
283-
{7CDB5277-30F0-4C26-97D9-DD08A11AA3B2}.Release|x64.Build.0 = Release|Any CPU
284-
{7CDB5277-30F0-4C26-97D9-DD08A11AA3B2}.Release|x86.ActiveCfg = Release|Any CPU
285-
{7CDB5277-30F0-4C26-97D9-DD08A11AA3B2}.Release|x86.Build.0 = Release|Any CPU
286276
{988AD78A-B61E-4D34-968B-05A014140ACF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
287277
{988AD78A-B61E-4D34-968B-05A014140ACF}.Debug|Any CPU.Build.0 = Debug|Any CPU
288278
{988AD78A-B61E-4D34-968B-05A014140ACF}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -367,6 +357,18 @@ Global
367357
{0D41ADE3-ABBA-445B-8990-EA015AD4203D}.Release|x64.Build.0 = Release|Any CPU
368358
{0D41ADE3-ABBA-445B-8990-EA015AD4203D}.Release|x86.ActiveCfg = Release|Any CPU
369359
{0D41ADE3-ABBA-445B-8990-EA015AD4203D}.Release|x86.Build.0 = Release|Any CPU
360+
{A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
361+
{A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Debug|Any CPU.Build.0 = Debug|Any CPU
362+
{A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Debug|x64.ActiveCfg = Debug|Any CPU
363+
{A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Debug|x64.Build.0 = Debug|Any CPU
364+
{A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Debug|x86.ActiveCfg = Debug|Any CPU
365+
{A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Debug|x86.Build.0 = Debug|Any CPU
366+
{A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Release|Any CPU.ActiveCfg = Release|Any CPU
367+
{A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Release|Any CPU.Build.0 = Release|Any CPU
368+
{A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Release|x64.ActiveCfg = Release|Any CPU
369+
{A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Release|x64.Build.0 = Release|Any CPU
370+
{A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Release|x86.ActiveCfg = Release|Any CPU
371+
{A3CBC4A9-A39C-4343-99F2-F3F53F20049B}.Release|x86.Build.0 = Release|Any CPU
370372
{3BDF8EC5-1C35-4425-AB3C-6EF677F618E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
371373
{3BDF8EC5-1C35-4425-AB3C-6EF677F618E2}.Debug|Any CPU.Build.0 = Debug|Any CPU
372374
{3BDF8EC5-1C35-4425-AB3C-6EF677F618E2}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -411,6 +413,8 @@ Global
411413
{0636EEB2-FE81-4424-8CFC-CCEB25360A40} = {3F76A15C-B128-4A31-A887-05E303CF8D7F}
412414
{138B61C0-9D0E-44A1-9EA1-E8142303ECA5} = {35E5CBAF-5596-AC3C-3DBD-816FC74B54D0}
413415
{0A51A656-9092-4C82-83B5-524516C8FED7} = {97973F8C-3EE1-368A-3B71-C62280C2DC8C}
416+
{0D41ADE3-ABBA-445B-8990-EA015AD4203D} = {F5B68159-9278-7C75-41B6-315547561DBE}
417+
{A3CBC4A9-A39C-4343-99F2-F3F53F20049B} = {DFE9A16E-4879-AFA3-BD8B-DBC73F42D0CA}
414418
{81F263BA-D395-42CB-A7E0-AFC20029C4BC} = {F5B68159-9278-7C75-41B6-315547561DBE}
415419
{88085FD3-B4EE-4AC4-94B7-D1D2A9A18033} = {4644B825-05AB-0B45-5567-89C0D700A638}
416420
{A55047D2-EBBB-4C25-BD5E-52FEF9E5C627} = {0832AC06-44A1-FEDA-3879-082134F4AAB5}

src/Monitor/Monitor/ChangeLog.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,6 @@
2525
- `Update-AzActivityLogAlert`
2626
- `New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject`
2727
- `New-AzActivityLogAlertAlertRuleLeafConditionObject`
28-
- `Get-AzMonitorWorkspace`
29-
- `New-AzMonitorWorkspace`
30-
- `Update-AzMonitorWorkspace`
31-
- `New-AzDiagnosticSetting`
32-
- `New-AzSubscriptionDiagnosticSetting`
33-
- `Get-AzDiagnosticSetting`
34-
- `Get-AzDiagnosticSettingCategory`
35-
- `Get-AzSubscriptionDiagnosticSetting`
3628
- `Get-AzAutoscalePredictiveMetric`
3729
- `Get-AzAutoscaleSetting`
3830
- `New-AzAutoscaleNotificationObject`
@@ -41,6 +33,19 @@
4133
- `New-AzAutoscaleScaleRuleObject`
4234
- `New-AzAutoscaleSetting`
4335
- `Update-AzAutoscaleSetting`
36+
- `Get-AzMonitorWorkspace`
37+
- `New-AzMonitorWorkspace`
38+
- `Update-AzMonitorWorkspace`
39+
- `New-AzDiagnosticSetting`
40+
- `New-AzSubscriptionDiagnosticSetting`
41+
- `Get-AzDiagnosticSetting`
42+
- `Get-AzDiagnosticSettingCategory`
43+
- `Get-AzSubscriptionDiagnosticSetting`
44+
- `Get-AzScheduledQueryRule`
45+
- `New-AzScheduledQueryRule`
46+
- `New-AzScheduledQueryRuleConditionObject`
47+
- `New-AzScheduledQueryRuleDimensionObject`
48+
- `Update-AzScheduledQueryRule`
4449

4550
## Version 6.0.2
4651
* Pipeline Group upgraded API version to 2024-10-01-preview
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
13+
14+
using System;
15+
using System.Reflection;
16+
using System.Runtime.CompilerServices;
17+
using System.Runtime.InteropServices;
18+
19+
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
20+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
21+
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ScheduledQueryRule")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("6.0.2")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("6.0.2")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

src/Monitor/ScheduledQueryRule.Autorest/README.md

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,35 @@ directive:
8888
- from: source-file-csharp
8989
where: $
9090
transform: $ = $.replace('public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.ScheduledQueryRule.Support.ConditionOperator Equals = @"Equals";', 'public static Microsoft.Azure.PowerShell.Cmdlets.Monitor.ScheduledQueryRule.Support.ConditionOperator Equal = @"Equals";');
91-
- model-cmdlet:
92-
- Condition
93-
- Dimension
91+
# - model-cmdlet:
92+
# - Condition
93+
# - Dimension
94+
- where:
95+
verb: Get|Update|New
96+
subject: ScheduledQueryRule
97+
set:
98+
breaking-change:
99+
deprecated-output-properties:
100+
- ActionGroup
101+
- CriterionAllOf
102+
- Scope
103+
- TargetResourceType
104+
new-output-properties:
105+
- ActionGroup
106+
- CriterionAllOf
107+
- Scope
108+
- TargetResourceType
109+
change-description: The types of the properties ActionGroup, CriterionAllOf, Scope and TargetResourceType will be changed from single object or fixed array to 'List'.
110+
deprecated-by-version: 7.0.0
111+
deprecated-by-azversion: 15.0.0
112+
change-effective-date: 2025/11/03
113+
- where:
114+
parameter-name: Dimension|Value
115+
set:
116+
breaking-change:
117+
old-parameter-type: Array
118+
new-parameter-type: List
119+
deprecated-by-version: 7.0.0
120+
deprecated-by-azversion: 15.0.0
121+
change-effective-date: 2025/11/03
94122
```
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function New-AzScheduledQueryRuleConditionObject {
2929
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.Monitor.ScheduledQueryRule.Models.Api20210801.Condition')]
3030
[CmdletBinding(PositionalBinding=$false)]
3131
Param(
32-
32+
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.ScheduledQueryRule.Runtime.ParameterBreakingChange("Dimension", "15.0.0", "7.0.0", "2025/11/03", OldParamaterType="Array", NewParameterType="List")]
3333
[Parameter(HelpMessage="List of Dimensions conditions.")]
3434
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.ScheduledQueryRule.Models.Api20210801.IDimension[]]
3535
$Dimension,
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ function New-AzScheduledQueryRuleDimensionObject {
3737
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Monitor.ScheduledQueryRule.Support.DimensionOperator])]
3838
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.ScheduledQueryRule.Support.DimensionOperator]
3939
$Operator,
40+
[Microsoft.Azure.PowerShell.Cmdlets.Monitor.ScheduledQueryRule.Runtime.ParameterBreakingChange("Value", "15.0.0", "7.0.0", "2025/11/03", OldParamaterType="Array", NewParameterType="List")]
4041
[Parameter(Mandatory, HelpMessage="List of dimension values.")]
4142
[string[]]
4243
$Value

src/Monitor/ScheduledQueryRule.Autorest/docs/Az.ScheduledQueryRule.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.ScheduledQueryRule
3-
Module Guid: 5d68afef-2016-4216-9fb2-5e000f70d2be
3+
Module Guid: 806a79ac-f0d4-4c15-92e5-3b6fc73a71cd
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.scheduledqueryrule
55
Help Version: 1.0.0.0
66
Locale: en-US
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"generate_Id": "af0c64e6-c8aa-4f64-a475-c7245b1aa47c"
2+
"generate_Id": "53f643da-e033-4998-94da-05be732ad29b"
33
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Resources
2+
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.
3+
4+
## Info
5+
- Modifiable: yes
6+
- Generated: no
7+
- Committed: yes
8+
- Packaged: no
9+
10+
## Purpose
11+
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.

0 commit comments

Comments
 (0)