Skip to content

Commit d841703

Browse files
authored
Merge pull request #5533 from AsrOneSdk/a2apowershell_preview
Azure Site Recovery new cmdlet to support Azure to Azure (A2A) replication
2 parents 4eb4e5a + 7cad909 commit d841703

File tree

138 files changed

+5376
-2112
lines changed

Some content is hidden

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

138 files changed

+5376
-2112
lines changed

src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/EnvironmentSetupHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,4 +589,4 @@ private void SetupPowerShellModules(System.Management.Automation.PowerShell powe
589589
}
590590

591591
}
592-
}
592+
}

src/ResourceManager/RecoveryServices.SiteRecovery/AzureRM.RecoveryServices.SiteRecovery.psd1

Lines changed: 61 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -76,64 +76,67 @@ NestedModules = @('.\Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.dll'
7676
FunctionsToExport = @()
7777

7878
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
79-
CmdletsToExport = 'Edit-AzureRmRecoveryServicesAsrRecoveryPlan',
80-
'Get-AzureRmRecoveryServicesAsrAlertSetting',
81-
'Get-AzureRmRecoveryServicesAsrEvent',
82-
'Get-AzureRmRecoveryServicesAsrFabric',
83-
'Get-AzureRmRecoveryServicesAsrJob',
84-
'Get-AzureRmRecoveryServicesAsrNetwork',
85-
'Get-AzureRmRecoveryServicesAsrNetworkMapping',
86-
'Get-AzureRmRecoveryServicesAsrPolicy',
87-
'Get-AzureRmRecoveryServicesAsrProtectableItem',
88-
'Get-AzureRmRecoveryServicesAsrProtectionContainer',
89-
'Get-AzureRmRecoveryServicesAsrProtectionContainerMapping',
90-
'Get-AzureRmRecoveryServicesAsrRecoveryPlan',
91-
'Get-AzureRmRecoveryServicesAsrRecoveryPoint',
92-
'Get-AzureRmRecoveryServicesAsrReplicationProtectedItem',
93-
'Get-AzureRmRecoveryServicesAsrServicesProvider',
94-
'Get-AzureRmRecoveryServicesAsrStorageClassification',
95-
'Get-AzureRmRecoveryServicesAsrStorageClassificationMapping',
96-
'Get-AzureRmRecoveryServicesAsrVaultContext',
97-
'Get-AzureRmRecoveryServicesAsrvCenter',
98-
'Import-AzureRmRecoveryServicesAsrVaultSettingsFile',
99-
'New-AzureRmRecoveryServicesAsrFabric',
100-
'New-AzureRmRecoveryServicesAsrNetworkMapping',
101-
'New-AzureRmRecoveryServicesAsrPolicy',
102-
'New-AzureRmRecoveryServicesAsrProtectableItem',
103-
'New-AzureRmRecoveryServicesAsrProtectionContainerMapping',
104-
'New-AzureRmRecoveryServicesAsrRecoveryPlan',
105-
'New-AzureRmRecoveryServicesAsrReplicationProtectedItem',
106-
'New-AzureRmRecoveryServicesAsrStorageClassificationMapping',
107-
'New-AzureRmRecoveryServicesAsrvCenter',
108-
'Remove-AzureRmRecoveryServicesAsrFabric',
109-
'Remove-AzureRmRecoveryServicesAsrNetworkMapping',
110-
'Remove-AzureRmRecoveryServicesAsrPolicy',
111-
'Remove-AzureRmRecoveryServicesAsrProtectionContainerMapping',
112-
'Remove-AzureRmRecoveryServicesAsrRecoveryPlan',
113-
'Remove-AzureRmRecoveryServicesAsrReplicationProtectedItem',
114-
'Remove-AzureRmRecoveryServicesAsrServicesProvider',
115-
'Remove-AzureRmRecoveryServicesAsrStorageClassificationMapping',
116-
'Remove-AzureRmRecoveryServicesAsrvCenter',
117-
'Restart-AzureRmRecoveryServicesAsrJob',
118-
'Resume-AzureRmRecoveryServicesAsrJob',
119-
'Set-AzureRmRecoveryServicesAsrAlertSetting',
120-
'Set-AzureRmRecoveryServicesAsrReplicationProtectedItem',
121-
'Set-AzureRmRecoveryServicesAsrVaultContext',
122-
'Start-AzureRmRecoveryServicesAsrApplyRecoveryPoint',
123-
'Start-AzureRmRecoveryServicesAsrCommitFailoverJob',
124-
'Start-AzureRmRecoveryServicesAsrPlannedFailoverJob',
125-
'Start-AzureRmRecoveryServicesAsrResynchronizeReplicationJob',
126-
'Start-AzureRmRecoveryServicesAsrSwitchProcessServerJob',
127-
'Start-AzureRmRecoveryServicesAsrTestFailoverCleanupJob',
128-
'Start-AzureRmRecoveryServicesAsrTestFailoverJob',
129-
'Start-AzureRmRecoveryServicesAsrUnplannedFailoverJob',
130-
'Stop-AzureRmRecoveryServicesAsrJob',
131-
'Update-AzureRmRecoveryServicesAsrMobilityService',
132-
'Update-AzureRmRecoveryServicesAsrNetworkMapping',
133-
'Update-AzureRmRecoveryServicesAsrPolicy',
134-
'Update-AzureRmRecoveryServicesAsrProtectionDirection',
135-
'Update-AzureRmRecoveryServicesAsrRecoveryPlan',
136-
'Update-AzureRmRecoveryServicesAsrServicesProvider',
79+
CmdletsToExport = 'Edit-AzureRmRecoveryServicesAsrRecoveryPlan',
80+
'Get-AzureRmRecoveryServicesAsrAlertSetting',
81+
'Get-AzureRmRecoveryServicesAsrEvent',
82+
'Get-AzureRmRecoveryServicesAsrFabric',
83+
'Get-AzureRmRecoveryServicesAsrJob',
84+
'Get-AzureRmRecoveryServicesAsrNetwork',
85+
'Get-AzureRmRecoveryServicesAsrNetworkMapping',
86+
'Get-AzureRmRecoveryServicesAsrPolicy',
87+
'Get-AzureRmRecoveryServicesAsrProtectableItem',
88+
'Get-AzureRmRecoveryServicesAsrProtectionContainer',
89+
'Get-AzureRmRecoveryServicesAsrProtectionContainerMapping',
90+
'Get-AzureRmRecoveryServicesAsrRecoveryPlan',
91+
'Get-AzureRmRecoveryServicesAsrRecoveryPoint',
92+
'Get-AzureRmRecoveryServicesAsrReplicationProtectedItem',
93+
'Get-AzureRmRecoveryServicesAsrServicesProvider',
94+
'Get-AzureRmRecoveryServicesAsrStorageClassification',
95+
'Get-AzureRmRecoveryServicesAsrStorageClassificationMapping',
96+
'Get-AzureRmRecoveryServicesAsrVaultContext',
97+
'Get-AzureRmRecoveryServicesAsrvCenter',
98+
'Import-AzureRmRecoveryServicesAsrVaultSettingsFile',
99+
'New-AzureRmRecoveryServicesAsrFabric',
100+
'New-AzureRmRecoveryServicesAsrNetworkMapping',
101+
'New-AzureRmRecoveryServicesAsrPolicy',
102+
'New-AzureRmRecoveryServicesAsrProtectableItem',
103+
'New-AzureRmRecoveryServicesAsrProtectionContainer',
104+
'New-AzureRmRecoveryServicesAsrProtectionContainerMapping',
105+
'New-AzureRmRecoveryServicesAsrRecoveryPlan',
106+
'New-AzureRmRecoveryServicesAsrReplicationProtectedItem',
107+
'New-AzureRmRecoveryServicesAsrStorageClassificationMapping',
108+
'New-AzureRmRecoveryServicesAsrvCenter',
109+
'New-AzureRmRecoveryServicesAsrAzureToAzureDiskReplicationConfig',
110+
'Remove-AzureRmRecoveryServicesAsrFabric',
111+
'Remove-AzureRmRecoveryServicesAsrNetworkMapping',
112+
'Remove-AzureRmRecoveryServicesAsrPolicy',
113+
'Remove-AzureRmRecoveryServicesAsrProtectionContainer',
114+
'Remove-AzureRmRecoveryServicesAsrProtectionContainerMapping',
115+
'Remove-AzureRmRecoveryServicesAsrRecoveryPlan',
116+
'Remove-AzureRmRecoveryServicesAsrReplicationProtectedItem',
117+
'Remove-AzureRmRecoveryServicesAsrServicesProvider',
118+
'Remove-AzureRmRecoveryServicesAsrStorageClassificationMapping',
119+
'Remove-AzureRmRecoveryServicesAsrvCenter',
120+
'Restart-AzureRmRecoveryServicesAsrJob',
121+
'Resume-AzureRmRecoveryServicesAsrJob',
122+
'Set-AzureRmRecoveryServicesAsrAlertSetting',
123+
'Set-AzureRmRecoveryServicesAsrReplicationProtectedItem',
124+
'Set-AzureRmRecoveryServicesAsrVaultContext',
125+
'Start-AzureRmRecoveryServicesAsrApplyRecoveryPoint',
126+
'Start-AzureRmRecoveryServicesAsrCommitFailoverJob',
127+
'Start-AzureRmRecoveryServicesAsrPlannedFailoverJob',
128+
'Start-AzureRmRecoveryServicesAsrResynchronizeReplicationJob',
129+
'Start-AzureRmRecoveryServicesAsrSwitchProcessServerJob',
130+
'Start-AzureRmRecoveryServicesAsrTestFailoverCleanupJob',
131+
'Start-AzureRmRecoveryServicesAsrTestFailoverJob',
132+
'Start-AzureRmRecoveryServicesAsrUnplannedFailoverJob',
133+
'Stop-AzureRmRecoveryServicesAsrJob',
134+
'Update-AzureRmRecoveryServicesAsrMobilityService',
135+
'Update-AzureRmRecoveryServicesAsrNetworkMapping',
136+
'Update-AzureRmRecoveryServicesAsrPolicy',
137+
'Update-AzureRmRecoveryServicesAsrProtectionDirection',
138+
'Update-AzureRmRecoveryServicesAsrRecoveryPlan',
139+
'Update-AzureRmRecoveryServicesAsrServicesProvider',
137140
'Update-AzureRmRecoveryServicesAsrvCenter'
138141

139142
# Variables to export from this module

src/ResourceManager/RecoveryServices.SiteRecovery/ChangeLog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
- Additional information about change #1
1919
-->
2020
## Current Release
21+
* Changes for ASR Azure to Azure Site Recovery (cmdlets are currently supporting operations for Enterprise to Enterprise, Enterprise to Azure, HyperV to Azure,VMware to Azure)
22+
- New-AzureRmRecoveryServicesAsrProtectionContainer
23+
- New-AzureRmRecoveryServicesAsrAzureToAzureDiskReplicationConfig
24+
- Remove-AzureRmRecoveryServicesAsrProtectionContainer
25+
- Update-AzureRmRecoveryServicesAsrProtectionDirection
2126
* Fixed issue with cleaning up scripts in build
2227

2328
## Version 0.2.2

src/ResourceManager/RecoveryServices.SiteRecovery/Commands.RecoveryServices.SiteRecovery.Test/Commands.RecoveryServices.SiteRecovery.Test.csproj

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@
4848
<Private>True</Private>
4949
</Reference>
5050
<Reference Include="Microsoft.Azure.Management.RecoveryServices.SiteRecovery, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
51-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.RecoveryServices.SiteRecovery.1.0.2-preview\lib\net452\Microsoft.Azure.Management.RecoveryServices.SiteRecovery.dll</HintPath>
52-
<Private>True</Private>
51+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.RecoveryServices.SiteRecovery.1.0.3-preview\lib\net452\Microsoft.Azure.Management.RecoveryServices.SiteRecovery.dll</HintPath>
5352
</Reference>
5453
<Reference Include="Microsoft.Azure.ResourceManager, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
5554
<SpecificVersion>False</SpecificVersion>
@@ -262,6 +261,9 @@
262261
<None Include="SessionRecords\RecoveryServices.SiteRecovery.Test.AsrV2ATests\V2AVCenterTest.json">
263262
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
264263
</None>
264+
<None Include="SessionRecords\RecoveryServices.SiteRecovery.Test.AsrV2ATests\V2AUpdatePolicy.json">
265+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
266+
</None>
265267
</ItemGroup>
266268
<ItemGroup>
267269
<ProjectReference Include="..\..\..\Common\Commands.Common.Authentication.Abstractions\Commands.Common.Authentication.Abstractions.csproj">
@@ -296,6 +298,9 @@
296298
<ItemGroup>
297299
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
298300
</ItemGroup>
299-
<ItemGroup />
301+
<ItemGroup>
302+
<Folder Include="ScenarioTests\A2A\" />
303+
<Folder Include="SessionRecords\RecoveryServices.SiteRecovery.Test.AsrA2ATests\" />
304+
</ItemGroup>
300305
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
301-
</Project>
306+
</Project>

src/ResourceManager/RecoveryServices.SiteRecovery/Commands.RecoveryServices.SiteRecovery.Test/ScenarioTests/Common/AsrTests.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,4 +268,3 @@ function Test-NotificationSettings
268268
Assert-NotNull($NotificationSettings.Locale)
269269
Set-AzureRmRecoveryServicesAsrNotificationSetting -DisableNotification
270270
}
271-

src/ResourceManager/RecoveryServices.SiteRecovery/Commands.RecoveryServices.SiteRecovery.Test/ScenarioTests/Constants.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,8 @@ public class Constants
1818
{
1919
public const string Default = "Default";
2020
public const string NewModel = "NewModel";
21+
public const string A2AV1VmEndToEnd = "A2AV1VmEndToEnd";
22+
public const string A2AV2VmEndToEndWithAVSet = "A2AV2VmEndToEndWithAvaiabiltySet";
23+
public const string A2AV2RecoveryPlanEndToEnd = "A2AV2RecoveryPlanEndToEnd";
2124
}
2225
}

src/ResourceManager/RecoveryServices.SiteRecovery/Commands.RecoveryServices.SiteRecovery.Test/ScenarioTests/V2A/V2A.VaultCredentials

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
<SiteId />
1818
<SiteName />
1919
<Version>1.0</Version>
20-
</ASRVaultCreds>
20+
</ASRVaultCreds>

0 commit comments

Comments
 (0)