Skip to content

Commit a6c112f

Browse files
authored
add breaking change announcements for Az.Support (#24359)
1 parent c5a0b98 commit a6c112f

File tree

9 files changed

+103
-0
lines changed

9 files changed

+103
-0
lines changed

src/Support/Support/ChangeLog.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,35 @@
1919
-->
2020

2121
## Upcoming Release
22+
* Added breaking change warning messages for cmdlet deprecation
23+
- New-AzSupportContactProfileObject
24+
* Added breaking change warning messages for cmdlet rename
25+
- Get-AzSupportTicketCommunication
26+
- New-AzSupportTicketCommunication
27+
* Added breaking change warning messages for parameter name and/or structure changes
28+
- Get-AzSupportService
29+
- Get-AzSupportProblemClassification
30+
- Get-AzSupportTicketCommunication
31+
- Get-AzSupportTicket
32+
- New-AzSupportTicket
33+
- Update-AzSupportTicket
34+
* Added breaking change warning messages for output property name and/or structure changes
35+
- Get-AzSupportService
36+
- Get-AzSupportTicket
37+
- New-AzSupportTicket
38+
- Update-AzSupportTicket
39+
* Added breaking change warning messages for new required parameters
40+
- New-AzSupportTicket
41+
* Added breaking change warning messages for removed parameters
42+
- Get-AzSupportTicket
43+
- Get-AzSupportTicketCommunication
44+
- New-AzSupportTicket
45+
* Added breaking change warning message for removal of pipe parameter set for list/new
46+
- New-AzSupportTicketCommunication
47+
- Get-AzSupportProblemClassification
48+
- Get-AzSupportTicketCommunication
49+
* Added breaking change warning message for Get-AzSupportTicket retrieving tickets from the past week if no other parameters are specified
50+
- Get-AzSupportTicket
2251

2352
## Version 1.0.0
2453
* General availability of `Az.Support` module

src/Support/Support/Communications/GetAzSupportTicketCommunication.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
using Microsoft.Azure.Management.Support;
2020
using Microsoft.Azure.Management.Support.Models;
2121
using Microsoft.Rest.Azure;
22+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2223
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2324
using System;
2425
using System.Collections.Generic;
@@ -27,6 +28,11 @@
2728

2829
namespace Microsoft.Azure.Commands.Support.Communications
2930
{
31+
[GenericBreakingChangeWithVersion("The cmdlet Get-AzSupportTicketCommunication will be renamed to Get-AzSupportCommunication", "12.0.0", "2.0.0")]
32+
[GenericBreakingChangeWithVersion("Input parameter 'Skip' will be removed", "12.0.0", "2.0.0")]
33+
[GenericBreakingChangeWithVersion("Input parameter 'IncludeTotalCount' will be removed", "12.0.0", "2.0.0")]
34+
[GenericBreakingChangeWithVersion("Parameter 'First' will be renamed to 'Top'", "12.0.0", "2.0.0")]
35+
[GenericBreakingChangeWithVersion("Piping of Get-AzSupportTicketCommunication with a support ticket object will no longer be supported for list. Get via piping will still be supported.", "12.0.0", "2.0.0")]
3036
[Cmdlet(VerbsCommon.Get, AzureRMConstants.AzureRMPrefix + "SupportTicketCommunication", DefaultParameterSetName = GetByNameParameterSet, SupportsPaging = true), OutputType(typeof(PSSupportTicketCommunication))]
3137
public class GetAzSupportTicketCommunication : AzSupportCmdletBase
3238
{

src/Support/Support/Communications/NewAzSupportTicketCommunication.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,14 @@
1818
using Microsoft.Azure.Commands.Support.Models;
1919
using Microsoft.Azure.Management.Support;
2020
using Microsoft.Azure.Management.Support.Models;
21+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2122
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2223
using System.Management.Automation;
2324

2425
namespace Microsoft.Azure.Commands.Support.Communications
2526
{
27+
[GenericBreakingChangeWithVersion("The cmdlet New-AzSupportTicketCommunication will be renamed to New-AzSupportCommunication", "12.0.0", "2.0.0")]
28+
[GenericBreakingChangeWithVersion("Piping of New-AzSupportTicketCommunication with a support ticket object will no longer be supported.", "12.0.0", "2.0.0")]
2629
[Cmdlet(VerbsCommon.New, AzureRMConstants.AzureRMPrefix + "SupportTicketCommunication", DefaultParameterSetName = CreateByNameParameterSet, SupportsShouldProcess = true),
2730
OutputType(typeof(PSSupportTicketCommunication))]
2831
public class NewAzSupportTicketCommunication : AzSupportCmdletBase

src/Support/Support/ProblemClassifications/GetAzSupportProblemClassification.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,26 @@
1919
using Microsoft.Azure.Management.Support;
2020
using Microsoft.Azure.Management.Support.Models;
2121
using Microsoft.Azure.PowerShell.Cmdlets.Support.ArgumentCompleters;
22+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2223
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2324
using System.Linq;
2425
using System.Management.Automation;
2526
using static Microsoft.Azure.Commands.Support.Helpers.ResourceIdentifierHelper;
2627

2728
namespace Microsoft.Azure.Commands.Support.ProblemClassifications
2829
{
30+
[GenericBreakingChangeWithVersion("Piping of Get-AzSupportProblemClassification with a service object will no longer be supported for list. Get via piping will still be supported.", "12.0.0", "2.0.0")]
2931
[Cmdlet(VerbsCommon.Get, AzureRMConstants.AzureRMPrefix + "SupportProblemClassification", DefaultParameterSetName = GetByNameParameterSet), OutputType(typeof(PSSupportProblemClassification))]
3032
public class GetAzSupportProblemClassification : AzSupportCmdletBase
3133
{
34+
[CmdletParameterBreakingChangeWithVersion("ServiceId", "12.0.0", "2.0.0", ChangeDescription = "Parameter name 'ServiceId' will be changed to 'ServiceName'.")]
3235
[Parameter(Mandatory = true, ParameterSetName = GetByNameParameterSet, HelpMessage = "Service id for which all problem classifications are retrieved.")]
3336
[Alias("ServiceName")]
3437
[ServiceIdCompleter()]
3538
[ValidateNotNullOrEmpty]
3639
public string ServiceId { get; set; }
3740

41+
[CmdletParameterBreakingChangeWithVersion("Id", "12.0.0", "2.0.0", ChangeDescription = "Parameter name 'Id' will be changed to 'Name'.")]
3842
[Parameter(Mandatory = false, ParameterSetName = GetByNameParameterSet, HelpMessage = "Problem classification id.")]
3943
[Parameter(Mandatory = false, ParameterSetName = GetByParentObjectParameterSet, HelpMessage = "Problem classification id.")]
4044
[Alias("Name")]

src/Support/Support/Services/GetAzSupportService.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,18 @@
1919
using Microsoft.Azure.Management.Support;
2020
using Microsoft.Azure.Management.Support.Models;
2121
using Microsoft.Azure.PowerShell.Cmdlets.Support.ArgumentCompleters;
22+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2223
using System.Linq;
2324
using System.Management.Automation;
2425
using static Microsoft.Azure.Commands.Support.Helpers.ResourceIdentifierHelper;
2526

2627
namespace Microsoft.Azure.Commands.Support.Services
2728
{
29+
[CmdletOutputBreakingChangeWithVersion(typeof(PSSupportService), "12.0.0", "2.0.0", ChangeDescription = "Output property name 'ResourceTypes' will be changed to 'ResourceType'.")]
2830
[Cmdlet(VerbsCommon.Get, AzureRMConstants.AzureRMPrefix + "SupportService", DefaultParameterSetName = ListParameterSet), OutputType(typeof(PSSupportService))]
2931
public class GetAzSupportService : AzSupportCmdletBase
3032
{
33+
[CmdletParameterBreakingChangeWithVersion("Id", "12.0.0", "2.0.0", ChangeDescription = "Parameter name 'Id' will be changed to 'Name'.")]
3134
[Parameter(Mandatory = true, ParameterSetName = GetByNameParameterSet, HelpMessage = "Service id.")]
3235
[Alias("Name")]
3336
[ServiceIdCompleter()]

src/Support/Support/SupportTickets/GetAzSupportTicket.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,25 @@
1919
using Microsoft.Azure.Management.Support;
2020
using Microsoft.Azure.Management.Support.Models;
2121
using Microsoft.Rest.Azure;
22+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2223
using System;
2324
using System.Collections.Generic;
2425
using System.Linq;
2526
using System.Management.Automation;
2627

2728
namespace Microsoft.Azure.Commands.Support.SupportTickets
2829
{
30+
[GenericBreakingChangeWithVersion("Input parameter 'Skip' will be removed", "12.0.0", "2.0.0")]
31+
[GenericBreakingChangeWithVersion("Input parameter 'IncludeTotalCount' will be removed", "12.0.0", "2.0.0")]
32+
[GenericBreakingChangeWithVersion("Parameter 'First' will be renamed to 'Top'", "12.0.0", "2.0.0")]
33+
[CmdletOutputBreakingChangeWithVersion(typeof(PSSupportTicket), "12.0.0", "2.0.0", ChangeDescription = "The child output property ContactDetail will be deprecated. Use properties ContactDetailAdditionalEmailAddress," +
34+
"ContactDetailCountry, ContactDetailFirstName, ContactDetailLastName, ContactDetailPhoneNumber, ContactDetailPreferredContactMethod, ContactDetailPreferredSupportLanguage, ContactDetailPreferredTimeZone, " +
35+
"and ContactDetailPrimaryEmailAddress instead" )]
36+
[CmdletOutputBreakingChangeWithVersion(typeof(PSSupportTicket), "12.0.0", "2.0.0", ChangeDescription = "The child output property SupportEngineer will be deprecated. Use property SupportEngineerEmailAddress instead")]
37+
[CmdletOutputBreakingChangeWithVersion(typeof(PSSupportTicket), "12.0.0", "2.0.0", ChangeDescription = "The child output property QuotaTicketDetail will be deprecated. Use properties QuotaTicketDetailQuotaChangeRequest," +
38+
"QuotaTicketDetailQuotaChangeRequestSubType, QuotaTicketDetailQuotaChangeRequestVersion instead")]
39+
[CmdletOutputBreakingChangeWithVersion(typeof(PSSupportTicket), "12.0.0", "2.0.0", ChangeDescription = "The output property TechnicalTicketResourceId will be changed to TechnicalTicketDetailResourceId")]
40+
[GenericBreakingChangeWithVersion("If no parameters are specified, Get-AzSupportTicket will return support tickets from the last week be default", "12.0.0", "2.0.0")]
2941
[Cmdlet(VerbsCommon.Get, AzureRMConstants.AzureRMPrefix + "SupportTicket", DefaultParameterSetName = ListParameterSet, SupportsPaging = true),
3042
OutputType(typeof(PSSupportTicket))]
3143
public class GetAzSupportTicket : AzSupportCmdletBase

src/Support/Support/SupportTickets/NewAzSupportContactProfileObject.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@
1616
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1717
using Microsoft.Azure.Commands.Support.Common;
1818
using Microsoft.Azure.Commands.Support.Models;
19+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1920
using System.Management.Automation;
2021

2122
namespace Microsoft.Azure.PowerShell.Cmdlets.Support.SupportTickets
2223
{
24+
[CmdletDeprecationWithVersion("12.0.0", "2.0.0")]
2325
[Cmdlet(VerbsCommon.New, AzureRMConstants.AzureRMPrefix + "SupportContactProfileObject", SupportsShouldProcess = true),
2426
OutputType(typeof(PSContactProfile))]
2527
public class NewAzSupportContactProfileObject : AzSupportCmdletBase

0 commit comments

Comments
 (0)