Skip to content

Commit 508b94b

Browse files
JoyerJinCopilot
andauthored
[PS][Monitor] Add Breaking Change Message for DiagnosticSetting (#28215)
Co-authored-by: Copilot <[email protected]>
1 parent 0f0da82 commit 508b94b

File tree

7 files changed

+126
-17
lines changed

7 files changed

+126
-17
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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 - DiagnosticSetting")]
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)]
27+

src/Monitor/DiagnosticSetting.Autorest/README.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,56 @@ use-extension:
5353
"@autorest/powershell": "3.x"
5454

5555
directive:
56+
- where:
57+
verb: Get|New
58+
subject: DiagnosticSetting
59+
set:
60+
breaking-change:
61+
deprecated-output-properties:
62+
- Log
63+
- Metric
64+
new-output-properties:
65+
- Log
66+
- Metric
67+
change-description: The types of the properties Log and Metric will be changed from single object or fixed array to 'List'.
68+
deprecated-by-version: 7.0.0
69+
deprecated-by-azversion: 15.0.0
70+
change-effective-date: 2025/11/03
71+
- where:
72+
verb: Get
73+
subject: DiagnosticSettingsCategory
74+
set:
75+
breaking-change:
76+
deprecated-output-properties:
77+
- CategoryGroup
78+
new-output-properties:
79+
- CategoryGroup
80+
change-description: The type of the property CategoryGroup will be changed from fixed array to 'List'.
81+
deprecated-by-version: 7.0.0
82+
deprecated-by-azversion: 15.0.0
83+
change-effective-date: 2025/11/03
84+
- where:
85+
verb: Get|New
86+
subject: SubscriptionDiagnosticSetting
87+
set:
88+
breaking-change:
89+
deprecated-output-properties:
90+
- Log
91+
new-output-properties:
92+
- Log
93+
change-description: The type of the property Log will be changed from single object or fixed array to 'List'.
94+
deprecated-by-version: 7.0.0
95+
deprecated-by-azversion: 15.0.0
96+
change-effective-date: 2025/11/03
97+
- where:
98+
parameter-name: Log
99+
set:
100+
breaking-change:
101+
old-parameter-type: Array
102+
new-parameter-type: List
103+
deprecated-by-version: 7.0.0
104+
deprecated-by-azversion: 15.0.0
105+
change-effective-date: 2025/11/03
56106
# Following is two common directive which are normally required in all the RPs
57107
# 1. Remove the unexpanded parameter set
58108
# 2. For New-* cmdlets, ViaIdentity is not required, so CreateViaIdentityExpanded is removed as well

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.DiagnosticSetting
3-
Module Guid: 58f9f986-1839-4efb-baf4-5ba95f2726bd
3+
Module Guid: 6210decd-f3c4-4cdf-87d4-f4bca61bf471
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.diagnosticsetting
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": "c5c70d3a-756d-4a6b-aad1-fe0e0747df71"
2+
"generate_Id": "a61cca1c-3798-4b51-9d48-f8981ebf9903"
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.

