Skip to content

Commit d0c9e7b

Browse files
wyunchi-msYanaXu
andauthored
[Breaking Change] Renamed the property ResouceType of ASRVaultSettings to ResourceType (#23873)
* Renamed the property ResouceType of ASRVaultSettings to ResourceType * Add a space to trigger CI. --------- Co-authored-by: Yan Xu <[email protected]>
1 parent e1ca6c3 commit d0c9e7b

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

src/RecoveryServices/RecoveryServices.SiteRecovery/Models/PSObjects.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public ASRVaultSettings(
4949
this.ResourceName = asrVaultCreds.ResourceName;
5050
this.ResourceGroupName = asrVaultCreds.ResourceGroupName;
5151
this.ResourceNamespace = asrVaultCreds.ResourceNamespace;
52-
this.ResouceType = asrVaultCreds.ARMResourceType;
52+
this.ResourceType = asrVaultCreds.ARMResourceType;
5353
}
5454

5555
#region Properties
@@ -72,7 +72,7 @@ public ASRVaultSettings(
7272
/// <summary>
7373
/// Gets or sets Resource Type.
7474
/// </summary>
75-
public string ResouceType { get; set; }
75+
public string ResourceType { get; set; }
7676

7777
#endregion Properties
7878
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ namespace Microsoft.Azure.Commands.RecoveryServices.SiteRecovery
2121
/// <summary>
2222
/// Gets ASR vault settings information for the Recovery Services vault.
2323
/// </summary>
24-
[CmdletOutputBreakingChangeWithVersion(typeof(ASRVaultSettings), "12.0.0", "7.0.0", DeprecatedOutputProperties = new string[] { "ResouceType" }, NewOutputProperties = new string[] { "ResourceType" })]
2524
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "RecoveryServicesAsrVaultContext")]
2625
[OutputType(typeof(ASRVaultSettings))]
2726
[Alias(

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ namespace Microsoft.Azure.Commands.RecoveryServices.SiteRecovery
2828
/// Imports the specified ASR vault settings file to set the vault context(PowerShell session context)
2929
/// for subsequent ASR operations in the PowerShell session.
3030
/// </summary>
31-
[CmdletOutputBreakingChangeWithVersion(typeof(ASRVaultSettings), "12.0.0", "7.0.0", DeprecatedOutputProperties = new string[] { "ResouceType" }, NewOutputProperties = new string[] { "ResourceType" })]
3231
[Cmdlet("Import", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "RecoveryServicesAsrVaultSettingsFile",SupportsShouldProcess = true)]
3332
[OutputType(typeof(ASRVaultSettings))]
3433
[Alias(

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ namespace Microsoft.Azure.Commands.RecoveryServices.SiteRecovery
2626
/// <summary>
2727
/// Sets the Recovery Services vault context to be used for subsequent Azure Site Recovery operations in the current PowerShell session.
2828
/// </summary>
29-
[CmdletOutputBreakingChangeWithVersion(typeof(ASRVaultSettings), "12.0.0", "7.0.0", DeprecatedOutputProperties = new string[] { "ResouceType" }, NewOutputProperties = new string[] { "ResourceType" })]
3029
[Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "RecoveryServicesAsrVaultContext", DefaultParameterSetName = ASRParameterSets.ARSVault, SupportsShouldProcess = true)]
3130
[Alias(
3231
"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+
* [Breaking Change] Renamed the property `ResouceType` of `ASRVaultSettings` to `ResourceType`.
2122
* Added support for MUA for disabling vault Immutability, increasing RPO for policy schedule, restore, stop protection with retain data.
2223
* Added support for Enabling/Disabling the azure monitor and email notification alerts for site recovery in recovery services vault.
2324

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
"Module","ClassName","Target","Severity","ProblemId","Description","Remediation"
22
"Az.RecoveryServices","Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AddAzureRmRecoveryServicesAsrReplicationProtectedItemDisk","Add-AzRecoveryServicesAsrReplicationProtectedItemDisk","0","3010","The property 'RecoveryLBBackendAddressPoolIds' of type 'Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.IPConfigDetails' has been removed.","Add the property 'RecoveryLBBackendAddressPoolIds' back to type 'Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.IPConfigDetails'."
33
"Az.RecoveryServices","Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AddAzureRmRecoveryServicesAsrReplicationProtectedItemDisk","Add-AzRecoveryServicesAsrReplicationProtectedItemDisk","0","3010","The property 'TfoLBBackendAddressPoolIds' of type 'Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.IPConfigDetails' has been removed.","Add the property 'TfoLBBackendAddressPoolIds' back to type 'Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.IPConfigDetails'."
4-
"Az.RecoveryServices","Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AddAzureRmRecoveryServicesAsrReplicationProtectedItemDisk","Add-AzRecoveryServicesAsrReplicationProtectedItemDisk","0","3010","The property 'IpAddressType' of type 'Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.IPConfigDetails' has been removed.","Add the property 'IpAddressType' back to type 'Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.IPConfigDetails'."
4+
"Az.RecoveryServices","Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.AddAzureRmRecoveryServicesAsrReplicationProtectedItemDisk","Add-AzRecoveryServicesAsrReplicationProtectedItemDisk","0","3010","The property 'IpAddressType' of type 'Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.IPConfigDetails' has been removed.","Add the property 'IpAddressType' back to type 'Microsoft.Azure.Management.RecoveryServices.SiteRecovery.Models.IPConfigDetails'."
5+
"Az.RecoveryServices","Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.GetAzureRmRecoveryServicesAsrVaultSettings","Get-AzRecoveryServicesAsrVaultContext","0","3010","The property 'ResouceType' of type 'Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVaultSettings' has been removed.","Add the property 'ResouceType' back to type 'Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVaultSettings'."
6+
"Az.RecoveryServices","Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ImportAzureRmRecoveryServicesAsrVaultSettingsFile","Import-AzRecoveryServicesAsrVaultSettingsFile","0","3010","The property 'ResouceType' of type 'Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVaultSettings' has been removed.","Add the property 'ResouceType' back to type 'Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVaultSettings'."
7+
"Az.RecoveryServices","Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.SetAzureRmRecoveryServicesAsrVaultSettings","Set-AzRecoveryServicesAsrVaultContext","0","3010","The property 'ResouceType' of type 'Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVaultSettings' has been removed.","Add the property 'ResouceType' back to type 'Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVaultSettings'."

0 commit comments

Comments
 (0)