Skip to content

Azure Site Recovery new cmdlet to support Azure to Azure (A2A) replication #5533

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Mar 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -589,4 +589,4 @@ private void SetupPowerShellModules(System.Management.Automation.PowerShell powe
}

}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check your git client settings - there are a bunch of weird diffs here which may indicate that you are using the wrong line endings.

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -76,64 +76,67 @@ NestedModules = @('.\Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.dll'
FunctionsToExport = @()

# 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.
CmdletsToExport = 'Edit-AzureRmRecoveryServicesAsrRecoveryPlan',
'Get-AzureRmRecoveryServicesAsrAlertSetting',
'Get-AzureRmRecoveryServicesAsrEvent',
'Get-AzureRmRecoveryServicesAsrFabric',
'Get-AzureRmRecoveryServicesAsrJob',
'Get-AzureRmRecoveryServicesAsrNetwork',
'Get-AzureRmRecoveryServicesAsrNetworkMapping',
'Get-AzureRmRecoveryServicesAsrPolicy',
'Get-AzureRmRecoveryServicesAsrProtectableItem',
'Get-AzureRmRecoveryServicesAsrProtectionContainer',
'Get-AzureRmRecoveryServicesAsrProtectionContainerMapping',
'Get-AzureRmRecoveryServicesAsrRecoveryPlan',
'Get-AzureRmRecoveryServicesAsrRecoveryPoint',
'Get-AzureRmRecoveryServicesAsrReplicationProtectedItem',
'Get-AzureRmRecoveryServicesAsrServicesProvider',
'Get-AzureRmRecoveryServicesAsrStorageClassification',
'Get-AzureRmRecoveryServicesAsrStorageClassificationMapping',
'Get-AzureRmRecoveryServicesAsrVaultContext',
'Get-AzureRmRecoveryServicesAsrvCenter',
'Import-AzureRmRecoveryServicesAsrVaultSettingsFile',
'New-AzureRmRecoveryServicesAsrFabric',
'New-AzureRmRecoveryServicesAsrNetworkMapping',
'New-AzureRmRecoveryServicesAsrPolicy',
'New-AzureRmRecoveryServicesAsrProtectableItem',
'New-AzureRmRecoveryServicesAsrProtectionContainerMapping',
'New-AzureRmRecoveryServicesAsrRecoveryPlan',
'New-AzureRmRecoveryServicesAsrReplicationProtectedItem',
'New-AzureRmRecoveryServicesAsrStorageClassificationMapping',
'New-AzureRmRecoveryServicesAsrvCenter',
'Remove-AzureRmRecoveryServicesAsrFabric',
'Remove-AzureRmRecoveryServicesAsrNetworkMapping',
'Remove-AzureRmRecoveryServicesAsrPolicy',
'Remove-AzureRmRecoveryServicesAsrProtectionContainerMapping',
'Remove-AzureRmRecoveryServicesAsrRecoveryPlan',
'Remove-AzureRmRecoveryServicesAsrReplicationProtectedItem',
'Remove-AzureRmRecoveryServicesAsrServicesProvider',
'Remove-AzureRmRecoveryServicesAsrStorageClassificationMapping',
'Remove-AzureRmRecoveryServicesAsrvCenter',
'Restart-AzureRmRecoveryServicesAsrJob',
'Resume-AzureRmRecoveryServicesAsrJob',
'Set-AzureRmRecoveryServicesAsrAlertSetting',
'Set-AzureRmRecoveryServicesAsrReplicationProtectedItem',
'Set-AzureRmRecoveryServicesAsrVaultContext',
'Start-AzureRmRecoveryServicesAsrApplyRecoveryPoint',
'Start-AzureRmRecoveryServicesAsrCommitFailoverJob',
'Start-AzureRmRecoveryServicesAsrPlannedFailoverJob',
'Start-AzureRmRecoveryServicesAsrResynchronizeReplicationJob',
'Start-AzureRmRecoveryServicesAsrSwitchProcessServerJob',
'Start-AzureRmRecoveryServicesAsrTestFailoverCleanupJob',
'Start-AzureRmRecoveryServicesAsrTestFailoverJob',
'Start-AzureRmRecoveryServicesAsrUnplannedFailoverJob',
'Stop-AzureRmRecoveryServicesAsrJob',
'Update-AzureRmRecoveryServicesAsrMobilityService',
'Update-AzureRmRecoveryServicesAsrNetworkMapping',
'Update-AzureRmRecoveryServicesAsrPolicy',
'Update-AzureRmRecoveryServicesAsrProtectionDirection',
'Update-AzureRmRecoveryServicesAsrRecoveryPlan',
'Update-AzureRmRecoveryServicesAsrServicesProvider',
CmdletsToExport = 'Edit-AzureRmRecoveryServicesAsrRecoveryPlan',
'Get-AzureRmRecoveryServicesAsrAlertSetting',
'Get-AzureRmRecoveryServicesAsrEvent',
'Get-AzureRmRecoveryServicesAsrFabric',
'Get-AzureRmRecoveryServicesAsrJob',
'Get-AzureRmRecoveryServicesAsrNetwork',
'Get-AzureRmRecoveryServicesAsrNetworkMapping',
'Get-AzureRmRecoveryServicesAsrPolicy',
'Get-AzureRmRecoveryServicesAsrProtectableItem',
'Get-AzureRmRecoveryServicesAsrProtectionContainer',
'Get-AzureRmRecoveryServicesAsrProtectionContainerMapping',
'Get-AzureRmRecoveryServicesAsrRecoveryPlan',
'Get-AzureRmRecoveryServicesAsrRecoveryPoint',
'Get-AzureRmRecoveryServicesAsrReplicationProtectedItem',
'Get-AzureRmRecoveryServicesAsrServicesProvider',
'Get-AzureRmRecoveryServicesAsrStorageClassification',
'Get-AzureRmRecoveryServicesAsrStorageClassificationMapping',
'Get-AzureRmRecoveryServicesAsrVaultContext',
'Get-AzureRmRecoveryServicesAsrvCenter',
'Import-AzureRmRecoveryServicesAsrVaultSettingsFile',
'New-AzureRmRecoveryServicesAsrFabric',
'New-AzureRmRecoveryServicesAsrNetworkMapping',
'New-AzureRmRecoveryServicesAsrPolicy',
'New-AzureRmRecoveryServicesAsrProtectableItem',
'New-AzureRmRecoveryServicesAsrProtectionContainer',
'New-AzureRmRecoveryServicesAsrProtectionContainerMapping',
'New-AzureRmRecoveryServicesAsrRecoveryPlan',
'New-AzureRmRecoveryServicesAsrReplicationProtectedItem',
'New-AzureRmRecoveryServicesAsrStorageClassificationMapping',
'New-AzureRmRecoveryServicesAsrvCenter',
'New-AzureRmRecoveryServicesAsrAzureToAzureDiskReplicationConfig',
'Remove-AzureRmRecoveryServicesAsrFabric',
'Remove-AzureRmRecoveryServicesAsrNetworkMapping',
'Remove-AzureRmRecoveryServicesAsrPolicy',
'Remove-AzureRmRecoveryServicesAsrProtectionContainer',
'Remove-AzureRmRecoveryServicesAsrProtectionContainerMapping',
'Remove-AzureRmRecoveryServicesAsrRecoveryPlan',
'Remove-AzureRmRecoveryServicesAsrReplicationProtectedItem',
'Remove-AzureRmRecoveryServicesAsrServicesProvider',
'Remove-AzureRmRecoveryServicesAsrStorageClassificationMapping',
'Remove-AzureRmRecoveryServicesAsrvCenter',
'Restart-AzureRmRecoveryServicesAsrJob',
'Resume-AzureRmRecoveryServicesAsrJob',
'Set-AzureRmRecoveryServicesAsrAlertSetting',
'Set-AzureRmRecoveryServicesAsrReplicationProtectedItem',
'Set-AzureRmRecoveryServicesAsrVaultContext',
'Start-AzureRmRecoveryServicesAsrApplyRecoveryPoint',
'Start-AzureRmRecoveryServicesAsrCommitFailoverJob',
'Start-AzureRmRecoveryServicesAsrPlannedFailoverJob',
'Start-AzureRmRecoveryServicesAsrResynchronizeReplicationJob',
'Start-AzureRmRecoveryServicesAsrSwitchProcessServerJob',
'Start-AzureRmRecoveryServicesAsrTestFailoverCleanupJob',
'Start-AzureRmRecoveryServicesAsrTestFailoverJob',
'Start-AzureRmRecoveryServicesAsrUnplannedFailoverJob',
'Stop-AzureRmRecoveryServicesAsrJob',
'Update-AzureRmRecoveryServicesAsrMobilityService',
'Update-AzureRmRecoveryServicesAsrNetworkMapping',
'Update-AzureRmRecoveryServicesAsrPolicy',
'Update-AzureRmRecoveryServicesAsrProtectionDirection',
'Update-AzureRmRecoveryServicesAsrRecoveryPlan',
'Update-AzureRmRecoveryServicesAsrServicesProvider',
'Update-AzureRmRecoveryServicesAsrvCenter'

# Variables to export from this module
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
- Additional information about change #1
-->
## Current Release
* 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)
- New-AzureRmRecoveryServicesAsrProtectionContainer
- New-AzureRmRecoveryServicesAsrAzureToAzureDiskReplicationConfig
- Remove-AzureRmRecoveryServicesAsrProtectionContainer
- Update-AzureRmRecoveryServicesAsrProtectionDirection
* Fixed issue with cleaning up scripts in build

