Skip to content

Commit 9289016

Browse files
committed
updating changelog and new cmdlet for obsolete cmdlet
1 parent 3ed4632 commit 9289016

File tree

64 files changed

+98
-97
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+98
-97
lines changed

src/ResourceManager/SiteRecovery/ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
- Additional information about change #1
1919
-->
2020
## Current Release
21+
* Add deprecation warnings for all cmdlets in this module in preparation for the next breaking change release.
22+
- Please see the upcoming breaking changes guide for more information on how to migrate your cmdlets from AzureRM.
2123

2224
## Version 5.0.1
2325
* Fixed assembly loading issue that caused some cmdlets to fail when executing

src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Fabrics/GetAzureRmSiteRecoveryFabric.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace Microsoft.Azure.Commands.SiteRecovery
3030
[Cmdlet(VerbsCommon.Get, "AzureRmSiteRecoveryFabric", DefaultParameterSetName = ASRParameterSets.Default)]
3131
[OutputType(typeof(List<ASRFabric>))]
3232
[Obsolete("This cmdlet has been marked for deprecation in an upcoming release. Please use the " +
33-
"equivalent cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
33+
"Get-AzureRmRecoveryServicesAsrFabric cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
3434
false)]
3535
public class GetAzureRmSiteRecoveryFabric : SiteRecoveryCmdletBase
3636
{

src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Fabrics/NewAzureRmSiteRecoveryFabric.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace Microsoft.Azure.Commands.SiteRecovery
2828
[Cmdlet(VerbsCommon.New, "AzureRmSiteRecoveryFabric", DefaultParameterSetName = ASRParameterSets.Default)]
2929
[OutputType(typeof(ASRJob))]
3030
[Obsolete("This cmdlet has been marked for deprecation in an upcoming release. Please use the " +
31-
"equivalent cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
31+
"New-AzureRmRecoveryServicesAsrFabric cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
3232
false)]
3333
public class NewAzureRmSiteRecoveryFabric : SiteRecoveryCmdletBase
3434
{
@@ -59,7 +59,7 @@ public override void ExecuteSiteRecoveryCmdlet()
5959
{
6060
base.ExecuteSiteRecoveryCmdlet();
6161

62-
string fabricType = string.IsNullOrEmpty(this.Type)? FabricProviders.HyperVSite : this.Type;
62+
string fabricType = string.IsNullOrEmpty(this.Type) ? FabricProviders.HyperVSite : this.Type;
6363

6464
LongRunningOperationResponse response =
6565
RecoveryServicesClient.CreateAzureSiteRecoveryFabric(this.Name, fabricType);

src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Fabrics/RemoveAzureRmSiteRecoveryFabric.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace Microsoft.Azure.Commands.SiteRecovery
2828
[Cmdlet(VerbsCommon.Remove, "AzureRmSiteRecoveryFabric", DefaultParameterSetName = ASRParameterSets.Default, SupportsShouldProcess = true)]
2929
[OutputType(typeof(ASRJob))]
3030
[Obsolete("This cmdlet has been marked for deprecation in an upcoming release. Please use the " +
31-
"equivalent cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
31+
"Remove-AzureRmRecoveryServicesAsrFabric cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
3232
false)]
3333
public class RemoveAzureRmSiteRecoveryFabric : SiteRecoveryCmdletBase
3434
{

src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Job/GetAzureSiteRecoveryJob.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.SiteRecovery
2626
[Cmdlet(VerbsCommon.Get, "AzureRmSiteRecoveryJob", DefaultParameterSetName = ASRParameterSets.ByParam)]
2727
[OutputType(typeof(IEnumerable<ASRJob>))]
2828
[Obsolete("This cmdlet has been marked for deprecation in an upcoming release. Please use the " +
29-
"equivalent cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
29+
"Get-AzureRmRecoveryServicesAsrJob cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
3030
false)]
3131
public class GetAzureSiteRecoveryJob : SiteRecoveryCmdletBase
3232
{

src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Job/RestartAzureSiteRecoveryJob.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.SiteRecovery
2424
[Cmdlet(VerbsLifecycle.Restart, "AzureRmSiteRecoveryJob", DefaultParameterSetName = ASRParameterSets.ByObject)]
2525
[OutputType(typeof(ASRJob))]
2626
[Obsolete("This cmdlet has been marked for deprecation in an upcoming release. Please use the " +
27-
"equivalent cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
27+
"Restart-AzureRmRecoveryServicesAsrJob cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
2828
false)]
2929
public class RestartAzureSiteRecoveryJob : SiteRecoveryCmdletBase
3030
{

src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Job/ResumeAzureSiteRecoveryJob.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.SiteRecovery
2424
[Cmdlet(VerbsLifecycle.Resume, "AzureRmSiteRecoveryJob", DefaultParameterSetName = ASRParameterSets.ByObject)]
2525
[OutputType(typeof(ASRJob))]
2626
[Obsolete("This cmdlet has been marked for deprecation in an upcoming release. Please use the " +
27-
"equivalent cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
27+
"Resume-AzureRmRecoveryServicesAsrJob cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
2828
false)]
2929
public class ResumeAzureSiteRecoveryJob : SiteRecoveryCmdletBase
3030
{

src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Job/StopAzureSiteRecoveryJob.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.SiteRecovery
2424
[Cmdlet(VerbsLifecycle.Stop, "AzureRmSiteRecoveryJob", DefaultParameterSetName = ASRParameterSets.ByObject)]
2525
[OutputType(typeof(ASRJob))]
2626
[Obsolete("This cmdlet has been marked for deprecation in an upcoming release. Please use the " +
27-
"equivalent cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
27+
"Stop-AzureRmRecoveryServicesAsrJob cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
2828
false)]
2929
public class StopAzureSiteRecoveryJob : SiteRecoveryCmdletBase
3030
{

src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Network/GetAzureRMSiteRecoveryNetwork.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.SiteRecovery
2626
[Cmdlet(VerbsCommon.Get, "AzureRmSiteRecoveryNetwork", DefaultParameterSetName = ASRParameterSets.Default)]
2727
[OutputType(typeof(IEnumerable<ASRNetwork>))]
2828
[Obsolete("This cmdlet has been marked for deprecation in an upcoming release. Please use the " +
29-
"equivalent cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
29+
"Get-AzureRmRecoveryServicesAsrNetwork cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
3030
false)]
3131
public class GetAzureRmSiteRecoveryNetwork : SiteRecoveryCmdletBase
3232
{

src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Network/GetAzureRMSiteRecoveryNetworkMapping.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.SiteRecovery
2626
[Cmdlet(VerbsCommon.Get, "AzureRmSiteRecoveryNetworkMapping", DefaultParameterSetName = ASRParameterSets.Default)]
2727
[OutputType(typeof(IEnumerable<ASRNetworkMapping>))]
2828
[Obsolete("This cmdlet has been marked for deprecation in an upcoming release. Please use the " +
29-
"equivalent cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
29+
"Get-AzureRmRecoveryServicesAsrNetworkMapping cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
3030
false)]
3131
public class GetAzureRmSiteRecoveryNetworkMapping : SiteRecoveryCmdletBase
3232
{
@@ -169,7 +169,7 @@ private void FilterE2AMappingsLegacy()
169169
/// Filter Enterprise to Enterprise Network mappings
170170
/// </summary>
171171
private void FilterE2EMappings()
172-
{
172+
{
173173
foreach (NetworkMapping networkMapping in networkMappingsListResponse.NetworkMappingsList)
174174
{
175175
string primaryFabricName = Utilities.GetValueFromArmId(networkMapping.Id, ARMResourceTypeConstants.ReplicationFabrics);

src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Network/NewAzureRMSiteRecoveryNetworkMapping.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.SiteRecovery
2424
[Cmdlet(VerbsCommon.New, "AzureRmSiteRecoveryNetworkMapping")]
2525
[OutputType(typeof(ASRJob))]
2626
[Obsolete("This cmdlet has been marked for deprecation in an upcoming release. Please use the " +
27-
"equivalent cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
27+
"New-AzureRmRecoveryServicesAsrNetworkMapping cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
2828
false)]
2929
public class NewAzureRmSiteRecoveryNetworkMapping : SiteRecoveryCmdletBase
3030
{

src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Network/RemoveAzureRMSiteRecoveryNetworkMapping.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.SiteRecovery
2424
[Cmdlet(VerbsCommon.Remove, "AzureRmSiteRecoveryNetworkMapping")]
2525
[OutputType(typeof(ASRJob))]
2626
[Obsolete("This cmdlet has been marked for deprecation in an upcoming release. Please use the " +
27-
"equivalent cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
27+
"Remove-AzureRmRecoveryServicesAsrNetworkMapping cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
2828
false)]
2929
public class RemoveAzureRmSiteRecoveryNetworkMapping : SiteRecoveryCmdletBase
3030
{

src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Policy/GetAzureSiteRecoveryPolicy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace Microsoft.Azure.Commands.SiteRecovery
2828
/// </summary>
2929
[Cmdlet(VerbsCommon.Get, "AzureRmSiteRecoveryPolicy", DefaultParameterSetName = ASRParameterSets.Default)]
3030
[Obsolete("This cmdlet has been marked for deprecation in an upcoming release. Please use the " +
31-
"equivalent cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
31+
"Get-AzureRmRecoveryServicesAsrPolicy cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
3232
false)]
3333
[OutputType(typeof(IEnumerable<ASRPolicy>))]
3434
public class GetAzureSiteRecoveryPolicy : SiteRecoveryCmdletBase

src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Policy/NewAzureSiteRecoveryPolicy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.SiteRecovery
2424
/// </summary>
2525
[Cmdlet(VerbsCommon.New, "AzureRmSiteRecoveryPolicy", DefaultParameterSetName = ASRParameterSets.EnterpriseToAzure)]
2626
[Obsolete("This cmdlet has been marked for deprecation in an upcoming release. Please use the " +
27-
"equivalent cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
27+
"New-AzureRmRecoveryServicesAsrPolicy cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
2828
false)]
2929
public class NewAzureSiteRecoveryPolicy : SiteRecoveryCmdletBase
3030
{

src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Policy/RemoveAzureSiteRecoveryPolicy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace Microsoft.Azure.Commands.SiteRecovery
2222
/// </summary>
2323
[Cmdlet(VerbsCommon.Remove, "AzureRmSiteRecoveryPolicy")]
2424
[System.Obsolete("This cmdlet has been marked for deprecation in an upcoming release. Please use the " +
25-
"equivalent cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
25+
"Remove-AzureRmRecoveryServicesAsrPolicy cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
2626
false)]
2727
public class RemoveAzureSiteRecoveryPolicy : SiteRecoveryCmdletBase
2828
{

src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Policy/StartAzureSiteRecoveryPolicyAssociationJob.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.SiteRecovery
2626
[Cmdlet(VerbsLifecycle.Start, "AzureRmSiteRecoveryPolicyAssociationJob", DefaultParameterSetName = ASRParameterSets.EnterpriseToAzure)]
2727
[OutputType(typeof(ASRJob))]
2828
[Obsolete("This cmdlet has been marked for deprecation in an upcoming release. Please use the " +
29-
"equivalent cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
29+
"New-AzureRmRecoveryServicesAsrProtectionContainerMapping cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
3030
false)]
3131
public class StartAzureSiteRecoveryPolicyAssociationJob : SiteRecoveryCmdletBase
3232
{

src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Policy/StartAzureSiteRecoveryPolicyDissociationJob.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace Microsoft.Azure.Commands.SiteRecovery
2525
[Cmdlet(VerbsLifecycle.Start, "AzureRmSiteRecoveryPolicyDissociationJob", DefaultParameterSetName = ASRParameterSets.EnterpriseToAzure)]
2626
[OutputType(typeof(ASRJob))]
2727
[Obsolete("This cmdlet has been marked for deprecation in an upcoming release. Please use the " +
28-
"equivalent cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
28+
"Remove-AzureRmRecoveryServicesAsrProtectionContainerMapping cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
2929
false)]
3030
public class StartAzureSiteRecoveryPolicyDissociationJob : SiteRecoveryCmdletBase
3131
{

src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Policy/UpdateAzureRmSiteRecoveryPolicy.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace Microsoft.Azure.Commands.SiteRecovery
2828
/// </summary>
2929
[Cmdlet(VerbsData.Update, "AzureRmSiteRecoveryPolicy", DefaultParameterSetName = ASRParameterSets.Default)]
3030
[Obsolete("This cmdlet has been marked for deprecation in an upcoming release. Please use the " +
31-
"equivalent cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
31+
"Update-AzureRmRecoveryServicesAsrPolicy cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
3232
false)]
3333
public class UpdateAzureRmSiteRecoveryPolicy : SiteRecoveryCmdletBase
3434
{
@@ -191,7 +191,7 @@ private void EnterpriseToEnterprisePolicyObject()
191191
this.replicationMethod = this.MyInvocation.BoundParameters.ContainsKey(Utilities.GetMemberName(() => this.ReplicationMethod)) ?
192192
((string.Compare(this.ReplicationMethod, Constants.OnlineReplicationMethod, StringComparison.OrdinalIgnoreCase) == 0) ? "OverNetwork" : "Offline") :
193193
((string.Compare(replicationProviderSettings.InitialReplicationMethod, Constants.OnlineReplicationMethod, StringComparison.OrdinalIgnoreCase) == 0) ? "OverNetwork" : "Offline");
194-
this.replicationFrequencyInSeconds = this.MyInvocation.BoundParameters.ContainsKey(Utilities.GetMemberName(() => this.ReplicationFrequencyInSeconds)) ?
194+
this.replicationFrequencyInSeconds = this.MyInvocation.BoundParameters.ContainsKey(Utilities.GetMemberName(() => this.ReplicationFrequencyInSeconds)) ?
195195
PSRecoveryServicesClient.ConvertReplicationFrequencyToUshort(this.ReplicationFrequencyInSeconds) :
196196
replicationProviderSettings.ReplicationFrequencyInSeconds;
197197
this.recoveryPoints = this.MyInvocation.BoundParameters.ContainsKey(Utilities.GetMemberName(() => this.RecoveryPoints)) ?
@@ -215,7 +215,7 @@ private void EnterpriseToEnterprisePolicyObject()
215215
this.replicaDeletion = this.MyInvocation.BoundParameters.ContainsKey(Utilities.GetMemberName(() => this.ReplicaDeletion)) ?
216216
this.ReplicaDeletion :
217217
replicationProviderSettings.ReplicaDeletionOption;
218-
218+
219219
var updatePolicyProperties = new UpdatePolicyProperties();
220220

221221
if (string.Compare(this.Policy.ReplicationProvider, Constants.HyperVReplica2012, StringComparison.OrdinalIgnoreCase) == 0)
@@ -243,7 +243,7 @@ private void EnterpriseToEnterprisePolicyObject()
243243
InitialReplicationMethod = this.replicationMethod,
244244
OnlineReplicationStartTime = this.replicationStartTime,
245245
RecoveryPoints = this.recoveryPoints,
246-
ReplicaDeletion = this.replicaDeletion,
246+
ReplicaDeletion = this.replicaDeletion,
247247
ReplicationPort = this.replicationPort,
248248
ReplicationFrequencyInSeconds = replicationFrequencyInSeconds
249249
};
@@ -287,7 +287,7 @@ private void EnterpriseToAzurePolicyObject()
287287
replicationProviderSettings.RecoveryPoints;
288288
this.applicationConsistentSnapshotFrequencyInHours = this.MyInvocation.BoundParameters.ContainsKey(Utilities.GetMemberName(() => this.ApplicationConsistentSnapshotFrequencyInHours)) ?
289289
this.ApplicationConsistentSnapshotFrequencyInHours :
290-
replicationProviderSettings.ApplicationConsistentSnapshotFrequencyInHours;
290+
replicationProviderSettings.ApplicationConsistentSnapshotFrequencyInHours;
291291
this.replicationStartTime = this.MyInvocation.BoundParameters.ContainsKey(Utilities.GetMemberName(() => this.ReplicationStartTime)) ?
292292
this.replicationStartTime :
293293
replicationProviderSettings.OnlineReplicationStartTime;

src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectableItem/GetAzureRmSiteRecoveryProtectableItem.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace Microsoft.Azure.Commands.SiteRecovery
2828
[Cmdlet(VerbsCommon.Get, "AzureRmSiteRecoveryProtectableItem", DefaultParameterSetName = ASRParameterSets.ByObject)]
2929
[OutputType(typeof(IEnumerable<ASRProtectableItem>))]
3030
[Obsolete("This cmdlet has been marked for deprecation in an upcoming release. Please use the " +
31-
"equivalent cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
31+
"Get-AzureRmRecoveryServicesAsrProtectableItem cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
3232
false)]
3333
public class GetAzureRmSiteRecoveryProtectableItem : SiteRecoveryCmdletBase
3434
{
@@ -89,8 +89,8 @@ private void GetByFriendlyName()
8989
ProtectableItemListResponse protectableItemListResponse = RecoveryServicesClient.GetAzureSiteRecoveryProtectableItem(
9090
Utilities.GetValueFromArmId(this.ProtectionContainer.ID, ARMResourceTypeConstants.ReplicationFabrics),
9191
this.ProtectionContainer.Name);
92-
ProtectableItem protectableItem =
93-
protectableItemListResponse.ProtectableItems.SingleOrDefault(t =>
92+
ProtectableItem protectableItem =
93+
protectableItemListResponse.ProtectableItems.SingleOrDefault(t =>
9494
string.Compare(t.Properties.FriendlyName, this.FriendlyName, StringComparison.OrdinalIgnoreCase) == 0);
9595

9696
if (protectableItem != null)

src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionContainer/GetAzureRmSiteRecoveryProtectionContainer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace Microsoft.Azure.Commands.SiteRecovery
2929
[Cmdlet(VerbsCommon.Get, "AzureRmSiteRecoveryProtectionContainer", DefaultParameterSetName = ASRParameterSets.Default)]
3030
[OutputType(typeof(IEnumerable<ASRProtectionContainer>))]
3131
[Obsolete("This cmdlet has been marked for deprecation in an upcoming release. Please use the " +
32-
"equivalent cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
32+
"Get-AzureRmRecoveryServicesAsrProtectionContainer cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
3333
false)]
3434
public class GetAzureRmSiteRecoveryProtectionContainer : SiteRecoveryCmdletBase
3535
{

src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionContainerMapping/GetAzureRmSiteRecoveryProtectionContainerMapping.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace Microsoft.Azure.Commands.SiteRecovery
2828
[Cmdlet(VerbsCommon.Get, "AzureRmSiteRecoveryProtectionContainerMapping", DefaultParameterSetName = ASRParameterSets.ByObject)]
2929
[OutputType(typeof(IEnumerable<ASRProtectionContainerMapping>))]
3030
[Obsolete("This cmdlet has been marked for deprecation in an upcoming release. Please use the " +
31-
"equivalent cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
31+
"Get-AzureRmRecoveryServicesAsrProtectionContainerMapping cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
3232
false)]
3333
public class GetAzureRmSiteRecoveryProtectionContainerMapping : SiteRecoveryCmdletBase
3434
{

src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionContainerMapping/NewAzureRmSiteRecoveryProtectionContainerMapping.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace Microsoft.Azure.Commands.SiteRecovery
2929
[Cmdlet(VerbsCommon.New, "AzureRmSiteRecoveryProtectionContainerMapping", DefaultParameterSetName = ASRParameterSets.EnterpriseToAzure)]
3030
[OutputType(typeof(ASRJob))]
3131
[Obsolete("This cmdlet has been marked for deprecation in an upcoming release. Please use the " +
32-
"equivalent cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
32+
"New-AzureRmRecoveryServicesAsrProtectionContainerMapping cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
3333
false)]
3434
public class NewAzureRmSiteRecoveryProtectionContainerMapping : SiteRecoveryCmdletBase
3535
{
@@ -147,8 +147,8 @@ private void Associate(string targetProtectionContainerId)
147147

148148
LongRunningOperationResponse response = RecoveryServicesClient.ConfigureProtection(
149149
Utilities.GetValueFromArmId(this.PrimaryProtectionContainer.ID, ARMResourceTypeConstants.ReplicationFabrics),
150-
this.PrimaryProtectionContainer.Name,
151-
this.Name,
150+
this.PrimaryProtectionContainer.Name,
151+
this.Name,
152152
input);
153153

154154
JobResponse jobResponse =

src/ResourceManager/SiteRecovery/Commands.SiteRecovery/ProtectionContainerMapping/RemoveAzureRmSiteRecoveryProtectionContainerMapping.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.SiteRecovery
2626
[Cmdlet(VerbsCommon.Remove, "AzureRmSiteRecoveryProtectionContainerMapping", DefaultParameterSetName = ASRParameterSets.ByObject, SupportsShouldProcess = true)]
2727
[OutputType(typeof(ASRJob))]
2828
[Obsolete("This cmdlet has been marked for deprecation in an upcoming release. Please use the " +
29-
"equivalent cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
29+
"Remove-AzureRmRecoveryServicesAsrProtectionContainerMapping cmdlet from the AzureRm.RecoveryServices.SiteRecovery module instead.",
3030
false)]
3131
public class RemoveAzureRmSiteRecoveryProtectionContainerMapping : SiteRecoveryCmdletBase
3232
{

0 commit comments

Comments
 (0)