Skip to content

Commit 667dea5

Browse files
authored
Merge pull request #7889 from MabOneSdk/deprecate-vaultcontext
Deprecating Set-AzureRmRecoveryServicesVaultContext cmdlet
2 parents ac17aaf + aefa6df commit 667dea5

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/ResourceManager/RecoveryServices/Commands.RecoveryServices/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
## Current Release
21+
* Deprecated Set-AzureRmRecoveryServicesVaultContext cmdlet.
2122

2223
## Version 4.1.8
2324
* Fixed issue with default resource groups not being set.

src/ResourceManager/RecoveryServices/Commands.RecoveryServices/Vault/SetAzureRmRecoveryServicesVaultContext.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@
1717
using System.Management.Automation;
1818
using System.Security.Cryptography.X509Certificates;
1919
using Microsoft.Azure.Portal.RecoveryServices.Models.Common;
20+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2021

2122
namespace Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets
2223
{
2324
/// <summary>
2425
/// Used to set RecoveryServices Vault Context
2526
/// </summary>
27+
[CmdletDeprecation("This command is getting deprecated. Please use -VaultID parameter in all Recovery Services commands going forward.")]
2628
[Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "RecoveryServicesVaultContext"), OutputType(typeof(void))]
2729
public class SetAzureRmRecoveryServicesVaultContext : RecoveryServicesCmdletBase
2830
{

0 commit comments

Comments
 (0)