## Version 0.2.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@
<Private>True</Private>
</Reference>
<Reference Include="Microsoft.Azure.Management.RecoveryServices.SiteRecovery, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.Azure.Management.RecoveryServices.SiteRecovery.1.0.2-preview\lib\net452\Microsoft.Azure.Management.RecoveryServices.SiteRecovery.dll</HintPath>
<Private>True</Private>
<HintPath>..\..\..\packages\Microsoft.Azure.Management.RecoveryServices.SiteRecovery.1.0.3-preview\lib\net452\Microsoft.Azure.Management.RecoveryServices.SiteRecovery.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.ResourceManager, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
Expand Down Expand Up @@ -262,6 +261,9 @@
<None Include="SessionRecords\RecoveryServices.SiteRecovery.Test.AsrV2ATests\V2AVCenterTest.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\RecoveryServices.SiteRecovery.Test.AsrV2ATests\V2AUpdatePolicy.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Common\Commands.Common.Authentication.Abstractions\Commands.Common.Authentication.Abstractions.csproj">
Expand Down Expand Up @@ -296,6 +298,9 @@
<ItemGroup>
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
</ItemGroup>
<ItemGroup />
<ItemGroup>
<Folder Include="ScenarioTests\A2A\" />
<Folder Include="SessionRecords\RecoveryServices.SiteRecovery.Test.AsrA2ATests\" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -268,4 +268,3 @@ function Test-NotificationSettings
Assert-NotNull($NotificationSettings.Locale)
Set-AzureRmRecoveryServicesAsrNotificationSetting -DisableNotification
}

Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@ public class Constants
{
public const string Default = "Default";
public const string NewModel = "NewModel";
public const string A2AV1VmEndToEnd = "A2AV1VmEndToEnd";
public const string A2AV2VmEndToEndWithAVSet = "A2AV2VmEndToEndWithAvaiabiltySet";
public const string A2AV2RecoveryPlanEndToEnd = "A2AV2RecoveryPlanEndToEnd";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
<SiteId />
<SiteName />
<Version>1.0</Version>
</ASRVaultCreds>
</ASRVaultCreds>
Loading