Set-AaddsResourceForestTrust.ps1

<#PSScriptInfo
 
.VERSION 1.1
 
.GUID 37c00032-c3ca-4027-9cb8-afa0b4cfef45
 
.AUTHOR aaddsfb@microsoft.com
 
.COMPANYNAME Microsoft Corporation
 
.COPYRIGHT (c) Microsoft Corporation
 
.TAGS Azure-AD-Domain-Services ResourceForest
 
.LICENSEURI
 
.PROJECTURI
 
.ICONURI
 
.EXTERNALMODULEDEPENDENCIES
 
.REQUIREDSCRIPTS
 
.EXTERNALSCRIPTDEPENDENCIES
 
.RELEASENOTES
    07/19/2020 - Initial release
#>


<#
 
.SYNOPSIS
    Changes some of the settings on an Azure AD Domain Services resource forest trust.
 
.DESCRIPTION
 
    Changes some of the settings on an Azure AD Domain Services resource forest trust.
 
.PARAMETER ManagedDomainFqdn [MANADATORY]
    The fqdn of the managed domain (aadds.corp.contoso.com).
 
.PARAMETER TrustFqdn [MANDATORY]
    The FQDN of the trusted forest.
 
.PARAMETER TrustFriendlyName [OPTIONAL]
    The friendly name of the trust relationship.
 
.PARAMETER TrustDnsIps [OPTIONAL]
    A comma delimited list DNS servers for the
    trusted domain listed as IPv4 addresses.
 
.PARAMETER TrustPassword [OPTIONAL]
    The complex password the trust relationship uses.
 
.PARAMETER Credential [OPTIONAL]
    The credentials used to authenticate to Azure.
#>


[CmdletBinding()]
Param (
    
    [Parameter(
        Mandatory=$true,
        Position=0)]
        [string]
        $ManagedDomainFqdn,

    [Parameter(
        Mandatory=$true,
        Position=1)]
        [string]
        $TrustFqdn,

    [Parameter(
        Mandatory=$false,
        Position=2)]
        [string]
        $TrustFriendlyName,    

    [Parameter(
        Mandatory=$false,
        Position=3)]
        [string]
        $TrustDnsIps,

    [Parameter(
        Mandatory=$false,
        Position=4)]
        [string]
        $TrustPassword,

    [Parameter(
        Mandatory=$false,
        Position=5)]
        [pscredential]
        $Credentials
)


