Skip to content

Commit 33c78e4

Browse files
authored
[Accounts] Preannounce breaking change in GetAzureRmAccessToken.cs (#25419)
* Add breaking change in GetAzureRmAccessToken.cs * Add breaking change in GetAzureRmAccessToken.cs * Add breaking change in GetAzureRmAccessToken.cs
1 parent e4a610a commit 33c78e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Accounts/Accounts/Token/GetAzureRmAccessToken.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
using Microsoft.Azure.Commands.ResourceManager.Common;
1919
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2020
using Microsoft.Azure.PowerShell.Authenticators;
21+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2122
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2223

2324
using System;
@@ -28,6 +29,7 @@
2829

2930
namespace Microsoft.Azure.Commands.Profile
3031
{
32+
[GenericBreakingChangeWithVersion("The Token property of the output type will be changed from String to SecureString. Add the [-AsSecureString] switch to avoid the impact of this upcoming breaking change.", "13.0.0", "4.0.0")]
3133
[Cmdlet(VerbsCommon.Get, AzureRMConstants.AzureRMPrefix + "AccessToken", DefaultParameterSetName = KnownResourceNameParameterSet)]
3234
[OutputType(typeof(PSAccessToken), typeof(PSSecureAccessToken))]
3335
public class GetAzureRmAccessTokenCommand : AzureRMCmdlet

0 commit comments

Comments
 (0)