Skip to content

Commit 70254c7

Browse files
authored
Added cmdlet deprecated attributes to all the Deployment manager cmdlets to declare them as deprecated. (#23128)
* Added cmdlet deprecated attributes to all the Deployment manager cmdlets * Updated the ChangeLog with updated version and appropriate all cmdlets deprecated message * Update CmdletDeprecation attribute to CmdletDeprecationWithVersion attribute since the previous attribute has been obsolete * Update the versions.
1 parent c53522e commit 70254c7

25 files changed

+49
-0
lines changed

src/DeploymentManager/DeploymentManager/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+
* All operations for resources have been flagged as deprecated. Deployment manager module will be retired soon.
2122

2223
## Version 1.1.0
2324
* Adds LIST operations for resources

src/DeploymentManager/DeploymentManager/Commands/GetArtifactSource.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ namespace Microsoft.Azure.Commands.DeploymentManager.Commands
1919
using Microsoft.Azure.Commands.DeploymentManager.Models;
2020
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2121
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
22+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2223

24+
[CmdletDeprecationWithVersion("12.0.0", "2.0.0")]
2325
[Cmdlet(
2426
VerbsCommon.Get,
2527
ResourceManager.Common.AzureRMConstants.AzurePrefix + "DeploymentManagerArtifactSource",

src/DeploymentManager/DeploymentManager/Commands/GetRollout.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ namespace Microsoft.Azure.Commands.DeploymentManager.Commands
1919
using Microsoft.Azure.Commands.DeploymentManager.Models;
2020
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2121
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
22+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2223

24+
[CmdletDeprecationWithVersion("12.0.0", "2.0.0")]
2325
[Cmdlet(
2426
VerbsCommon.Get,
2527
ResourceManager.Common.AzureRMConstants.AzurePrefix + "DeploymentManagerRollout",

src/DeploymentManager/DeploymentManager/Commands/GetService.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ namespace Microsoft.Azure.Commands.DeploymentManager.Commands
1919
using Microsoft.Azure.Commands.DeploymentManager.Models;
2020
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2121
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
22+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2223

24+
[CmdletDeprecationWithVersion("12.0.0", "2.0.0")]
2325
[Cmdlet(
2426
VerbsCommon.Get,
2527
ResourceManager.Common.AzureRMConstants.AzurePrefix + "DeploymentManagerService",

src/DeploymentManager/DeploymentManager/Commands/GetServiceTopology.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ namespace Microsoft.Azure.Commands.DeploymentManager.Commands
1919
using Microsoft.Azure.Commands.DeploymentManager.Models;
2020
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2121
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
22+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2223

24+
[CmdletDeprecationWithVersion("12.0.0", "2.0.0")]
2325
[Cmdlet(
2426
VerbsCommon.Get,
2527
ResourceManager.Common.AzureRMConstants.AzurePrefix + "DeploymentManagerServiceTopology",

src/DeploymentManager/DeploymentManager/Commands/GetServiceUnit.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ namespace Microsoft.Azure.Commands.DeploymentManager.Commands
2020
using Microsoft.Azure.Commands.DeploymentManager.Models;
2121
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2222
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
23+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2324

25+
[CmdletDeprecationWithVersion("12.0.0", "2.0.0")]
2426
[Cmdlet(
2527
VerbsCommon.Get,
2628
ResourceManager.Common.AzureRMConstants.AzurePrefix + "DeploymentManagerServiceUnit",

src/DeploymentManager/DeploymentManager/Commands/GetStep.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ namespace Microsoft.Azure.Commands.DeploymentManager.Commands
1919
using Microsoft.Azure.Commands.DeploymentManager.Models;
2020
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2121
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
22+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2223

24+
[CmdletDeprecationWithVersion("12.0.0", "2.0.0")]
2325
[Cmdlet(
2426
VerbsCommon.Get,
2527
ResourceManager.Common.AzureRMConstants.AzurePrefix + "DeploymentManagerStep",

src/DeploymentManager/DeploymentManager/Commands/NewArtifactSource.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ namespace Microsoft.Azure.Commands.DeploymentManager.Commands
1919

2020
using Microsoft.Azure.Commands.DeploymentManager.Models;
2121
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
22+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2223

24+
[CmdletDeprecationWithVersion("12.0.0", "2.0.0")]
2325
[Cmdlet(
2426
VerbsCommon.New,
2527
ResourceManager.Common.AzureRMConstants.AzurePrefix + "DeploymentManagerArtifactSource",

src/DeploymentManager/DeploymentManager/Commands/NewService.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ namespace Microsoft.Azure.Commands.DeploymentManager.Commands
2020
using Microsoft.Azure.Commands.DeploymentManager.Models;
2121
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2222
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
23+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2324

25+
[CmdletDeprecationWithVersion("12.0.0", "2.0.0")]
2426
[Cmdlet(
2527
VerbsCommon.
2628
New, ResourceManager.Common.AzureRMConstants.AzurePrefix + "DeploymentManagerService",

src/DeploymentManager/DeploymentManager/Commands/NewServiceTopology.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ namespace Microsoft.Azure.Commands.DeploymentManager.Commands
2020
using Microsoft.Azure.Commands.DeploymentManager.Models;
2121
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2222
using Microsoft.Azure.Management.DeploymentManager.Models;
23+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2324

25+
[CmdletDeprecationWithVersion("12.0.0", "2.0.0")]
2426
[Cmdlet(
2527
VerbsCommon.New,
2628
ResourceManager.Common.AzureRMConstants.AzurePrefix + "DeploymentManagerServiceTopology",

src/DeploymentManager/DeploymentManager/Commands/NewServiceUnit.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ namespace Microsoft.Azure.Commands.DeploymentManager.Commands
2121
using Microsoft.Azure.Commands.DeploymentManager.Models;
2222
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2323
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
24+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2425

26+
[CmdletDeprecationWithVersion("12.0.0", "2.0.0")]
2527
[Cmdlet(
2628
VerbsCommon.New,
2729
ResourceManager.Common.AzureRMConstants.AzurePrefix + "DeploymentManagerServiceUnit",

src/DeploymentManager/DeploymentManager/Commands/NewStep.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ namespace Microsoft.Azure.Commands.DeploymentManager.Commands
2222
using Microsoft.Azure.Commands.DeploymentManager.Utilities;
2323
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2424
using Newtonsoft.Json;
25+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2526

27+
[CmdletDeprecationWithVersion("12.0.0", "2.0.0")]
2628
[Cmdlet(
2729
VerbsCommon.New,
2830
ResourceManager.Common.AzureRMConstants.AzurePrefix + "DeploymentManagerStep",

src/DeploymentManager/DeploymentManager/Commands/RemoveArtifactSource.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ namespace Microsoft.Azure.Commands.DeploymentManager.Commands
1919
using Microsoft.Azure.Commands.DeploymentManager.Models;
2020
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2121
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
22+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2223

24+
[CmdletDeprecationWithVersion("12.0.0", "2.0.0")]
2325
[Cmdlet(
2426
VerbsCommon.Remove,
2527
ResourceManager.Common.AzureRMConstants.AzurePrefix + "DeploymentManagerArtifactSource",

src/DeploymentManager/DeploymentManager/Commands/RemoveRollout.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ namespace Microsoft.Azure.Commands.DeploymentManager.Commands
1919
using Microsoft.Azure.Commands.DeploymentManager.Models;
2020
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2121
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
22+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2223

24+
[CmdletDeprecationWithVersion("12.0.0", "2.0.0")]
2325
[Cmdlet(
2426
VerbsCommon.Remove,
2527
ResourceManager.Common.AzureRMConstants.AzurePrefix + "DeploymentManagerRollout",

src/DeploymentManager/DeploymentManager/Commands/RemoveService.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ namespace Microsoft.Azure.Commands.DeploymentManager.Commands
2020
using Microsoft.Azure.Commands.DeploymentManager.Models;
2121
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2222
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
23+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2324

25+
[CmdletDeprecationWithVersion("12.0.0", "2.0.0")]
2426
[Cmdlet(
2527
VerbsCommon.Remove,
2628
ResourceManager.Common.AzureRMConstants.AzurePrefix + "DeploymentManagerService",

src/DeploymentManager/DeploymentManager/Commands/RemoveServiceTopology.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ namespace Microsoft.Azure.Commands.DeploymentManager.Commands
1919
using Microsoft.Azure.Commands.DeploymentManager.Models;
2020
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2121
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
22+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2223

24+
[CmdletDeprecationWithVersion("12.0.0", "2.0.0")]
2325
[Cmdlet(
2426
VerbsCommon.Remove,
2527
ResourceManager.Common.AzureRMConstants.AzurePrefix + "DeploymentManagerServiceTopology",

src/DeploymentManager/DeploymentManager/Commands/RemoveServiceUnit.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ namespace Microsoft.Azure.Commands.DeploymentManager.Commands
2020
using Microsoft.Azure.Commands.DeploymentManager.Models;
2121
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2222
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
23+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2324

25+
[CmdletDeprecationWithVersion("12.0.0", "2.0.0")]
2426
[Cmdlet(
2527
VerbsCommon.Remove,
2628
ResourceManager.Common.AzureRMConstants.AzurePrefix + "DeploymentManagerServiceUnit",

src/DeploymentManager/DeploymentManager/Commands/RemoveStep.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ namespace Microsoft.Azure.Commands.DeploymentManager.Commands
1919
using Microsoft.Azure.Commands.DeploymentManager.Models;
2020
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2121
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
22+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2223

24+
[CmdletDeprecationWithVersion("12.0.0", "2.0.0")]
2325
[Cmdlet(
2426
VerbsCommon.Remove,
2527
ResourceManager.Common.AzureRMConstants.AzurePrefix + "DeploymentManagerStep",

src/DeploymentManager/DeploymentManager/Commands/RestartRollout.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ namespace Microsoft.Azure.Commands.DeploymentManager.Commands
1919
using Microsoft.Azure.Commands.DeploymentManager.Models;
2020
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2121
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
22+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2223

24+
[CmdletDeprecationWithVersion("12.0.0", "2.0.0")]
2325
[Cmdlet(
2426
VerbsLifecycle.Restart,
2527
ResourceManager.Common.AzureRMConstants.AzurePrefix + "DeploymentManagerRollout",

src/DeploymentManager/DeploymentManager/Commands/SetArtifactSource.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ namespace Microsoft.Azure.Commands.DeploymentManager.Commands
1717
using System.Management.Automation;
1818

1919
using Microsoft.Azure.Commands.DeploymentManager.Models;
20+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2021

22+
[CmdletDeprecationWithVersion("12.0.0", "2.0.0")]
2123
[Cmdlet(
2224
VerbsCommon.Set,
2325
ResourceManager.Common.AzureRMConstants.AzurePrefix + "DeploymentManagerArtifactSource",

src/DeploymentManager/DeploymentManager/Commands/SetService.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ namespace Microsoft.Azure.Commands.DeploymentManager.Commands
1717
using System.Management.Automation;
1818

1919
using Microsoft.Azure.Commands.DeploymentManager.Models;
20+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2021

22+
[CmdletDeprecationWithVersion("12.0.0", "2.0.0")]
2123
[Cmdlet(
2224
VerbsCommon.Set,
2325
ResourceManager.Common.AzureRMConstants.AzurePrefix + "DeploymentManagerService",

src/DeploymentManager/DeploymentManager/Commands/SetServiceTopology.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ namespace Microsoft.Azure.Commands.DeploymentManager.Commands
1717
using System.Management.Automation;
1818

1919
using Microsoft.Azure.Commands.DeploymentManager.Models;
20+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2021

22+
[CmdletDeprecationWithVersion("12.0.0", "2.0.0")]
2123
[Cmdlet(
2224
VerbsCommon.Set,
2325
ResourceManager.Common.AzureRMConstants.AzurePrefix + "DeploymentManagerServiceTopology",

src/DeploymentManager/DeploymentManager/Commands/SetServiceUnit.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ namespace Microsoft.Azure.Commands.DeploymentManager.Commands
1717
using System.Management.Automation;
1818

1919
using Microsoft.Azure.Commands.DeploymentManager.Models;
20+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2021

22+
[CmdletDeprecationWithVersion("12.0.0", "2.0.0")]
2123
[Cmdlet(
2224
VerbsCommon.Set,
2325
ResourceManager.Common.AzureRMConstants.AzurePrefix + "DeploymentManagerServiceUnit",

src/DeploymentManager/DeploymentManager/Commands/SetStep.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ namespace Microsoft.Azure.Commands.DeploymentManager.Commands
1717
using System.Management.Automation;
1818

1919
using Microsoft.Azure.Commands.DeploymentManager.Models;
20+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2021

22+
[CmdletDeprecationWithVersion("12.0.0", "2.0.0")]
2123
[Cmdlet(
2224
VerbsCommon.Set,
2325
ResourceManager.Common.AzureRMConstants.AzurePrefix + "DeploymentManagerStep",

src/DeploymentManager/DeploymentManager/Commands/StopRollout.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ namespace Microsoft.Azure.Commands.DeploymentManager.Commands
1919
using Microsoft.Azure.Commands.DeploymentManager.Models;
2020
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2121
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
22+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2223

24+
[CmdletDeprecationWithVersion("12.0.0", "2.0.0")]
2325
[Cmdlet(
2426
VerbsLifecycle.Stop,
2527
ResourceManager.Common.AzureRMConstants.AzurePrefix + "DeploymentManagerRollout",

0 commit comments

Comments
 (0)