src/Monitor/Monitor.sln

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ EndProject
4040
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ActivityLogAlert", "..\..\generated\Monitor\ActivityLogAlert.Autorest\Az.ActivityLogAlert.csproj", "{A25F7324-8E75-4640-A6B2-B904378FC7F4}"
4141
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Autoscale", "..\..\generated\Monitor\Autoscale.Autorest\Az.Autoscale.csproj", "{64D875E7-2E3B-40B2-945C-B8891BC6EF41}"
4242
EndProject
43-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DiagnosticSetting", "..\..\generated\Monitor\DiagnosticSetting.Autorest\Az.DiagnosticSetting.csproj", "{32336385-5322-43AC-B6D4-B99CDB5EDA5A}"
44-
EndProject
4543
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.MonitorWorkspace", "..\..\generated\Monitor\MonitorWorkspace.Autorest\Az.MonitorWorkspace.csproj", "{803B981D-ED22-4DFF-90FA-C278DE8D228B}"
4644
EndProject
4745
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.PipelineGroup", "..\..\generated\Monitor\PipelineGroup.Autorest\Az.PipelineGroup.csproj", "{BBB1BE4E-4595-4589-AB2B-14BCFF7EB65C}"
@@ -63,7 +61,11 @@ EndProject
6361
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Autoscale", "..\..\generated\Monitor\Autoscale.Autorest\Az.Autoscale.csproj", "{A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}"
6462
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ActivityLogAlert.Autorest", "ActivityLogAlert.Autorest", "{F5B68159-9278-7C75-41B6-315547561DBE}"
6563
EndProject
66-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ActivityLogAlert", "..\..\generated\Monitor\ActivityLogAlert.Autorest\Az.ActivityLogAlert.csproj", "{0D41ADE3-ABBA-445B-8990-EA015AD4203D}"
64+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ActivityLogAlert", "..\..\generated\Monitor\ActivityLogAlert.Autorest\Az.ActivityLogAlert.csproj", "{81F263BA-D395-42CB-A7E0-AFC20029C4BC}"
65+
EndProject
66+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "DiagnosticSetting.Autorest", "DiagnosticSetting.Autorest", "{4644B825-05AB-0B45-5567-89C0D700A638}"
67+
EndProject
68+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DiagnosticSetting", "..\..\generated\Monitor\DiagnosticSetting.Autorest\Az.DiagnosticSetting.csproj", "{88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}"
6769
EndProject
6870
Global
6971
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -267,18 +269,6 @@ Global
267269
{64D875E7-2E3B-40B2-945C-B8891BC6EF41}.Release|x64.Build.0 = Release|Any CPU
268270
{64D875E7-2E3B-40B2-945C-B8891BC6EF41}.Release|x86.ActiveCfg = Release|Any CPU
269271
{64D875E7-2E3B-40B2-945C-B8891BC6EF41}.Release|x86.Build.0 = Release|Any CPU
270-
{32336385-5322-43AC-B6D4-B99CDB5EDA5A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
271-
{32336385-5322-43AC-B6D4-B99CDB5EDA5A}.Debug|Any CPU.Build.0 = Debug|Any CPU
272-
{32336385-5322-43AC-B6D4-B99CDB5EDA5A}.Debug|x64.ActiveCfg = Debug|Any CPU
273-
{32336385-5322-43AC-B6D4-B99CDB5EDA5A}.Debug|x64.Build.0 = Debug|Any CPU
274-
{32336385-5322-43AC-B6D4-B99CDB5EDA5A}.Debug|x86.ActiveCfg = Debug|Any CPU
275-
{32336385-5322-43AC-B6D4-B99CDB5EDA5A}.Debug|x86.Build.0 = Debug|Any CPU
276-
{32336385-5322-43AC-B6D4-B99CDB5EDA5A}.Release|Any CPU.ActiveCfg = Release|Any CPU
277-
{32336385-5322-43AC-B6D4-B99CDB5EDA5A}.Release|Any CPU.Build.0 = Release|Any CPU
278-
{32336385-5322-43AC-B6D4-B99CDB5EDA5A}.Release|x64.ActiveCfg = Release|Any CPU
279-
{32336385-5322-43AC-B6D4-B99CDB5EDA5A}.Release|x64.Build.0 = Release|Any CPU
280-
{32336385-5322-43AC-B6D4-B99CDB5EDA5A}.Release|x86.ActiveCfg = Release|Any CPU
281-
{32336385-5322-43AC-B6D4-B99CDB5EDA5A}.Release|x86.Build.0 = Release|Any CPU
282272
{803B981D-ED22-4DFF-90FA-C278DE8D228B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
283273
{803B981D-ED22-4DFF-90FA-C278DE8D228B}.Debug|Any CPU.Build.0 = Debug|Any CPU
284274
{803B981D-ED22-4DFF-90FA-C278DE8D228B}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -351,6 +341,30 @@ Global
351341
{0A51A656-9092-4C82-83B5-524516C8FED7}.Release|x64.Build.0 = Release|Any CPU
352342
{0A51A656-9092-4C82-83B5-524516C8FED7}.Release|x86.ActiveCfg = Release|Any CPU
353343
{0A51A656-9092-4C82-83B5-524516C8FED7}.Release|x86.Build.0 = Release|Any CPU
344+
{81F263BA-D395-42CB-A7E0-AFC20029C4BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
345+
{81F263BA-D395-42CB-A7E0-AFC20029C4BC}.Debug|Any CPU.Build.0 = Debug|Any CPU
346+
{81F263BA-D395-42CB-A7E0-AFC20029C4BC}.Debug|x64.ActiveCfg = Debug|Any CPU
347+
{81F263BA-D395-42CB-A7E0-AFC20029C4BC}.Debug|x64.Build.0 = Debug|Any CPU
348+
{81F263BA-D395-42CB-A7E0-AFC20029C4BC}.Debug|x86.ActiveCfg = Debug|Any CPU
349+
{81F263BA-D395-42CB-A7E0-AFC20029C4BC}.Debug|x86.Build.0 = Debug|Any CPU
350+
{81F263BA-D395-42CB-A7E0-AFC20029C4BC}.Release|Any CPU.ActiveCfg = Release|Any CPU
351+
{81F263BA-D395-42CB-A7E0-AFC20029C4BC}.Release|Any CPU.Build.0 = Release|Any CPU
352+
{81F263BA-D395-42CB-A7E0-AFC20029C4BC}.Release|x64.ActiveCfg = Release|Any CPU
353+
{81F263BA-D395-42CB-A7E0-AFC20029C4BC}.Release|x64.Build.0 = Release|Any CPU
354+
{81F263BA-D395-42CB-A7E0-AFC20029C4BC}.Release|x86.ActiveCfg = Release|Any CPU
355+
{81F263BA-D395-42CB-A7E0-AFC20029C4BC}.Release|x86.Build.0 = Release|Any CPU
356+
{88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
357+
{88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Debug|Any CPU.Build.0 = Debug|Any CPU
358+
{88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Debug|x64.ActiveCfg = Debug|Any CPU
359+
{88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Debug|x64.Build.0 = Debug|Any CPU
360+
{88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Debug|x86.ActiveCfg = Debug|Any CPU
361+
{88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Debug|x86.Build.0 = Debug|Any CPU
362+
{88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Release|Any CPU.ActiveCfg = Release|Any CPU
363+
{88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Release|Any CPU.Build.0 = Release|Any CPU
364+
{88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Release|x64.ActiveCfg = Release|Any CPU
365+
{88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Release|x64.Build.0 = Release|Any CPU
366+
{88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Release|x86.ActiveCfg = Release|Any CPU
367+
{88085FD3-B4EE-4AC4-94B7-D1D2A9A18033}.Release|x86.Build.0 = Release|Any CPU
354368
{A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
355369
{A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Debug|Any CPU.Build.0 = Debug|Any CPU
356370
{A55047D2-EBBB-4C25-BD5E-52FEF9E5C627}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -407,6 +421,8 @@ Global
407421
{0636EEB2-FE81-4424-8CFC-CCEB25360A40} = {3F76A15C-B128-4A31-A887-05E303CF8D7F}
408422
{138B61C0-9D0E-44A1-9EA1-E8142303ECA5} = {35E5CBAF-5596-AC3C-3DBD-816FC74B54D0}
409423
{0A51A656-9092-4C82-83B5-524516C8FED7} = {97973F8C-3EE1-368A-3B71-C62280C2DC8C}
424+
{81F263BA-D395-42CB-A7E0-AFC20029C4BC} = {F5B68159-9278-7C75-41B6-315547561DBE}
425+
{88085FD3-B4EE-4AC4-94B7-D1D2A9A18033} = {4644B825-05AB-0B45-5567-89C0D700A638}
410426
{A55047D2-EBBB-4C25-BD5E-52FEF9E5C627} = {0832AC06-44A1-FEDA-3879-082134F4AAB5}
411427
{0D41ADE3-ABBA-445B-8990-EA015AD4203D} = {F5B68159-9278-7C75-41B6-315547561DBE}
412428
{ABBBEF38-2D27-4BBA-B980-BEEBDC2843F4} = {97973F8C-3EE1-368A-3B71-C62280C2DC8C}

src/Monitor/Monitor/ChangeLog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
- `Update-AzActivityLogAlert`
2626
- `New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject`
2727
- `New-AzActivityLogAlertAlertRuleLeafConditionObject`
28+
- `New-AzDiagnosticSetting`
29+
- `New-AzSubscriptionDiagnosticSetting`
30+
- `Get-AzDiagnosticSetting`
31+
- `Get-AzDiagnosticSettingCategory`
32+
- `Get-AzSubscriptionDiagnosticSetting`
2833
- `Get-AzAutoscalePredictiveMetric`
2934
- `Get-AzAutoscaleSetting`
3035
- `New-AzAutoscaleNotificationObject`

0 commit comments

Comments
 (0)