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",

0 commit comments

Comments
 (0)