Skip to content

Commit 52865c9

Browse files
committed
Reverting Default values that do not function
1 parent 8471704 commit 52865c9

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Microsoft.Azure.Commands.RecoveryServices.dll-help.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4900,15 +4900,15 @@
49004900
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="named">
49014901
<maml:name>ReplicationMethod</maml:name>
49024902
<maml:description>
4903-
<maml:para>Replication Method either Online or Offline. Default is taken as Online.</maml:para>
4903+
<maml:para>Replication Method either Online or Offline.</maml:para>
49044904
</maml:description>
49054905
<command:parameterValue required="false" variableLength="false">string</command:parameterValue>
49064906
</command:parameter>
49074907

49084908
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="named">
49094909
<maml:name>ReplicationFrequencyInSeconds</maml:name>
49104910
<maml:description>
4911-
<maml:para>Replication Frequency In Seconds. Default is taken as 300.</maml:para>
4911+
<maml:para>Replication Frequency In Seconds. Default is taken as 0.</maml:para>
49124912
</maml:description>
49134913
<command:parameterValue required="false" variableLength="false">string</command:parameterValue>
49144914
</command:parameter>
@@ -4940,15 +4940,15 @@
49404940
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="named">
49414941
<maml:name>ReplicationPort</maml:name>
49424942
<maml:description>
4943-
<maml:para>Replication Port. Default is taken as 8084.</maml:para>
4943+
<maml:para>Replication Port. Default is 0.</maml:para>
49444944
</maml:description>
49454945
<command:parameterValue required="false" variableLength="false">string</command:parameterValue>
49464946
</command:parameter>
49474947

49484948
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="named">
49494949
<maml:name>CompressionEnabled</maml:name>
49504950
<maml:description>
4951-
<maml:para>Compression to be Enabled. Default is true.</maml:para>
4951+
<maml:para>Compression to be Enabled. Default is false.</maml:para>
49524952
</maml:description>
49534953
</command:parameter>
49544954

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Service/CreateAzureSiteRecoveryProtectionProfileObject.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ public class CreateAzureSiteRecoveryProtectionProfileObject : RecoveryServicesCm
8080
[Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise)]
8181
[Parameter(ParameterSetName = ASRParameterSets.EnterpriseToAzure)]
8282
[ValidateNotNullOrEmpty]
83-
[DefaultValue(300)]
8483
public ushort ReplicationFrequencyInSeconds { get; set; }
8584

8685
/// <summary>
@@ -105,15 +104,15 @@ public class CreateAzureSiteRecoveryProtectionProfileObject : RecoveryServicesCm
105104
/// Gets or sets a value indicating whether Compression needs to be Enabled on the Protection Profile.
106105
/// </summary>
107106
[Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise)]
108-
[DefaultValue(true)]
107+
[DefaultValue(false)]
109108
public SwitchParameter CompressionEnabled { get; set; }
110109

111110
/// <summary>
112111
/// Gets or sets the Replication Port of the Protection Profile.
113112
/// </summary>
114113
[Parameter(ParameterSetName = ASRParameterSets.EnterpriseToEnterprise)]
115114
[ValidateNotNullOrEmpty]
116-
[DefaultValue(8084)]
115+
[DefaultValue(0)]
117116
public ushort ReplicationPort { get; set; }
118117

119118
/// <summary>
@@ -124,7 +123,6 @@ public class CreateAzureSiteRecoveryProtectionProfileObject : RecoveryServicesCm
124123
[ValidateSet(
125124
Constants.AuthenticationTypeCertificate,
126125
Constants.AuthenticationTypeKerberos)]
127-
[DefaultValue(Constants.AuthenticationTypeCertificate)]
128126
public string Authentication { get; set; }
129127

130128
/// <summary>

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Service/StartAzureSiteRecoveryProtectionProfileAssociationJob.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ HyperVReplicaAzureProtectionProfileInput hyperVReplicaAzureProtectionProfileInpu
104104
ReplicationInterval = this.ProtectionProfile.HyperVReplicaAzureProviderSettingsObject.ReplicationFrequencyInSeconds,
105105
OnlineReplicationStartTime = this.ProtectionProfile.HyperVReplicaAzureProviderSettingsObject.ReplicationStartTime,
106106
RecoveryPointHistoryDuration = this.ProtectionProfile.HyperVReplicaAzureProviderSettingsObject.RecoveryPoints,
107+
EncryptionEnabled = this.ProtectionProfile.HyperVReplicaAzureProviderSettingsObject.EncryptStoredData
107108
};
108109

109110
var storageAccount = new CustomerStorageAccount();
@@ -148,7 +149,8 @@ HyperVReplicaProtectionProfileInput hyperVReplicaProtectionProfileInput
148149
OnlineReplicationMethod = (string.Compare(this.ProtectionProfile.HyperVReplicaProviderSettingsObject.ReplicationMethod, Constants.OnlineReplicationMethod, StringComparison.OrdinalIgnoreCase) == 1) ? true : false,
149150
RecoveryPoints = this.ProtectionProfile.HyperVReplicaProviderSettingsObject.RecoveryPoints,
150151
ReplicationPort = this.ProtectionProfile.HyperVReplicaProviderSettingsObject.ReplicationPort,
151-
AllowReplicaDeletion = this.ProtectionProfile.HyperVReplicaProviderSettingsObject.AllowReplicaDeletion
152+
AllowReplicaDeletion = this.ProtectionProfile.HyperVReplicaProviderSettingsObject.AllowReplicaDeletion,
153+
AllowedAuthenticationType = (ushort)((string.Compare(this.ProtectionProfile.HyperVReplicaProviderSettingsObject.Authentication, Constants.AuthenticationTypeKerberos, StringComparison.OrdinalIgnoreCase) == 0) ? 1 : 2),
152154
};
153155

154156
CreateProtectionProfileInput createProtectionProfileInput =

0 commit comments

Comments
 (0)