Process
{

    #
    # Create empty trust settings
    $TrustSettingsValue = [System.Collections.ArrayList]@()
    $azProfile = $null

    Write-Host ([string]::Empty)
    Write-Host ([string]::Empty)
    Write-Host "Authenticating to Azure... " -NoNewline
    #
    # Collect credentials from the user for authentication
    if($null -ne $creds)
    {
        $creds = Get-Credential -ErrorAction SilentlyContinue        
        $azProfile = Connect-AzAccount -Credential $creds -ErrorAction SilentlyContinue
    }
    else
    {
        $azProfile = Connect-AzAccount -ErrorAction SilentlyContinue
    }

    if($null -eq $azProfile)
    {
        # Authentication failed
        Write-Host -ForegroundColor Red "[Failed!]"
        Write-Host -ForegroundColor Red "ERROR: Could not authenticate to Azure. Check your credentials and try again."
        Return
    }
    
    Write-Host "INFO: Authenticated to Azure as $($azProfile.Account.Id)..."

    Write-Host "Getting Azure AD Domain Services instance..." -NoNewline
    $aadds = Get-AzResource -Name $ManagedDomainFqdn -ApiVersion "2020-01-01" -ExpandProperties -ErrorAction Stop

    if($null -eq $aadds)
    {
        Write-Host -ForegroundColor Red "[Failed!]"
        Write-Host -ForegroundColor Red "ERROR: Could not find an Azure AD Domain Services resource with the name $ManagedDomainFqdn."
        Return

    }
    else
    {
        Write-Host -ForegroundColor Green "[Success!]"
    }

    #region PREREQ CHECKS
    Write-Host ([string]::Empty)
    Write-Host "Checking prerequisites..."

    $pass = $true

    Write-Host "Validating resource type..." -NoNewline
    if($aadds.ResourceType -ne "Microsoft.AAD/domainServices")
    {
        $pass = $false
        Write-Host -ForegroundColor Red "[Failed!]"
        Write-Host -ForegroundColor Red "ERROR: The resource is not an Azure AD Domain Services resource (Status:$($aadds.ResourceType))."
    
    }
    else {Write-Host -ForegroundColor Green "[Pass!]"}


    Write-Host "Validating service status..." -NoNewline
    if($null -ne $aadds.Properties.ReplicaSets)
    {
        $replicaSetCount = $aadds.Properties.ReplicaSets.Count
    }
    else { $replicaSetCount = 0 }

    $serviceStatus = $null
    if($replicaSetCount -eq 1)
    {
        $serviceStatus = $aadds.Properties.ReplicaSets[0].serviceStatus
    }
    elseif($replicaSetCount -gt 1)
    {
        $syncOwner = $aadds.Properties.SyncOwner
        $primaryReplicaSet = $aadds.Properties.ReplicaSets | Where-Object { $_.ReplicaSetId -eq $syncOwner }
        $serviceStatus = $primaryReplicaSet.serviceStatus
    }
    else { $serviceStatus = $null }

    if($serviceStatus -ne "Running")
    {
        $pass = $false
        Write-Host -ForegroundColor Red "[Failed!]"
        Write-Host -ForegroundColor Red "ERROR: The managed domain $($aadds.Name) must be running (Status:$($aadds.properties.serviceStatus))."
    }
    else { Write-Host -ForegroundColor Green "[Pass!]" }


    Write-Host "Validating domain configuration..." -NoNewline
    if($aadds.properties.domainConfigurationType -ne "ResourceTrusting")
    {
        $pass = $false
        Write-Host -ForegroundColor red "[Failed!]"
        Write-Host -ForegroundColor Red "ERROR: The managed domain $($aadds.Name) is not a resource forest (Status:$($aadds.properties.domainConfigurationType))."        
    }
    else
    { Write-Host -ForegroundColor Green "[Pass!]"}


    Write-Host "Finding trust name..." -NoNewline
    #
    # Get a list of the current trusts
    $tempTrustSettingsValue = $aadds.Properties.resourceForestSettings.settings
    if(0 -lt $tempTrustSettingsValue.Count)
    {
        $found = $false
    
        foreach($tempTrustValue in $tempTrustSettingsValue)
        {    
            #check for matching #fqdn
            if($TrustFqdn -eq $tempTrustValue.trustedDomainFqdn)
            { 
                $found = $true
                break;             
            }
        }
    
        if($found)
        { 
            Write-Host -ForegroundColor Green "[Pass!]"
        }
        else
        {
            $pass = $false
            Write-Host -ForegroundColor Red "[Failed!]"
            Write-Host -ForegroundColor Red "ERROR: The trust $TrustFqdn does not exist in the managed domain $($aadds.Name)."
        
        }       
    }
    else # There are no existing trusts to edit
    {
        $pass = $false
        Write-Host -ForegroundColor Red "[Failed!]"
        Write-Host -ForegroundColor Red "ERROR: The managed domain $($aadds.Name) does not have any trusts. Use Add-AaddsResourceForestTrust to add a trust."
    }


    if($pass -eq $false)
    {      
        Write-Host -ForegroundColor Red "ERROR: One or more prerequisites checks failed."
        Return
    }
    #endregion


    #
    # Add existing trusts and substitute the matched trust
    foreach($tempTrustValue in $tempTrustSettingsValue)
    {        
        # Check for matching #fqdn
        if($TrustFqdn -eq $tempTrustValue.trustedDomainFqdn)
        { 
            #$found = $ true
            $oldTrust = $tempTrustValue

            if($TrustFriendlyName -eq [string]::Empty)
                {$TrustFriendlyName = $oldTrust.friendlyName}
            if($TrustDnsIps -eq [string]::Empty)
                {$TrustDnsIps = $oldTrust.remoteDNSIps}
            if($TrustPassword -eq [string]::Empty)
                {$TrustPassword = $oldTrust.trustpassword}                   
        
            # Replace the old trust
            # Everything but the trustedDomainFqdn can change
            if($null -ne $TrustPassword)
            {
                $newTrust = @{
                    "friendlyName" = $TrustFriendlyName;
                    "trustedDomainFqdn" = $TrustFqdn;
                    "remoteDNSIps" = $TrustDnsIps;
                    "trustPassword" = $TrustPassword}
            }
            else
            {
                
                $newTrust = @{                    
                    "friendlyName" = $TrustFriendlyName;                    
                    "trustedDomainFqdn" = $TrustFqdn;                    
                    "remoteDNSIps" = $TrustDnsIps}                               
            }

            $catchOutput = $TrustSettingsValue.Add($($newTrust))
        }        
        else
        {
            $catchOutput = $TrustSettingsValue.Add($tempTrustValue)
        }
    }

    #
    # Show old and new settings
    Write-Host ([string]::Empty) 
    
        # Create a datatable
    $compareTable = New-Object system.Data.DataTable “”
    $settingsColumn = New-Object system.Data.DataColumn Setting,([string])
    $oldColumn = New-Object system.Data.DataColumn Old,([string])
    $newColumn = New-Object system.Data.DataColumn New,([string])
    $compareTable.columns.Add($settingsColumn)
    $compareTable.columns.Add($oldColumn)
    $compareTable.Columns.Add($newColumn)

    # FriendlyName
    $friendlyNameRow = $compareTable.NewRow()
    $friendlyNameRow.Setting = "FriendlyName"
    $friendlyNameRow.Old = $oldTrust.FriendlyName
    $friendlyNameRow.New = $newTrust.FriendlyName
    $compareTable.Rows.Add($friendlyNameRow)

    # RemoteRemoteIPs
    $remoteIPsRow = $compareTable.NewRow()
    $remoteIPsRow.Setting = "DNS RemoteIPss"
    $remoteIPsRow.Old = $oldTrust.remoteDNSIps
    $remoteIPsRow.New = $newTrust.remoteDNSIps
    $compareTable.Rows.Add($remoteIPsRow)

    if($null -ne $TrustPassword)
    {
        # TrustPassword
        $trustPasswordRow = $compareTable.NewRow()
        $trustPasswordRow.Setting = "Trust Password"
        $trustPasswordRow.Old = "".PadRight(15,'*')
        $trustPasswordRow.New = "".PadRight(15,'*')
        $compareTable.Rows.add($trustPasswordRow)
    }

    Write-Host ([string]::Empty)
    Write-Host ([string]::Empty)

    Write-Host "Trust: " -NoNewline; Write-Host -ForegroundColor White $TrustFqdn

    #Display the table
    $compareTable | format-table
    

    Write-Host ([string]::Empty)
    $answer = Read-host -Prompt "Type 'Yes' to confirm you want to update the trust $TrustFqdn with these settings."

    if("Yes" -cne $answer)
    {
        Write-Host "User canceled."
        Return 
    }

    # Assign the trust values to the trust settings
    $trustSettings = @{"settings" = $TrustSettingsValue}


    # Assign the trust settings to the ResourceForestSettings
    $resourceForestSettings = @{"resourceForestSettings" = $trustSettings}

    $actionStart = Get-Date

    Write-Host ([string]::Empty)
    Write-Host "Sending request to Azure. This action may take up to five minutes to complete. Please wait..."
    Set-AzResource -ResourceId $aadds.ResourceId -ApiVersion "2020-01-01" -Properties $resourceForestSettings -force
    $actionStop = Get-Date

    Write-Host "Elapsed Time: " ($actionStop - $actionStart)
}


# SIG # Begin signature block
# MIInMwYJKoZIhvcNAQcCoIInJDCCJyACAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCB9rDvS8u8AwFeK
# MCQ13DI1CUVhC3QCoGg9x9b9ZtCWG6CCEW8wggiBMIIHaaADAgECAhM2AAABDBla
# ELMo09izAAEAAAEMMA0GCSqGSIb3DQEBCwUAMEExEzARBgoJkiaJk/IsZAEZFgNH
# QkwxEzARBgoJkiaJk/IsZAEZFgNBTUUxFTATBgNVBAMTDEFNRSBDUyBDQSAwMTAe
# Fw0yMD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