Skip to content

Commit c502819

Browse files
authored
Merge pull request #10079 from matthchr/feature/deprecate-cmdlet
Add deprecation notice on Batch cmdlet
2 parents e8ff3ad + 5e45c3d commit c502819

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/Batch/Batch/BatchAccounts/GetBatchAccountNodeAgentSkuCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@
1414

1515
using Microsoft.Azure.Batch;
1616
using Microsoft.Azure.Commands.Batch.Models;
17+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1718
using System.Management.Automation;
1819
using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants;
1920

2021
namespace Microsoft.Azure.Commands.Batch
2122
{
23+
[CmdletDeprecation(ReplacementCmdletName = "Get-AzBatchSupportedImage")]
2224
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzurePrefix + "BatchNodeAgentSku"),OutputType(typeof(PSNodeAgentSku))]
2325
public class GetBatchAccountNodeAgentSkuCommand : BatchObjectModelCmdletBase
2426
{

src/Batch/Batch/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
-->
2020

2121
## Upcoming Release
22+
* **Get-AzBatchNodeAgentSku** is deprecated and will be replaced by **Get-AzBatchSupportImage** in version 2.0.0.
2223

2324
## Version 1.1.1
2425
* Fixed typo in help message and documentation to capitalize Windows

0 commit comments

Comments
 (0)