Skip to content

Commit 5a43ae1

Browse files
authored
Added breaking change notification for cmdlets whose output type is ASRVaultSettings (#23857)
1 parent eef0311 commit 5a43ae1

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

src/RecoveryServices/RecoveryServices.SiteRecovery/Vault/GetAzureRmRecoveryServicesAsrVaultContext.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
16+
1517
using System.Management.Automation;
1618

1719
namespace Microsoft.Azure.Commands.RecoveryServices.SiteRecovery
1820
{
1921
/// <summary>
2022
/// Gets ASR vault settings information for the Recovery Services vault.
2123
/// </summary>
24+
[CmdletOutputBreakingChangeWithVersion(typeof(ASRVaultSettings), "12.0.0", "7.0.0", DeprecatedOutputProperties = new string[] { "ResouceType" }, NewOutputProperties = new string[] { "ResourceType" })]
2225
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "RecoveryServicesAsrVaultContext")]
2326
[OutputType(typeof(ASRVaultSettings))]
2427
[Alias(

src/RecoveryServices/RecoveryServices.SiteRecovery/Vault/ImportAzureRmRecoveryServicesAsrVaultSettingsFile.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@
2020
using Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.Properties;
2121
using Microsoft.Azure.Portal.RecoveryServices.Models.Common;
2222
using Microsoft.Azure.Commands.Common.Authentication.Abstractions;
23+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2324

2425
namespace Microsoft.Azure.Commands.RecoveryServices.SiteRecovery
2526
{
2627
/// <summary>
2728
/// Imports the specified ASR vault settings file to set the vault context(PowerShell session context)
2829
/// for subsequent ASR operations in the PowerShell session.
2930
/// </summary>
31+
[CmdletOutputBreakingChangeWithVersion(typeof(ASRVaultSettings), "12.0.0", "7.0.0", DeprecatedOutputProperties = new string[] { "ResouceType" }, NewOutputProperties = new string[] { "ResourceType" })]
3032
[Cmdlet("Import", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "RecoveryServicesAsrVaultSettingsFile",SupportsShouldProcess = true)]
3133
[OutputType(typeof(ASRVaultSettings))]
3234
[Alias(

src/RecoveryServices/RecoveryServices.SiteRecovery/Vault/SetAzureRmRecoveryServicesAsrVaultContext.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@
1919
using Microsoft.Azure.Portal.RecoveryServices.Models.Common;
2020
using Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.Properties;
2121
using Microsoft.Azure.Management.RecoveryServices.Models;
22+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2223

2324
namespace Microsoft.Azure.Commands.RecoveryServices.SiteRecovery
2425
{
2526
/// <summary>
2627
/// Sets the Recovery Services vault context to be used for subsequent Azure Site Recovery operations in the current PowerShell session.
2728
/// </summary>
29+
[CmdletOutputBreakingChangeWithVersion(typeof(ASRVaultSettings), "12.0.0", "7.0.0", DeprecatedOutputProperties = new string[] { "ResouceType" }, NewOutputProperties = new string[] { "ResourceType" })]
2830
[Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "RecoveryServicesAsrVaultContext", DefaultParameterSetName = ASRParameterSets.ARSVault, SupportsShouldProcess = true)]
2931
[Alias(
3032
"Set-ASRVaultContext",

src/RecoveryServices/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
## Upcoming Release
21+
* Added breaking change notification for cmdlets whose output type is `ASRVaultSettings`.
2122

2223
## Version 6.7.0
2324
* Added support Edge zone VM restore

0 commit comments

Comments
 (0)