Skip to content

Commit 442971b

Browse files
authored
[Relay] added upcoming breaking change message. (#20930)
* [Relay]add breaking change for cmdlets. * [Relay]updated changelog.md. * [Relay]add target version for breaking change.
1 parent e043ae6 commit 442971b

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

src/Relay/Relay/ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Added breaking change message for cmdlets.
22+
* `Set-AzRelayNamespace`
23+
* `Get-AzRelayOperation`
2124

2225
## Version 1.0.3
2326
* Update references in .psd1 to use relative path

src/Relay/Relay/Cmdlets/Namespace/SetAzureRelayNamespace.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
using Microsoft.Azure.Commands.Relay.Models;
1515
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1616
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
17+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1718
using System.Collections;
1819
using System.Collections.Generic;
1920
using System.Management.Automation;
@@ -23,6 +24,7 @@ namespace Microsoft.Azure.Commands.Relay.Commands.Namespace
2324
/// <summary>
2425
/// 'Set-AzRelayNamespace' Cmdlet updates the specified Relay Namespace
2526
/// </summary>
27+
[GenericBreakingChange("Set-AzRelayNamespace will be removed in an upcoming breaking change release, you can use Update-AzRelayNamespace in a future release", "2.0.0")]
2628
[Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "RelayNamespace", SupportsShouldProcess = true), OutputType(typeof(PSRelayNamespaceAttributes))]
2729
public class SetAzureRelayNamespace : AzureRelayCmdletBase
2830
{

src/Relay/Relay/Cmdlets/Operations/GetAzureRelayOperations.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@
1717
using System.Collections.Generic;
1818
using System.Linq;
1919
using System.Management.Automation;
20+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2021

2122
namespace Microsoft.Azure.Commands.Relay.Commands.Namespace
2223
{
2324
/// <summary>
2425
/// 'Get-AzRelayOperation' Cmdlet retrive the Operations List
2526
/// </summary>
27+
[GenericBreakingChange("Get-AzRelayOperation will be removed in an upcoming breaking change release. Please use 'Get-AzProviderOperation Microsoft.Relay/*'", "2.0.0")]
2628
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "RelayOperation"), OutputType(typeof(PSOperationAttributes))]
2729
public class GetAzureRmRelayOperation : AzureRelayCmdletBase
2830
{

0 commit comments

Comments
 (0)