Skip to content

Commit 54c11a2

Browse files
committed
Merge pull request #47 from AsrOneSdk/sanjkuma-dev
CreateRecoveryVmIfDoesntExist is not supported, so should be false.
2 parents f7ed47c + d247e68 commit 54c11a2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Commands.RecoveryServices.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@
166166
<Compile Include="PSRecoveryServicesClient\PSRecoveryServicesVMClient.cs" />
167167
<Compile Include="RecoveryServicesCmdletBase.cs" />
168168
<Compile Include="Properties\AssemblyInfo.cs" />
169+
<Compile Include="Service\GetAzureSiteRecoveryVault.cs" />
169170
<Compile Include="Service\NewAzureSiteRecoverySite.cs" />
170171
<Compile Include="Service\GetAzureSiteRecoverySite.cs" />
171172
<Compile Include="Service\SetAzureSiteRecoveryVM.cs" />
@@ -174,7 +175,6 @@
174175
<Compile Include="Service\NewAzureSiteRecoveryVault.cs" />
175176
<Compile Include="Service\GetAzureSiteRecoveryStorage.cs" />
176177
<Compile Include="Service\GetAzureSiteRecoveryStorageMapping.cs" />
177-
<Compile Include="Service\GetAzureSiteRecoveryVaults.cs" />
178178
<Compile Include="Service\NewAzureSiteRecoveryStorageMapping.cs" />
179179
<Compile Include="Service\RemoveAzureSiteRecoveryStorageMapping.cs" />
180180
<Compile Include="Service\RemoveAzureSiteRecoveryNetworkMapping.cs" />

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ private void StartPEPlannedFailover()
159159
else
160160
{
161161
var blob = new AzureFailbackInput();
162-
blob.CreateRecoveryVmIfDoesntExist = true;
162+
blob.CreateRecoveryVmIfDoesntExist = false;
163163
blob.SkipDataSync = this.Optimize == Constants.ForDowntime ? true : false;
164164
request.ReplicationProviderSettings = DataContractUtils.Serialize<AzureFailbackInput>(blob);
165165
}
@@ -215,7 +215,7 @@ private void StartRpPlannedFailover()
215215
{
216216
var blob = new AzureFailbackInput();
217217
blob.CreateRecoveryVmIfDoesntExist = false;
218-
blob.SkipDataSync = true;
218+
blob.SkipDataSync = this.Optimize == Constants.ForDowntime ? true : false;
219219
request.ReplicationProviderSettings = DataContractUtils.Serialize<AzureFailbackInput>(blob);
220220
}
221221
}

0 commit comments

Comments
 (0)