Skip to content

Commit 403be61

Browse files
vfedonkinvfedonkin
andauthored
azure api management breaking change notifications (#11602)
* azure api management breaking change notifications * notification param fixed Co-authored-by: vfedonkin <[email protected]>
1 parent e6a9980 commit 403be61

13 files changed

+25
-0
lines changed

src/ApiManagement/ApiManagement.ServiceManagement/Commands/GetAzureApiManagementAuthorizationServer.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
1717
using System;
1818
using System.Management.Automation;
1919
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
20+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2021

22+
[GenericBreakingChange("Output changed: ClientSecret will not be returned anymore. Additional cmdlet will be added to retrieve ClientSecret.")]
2123
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ApiManagementAuthorizationServer", DefaultParameterSetName = ContextParameterSet)]
2224
[OutputType(typeof(PsApiManagementOAuth2AuthorizationServer))]
2325
public class GetAzureApiManagementAuthorizationServer : AzureApiManagementCmdletBase

src/ApiManagement/ApiManagement.ServiceManagement/Commands/GetAzureApiManagementIdentityProvider.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
1717
using System;
1818
using System.Management.Automation;
1919
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
20+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2021

22+
[GenericBreakingChange("Output changed: ClientSecret will not be returned anymore. Additional cmdlet will be added to retrieve ClientSecret.")]
2123
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ApiManagementIdentityProvider", DefaultParameterSetName = AllIdentityProviders)]
2224
[OutputType(typeof(PsApiManagementIdentityProvider))]
2325
public class GetAzureApiManagementIdentityProvider : AzureApiManagementCmdletBase

src/ApiManagement/ApiManagement.ServiceManagement/Commands/GetAzureApiManagementOpenIdConnectProvider.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
1616
{
1717
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
18+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1819
using System;
1920
using System.Collections.Generic;
2021
using System.Management.Automation;
2122

23+
[GenericBreakingChange("Output changed: ClientSecret will not be returned anymore. Additional cmdlet will be added to retrieve ClientSecret.")]
2224
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ApiManagementOpenIdConnectProvider", DefaultParameterSetName = GetAll)]
2325
[OutputType(typeof(PsApiManagementOpenIdConnectProvider))]
2426
public class GetAzureApiManagementOpenIdConnectProvider : AzureApiManagementCmdletBase

src/ApiManagement/ApiManagement.ServiceManagement/Commands/GetAzureApiManagementProperty.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
1616
{
1717
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
18+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1819
using System;
1920
using System.Collections.Generic;
2021
using System.Management.Automation;
2122

23+
[CmdletDeprecation(ReplacementCmdletName = "Get-AzureApiManagementNamedValue")]
2224
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ApiManagementProperty", DefaultParameterSetName = GetAll)]
2325
[OutputType(typeof(PsApiManagementProperty))]
2426
public class GetAzureApiManagementProperty : AzureApiManagementCmdletBase

src/ApiManagement/ApiManagement.ServiceManagement/Commands/GetAzureApiManagementSubscription.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
1616
{
1717
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
18+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1819
using System;
1920
using System.Management.Automation;
2021

22+
[GenericBreakingChange("Output changed: Subscription keys will not be returned anymore. Additional cmdlet will be added to retrieve subscription keys.")]
2123
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ApiManagementSubscription", DefaultParameterSetName = GetAll)]
2224
[OutputType(typeof(PsApiManagementSubscription), ParameterSetName = new[] { GetAll, GetBySubscriptionId, GetByUserId, GetByScope, GetByProductIdAndUser, GetByProductId })]
2325
public class GetAzureApiManagementSubscription : AzureApiManagementCmdletBase

src/ApiManagement/ApiManagement.ServiceManagement/Commands/GetAzureRmApiManagementTenantAccess.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
1616
{
1717
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
18+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1819
using System.Management.Automation;
1920

21+
[GenericBreakingChange("Output changed: Keys will not be returned anymore. Additional cmdlet will be added to retrieve the keys.")]
2022
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ApiManagementTenantAccess")]
2123
[OutputType(typeof(PsApiManagementAccessInformation))]
2224
public class GetAzureRmApiManagementTenantAccess : AzureApiManagementCmdletBase

src/ApiManagement/ApiManagement.ServiceManagement/Commands/GetAzureRmApiManagementTenantGitAccess.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
1616
{
1717
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
18+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1819
using System.Management.Automation;
1920

21+
[GenericBreakingChange("Output changed: Keys will not be returned anymore. Additional cmdlet will be added to retrieve the keys.")]
2022
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ApiManagementTenantGitAccess")]
2123
[OutputType(typeof(PsApiManagementAccessInformation))]
2224
public class GetAzureRmApiManagementTenantGitAccess : AzureApiManagementCmdletBase

src/ApiManagement/ApiManagement.ServiceManagement/Commands/NewAzureApiManagmentProperty.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
1616
{
1717
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
18+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1819
using System;
1920
using System.Management.Automation;
2021

22+
[CmdletDeprecation(ReplacementCmdletName = "New-AzureApiManagementNamedValue")]
2123
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ApiManagementProperty")]
2224
[OutputType(typeof(PsApiManagementProperty))]
2325
public class NewAzureApiManagementProperty : AzureApiManagementCmdletBase

src/ApiManagement/ApiManagement.ServiceManagement/Commands/RemoveAzureApiManagementProperty.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
1616
{
1717
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
1818
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Properties;
19+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1920
using System;
2021
using System.Globalization;
2122
using System.Management.Automation;
2223

24+
[CmdletDeprecation(ReplacementCmdletName = "Remove-AzureApiManagementNamedValue")]
2325
[Cmdlet("Remove", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ApiManagementProperty", SupportsShouldProcess = true)]
2426
[OutputType(typeof(bool))]
2527
public class RemoveAzureApiManagementProperty : AzureApiManagementCmdletBase

src/ApiManagement/ApiManagement.ServiceManagement/Commands/SetAzureApiManagementProperty.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
1616
{
1717
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
1818
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Properties;
19+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1920
using System;
2021
using System.Management.Automation;
2122

23+
[CmdletDeprecation(ReplacementCmdletName = "Set-AzureApiManagementNamedValue")]
2224
[Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ApiManagementProperty", SupportsShouldProcess = true)]
2325
[OutputType(typeof(PsApiManagementProperty))]
2426
public class SetAzureApiManagementProperty : AzureApiManagementCmdletBase

src/ApiManagement/ApiManagement/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Add breaking change notice for Azure File cmdlets output change in a future release
2122
* `Set-AzApiManagementGroup` Updated documentation to specify the GroupId parameter
2223

2324
## Version 1.4.0

src/ApiManagement/ApiManagement/Commands/NewAzureApiManagement.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
namespace Microsoft.Azure.Commands.ApiManagement.Commands
1616
{
1717
using Microsoft.Azure.Commands.ApiManagement.Models;
18+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1819
using ResourceManager.Common.ArgumentCompleters;
1920
using System.Collections.Generic;
2021
using System.Management.Automation;
@@ -119,6 +120,7 @@ public class NewAzureApiManagement : AzureApiManagementCmdletBase
119120

120121
[Parameter(Mandatory = false,
121122
HelpMessage = "Generate and assign an Azure Active Directory Identity for this service for use with key management services like Azure KeyVault.")]
123+
[CmdletParameterBreakingChange("AssignIdentity", ChangeDescription = "The AssignIdentity parameter will be renamed as SystemAssignedIdentity. Also new parameter will be added: UserAssignedIdentity.")]
122124
public SwitchParameter AssignIdentity { get; set; }
123125

124126
[Parameter(Mandatory = false,

src/ApiManagement/ApiManagement/Commands/SetAzureApiManagement.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
namespace Microsoft.Azure.Commands.ApiManagement.Commands
1616
{
1717
using Microsoft.Azure.Commands.ApiManagement.Models;
18+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1819
using Properties;
1920
using System.Management.Automation;
2021

@@ -30,6 +31,7 @@ public class SetAzureApiManagement : AzureApiManagementCmdletBase
3031

3132
[Parameter(Mandatory = false,
3233
HelpMessage = "Generate and assign an Azure Active Directory Identity for this server for use with key management services like Azure KeyVault.")]
34+
[CmdletParameterBreakingChange("AssignIdentity", ChangeDescription = "The AssignIdentity parameter will be renamed as SystemAssignedIdentity. Also new parameter will be added: UserAssignedIdentity.")]
3335
public SwitchParameter AssignIdentity { get; set; }
3436

3537
[Parameter(Mandatory = false, HelpMessage = "Run cmdlet in the background")]

0 commit comments

Comments
 (0)