Skip to content

Added Location to Azure Site Recovery (ASR) vault settings file #2242

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 1 commit into from
May 10, 2016
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 @@ -43,13 +43,21 @@ function Test-RecoveryServicesVaultCRUDTests
Set-AzureRmRecoveryServicesBackupProperties -Vault $vaultCreationResponse -BackupStorageRedundancy "LocallyRedundant"

# Get the created vault
$vaultToBeRemoved = Get-AzureRmRecoveryServicesVault -ResourceGroupName RsvTestRG -Name rsv1
Assert-NotNull($vaultToBeRemoved.Name)
Assert-NotNull($vaultToBeRemoved.ID)
Assert-NotNull($vaultToBeRemoved.Type)
$vaultToBeProcessed = Get-AzureRmRecoveryServicesVault -ResourceGroupName RsvTestRG -Name rsv1
Assert-NotNull($vaultToBeProcessed.Name)
Assert-NotNull($vaultToBeProcessed.ID)
Assert-NotNull($vaultToBeProcessed.Type)

# Download vault settings file
$vaultFile = Get-AzureRmRecoveryServicesVaultSettingsFile -Vault $vaultToBeProcessed
Assert-NotNull($vaultFile.Filepath)

# Read file and check for data
[xml]$xmlDocument = Get-Content -Path $vaultFile.Filepath
Assert-NotNull($xmlDocument.ASRVaultCreds.Location)

# Remove Vault
Remove-AzureRmRecoveryServicesVault -Vault $vaultToBeRemoved
Remove-AzureRmRecoveryServicesVault -Vault $vaultToBeProcessed
$vaults = Get-AzureRmRecoveryServicesVault -ResourceGroupName RsvTestRG -Name rsv1
Assert-True { $vaults.Count -eq 0 }
}
Loading