Merge pull request #93 from microsoft/RemoveAKVReferences

Update VerifySetup.ps1
This commit is contained in:
Roman G. Powell 2021-12-16 20:14:09 -08:00 коммит произвёл GitHub
Родитель 3ef7e74cca fc3f7a747c
Коммит 1a75ccd1a3
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 4 добавлений и 5 удалений

Просмотреть файл

@ -27,8 +27,7 @@
b. The move direction is correct.
3. Validates the following on Migration Endpoint:
a. ApplicationId is correct.
b. ApplicationKeyVaultUrl is correct.
c. RemoteTenantId is correct.
b. RemoteTenantId is correct.
.PARAMETER PartnerTenantId
PartnerTenantId - the tenant id of the partner tenant.
@ -98,8 +97,8 @@ function Main() {
$report["OrganizationRelationship"] = @{ "Errors" = $errors }
if ($isTargetTenant -eq $true) {
Write-Verbose "Verifying MigrationEndpoint; AppId: [$ApplicationId] Partner tenant: [$PartnerTenantDomain] ApplicationKeyVaultUrl: [$ApplicationKeyVaultUrl]"
$errors = Verify-MigrationEndpoint $PartnerTenantDomain $ApplicationId $ApplicationKeyVaultUrl
Write-Verbose "Verifying MigrationEndpoint; AppId: [$ApplicationId] Partner tenant: [$PartnerTenantDomain]"
$errors = Verify-MigrationEndpoint $PartnerTenantDomain $ApplicationId
Print-Result "Verifying MigrationEndpoint" $errors
$report["MigrationEndpoint"] = @{ "Errors" = $errors }
}
@ -214,7 +213,7 @@ function Verify-OrganizationRelationship([string]$partnerTenantId, [string]$appI
return $errors
}
function Verify-MigrationEndpoint([string]$partnerTenantDomain, [string]$appId, [string]$appKvUrl) {
function Verify-MigrationEndpoint([string]$partnerTenantDomain, [string]$appId) {
$errors = @()
$migEp = Get-MigrationEndpoint | ? { $_.ApplicationId -eq $appId }
if (!$migEp) {