Remove-AaddsResourceForestTrust.ps1

<#PSScriptInfo
 
.VERSION 1.1
 
.GUID 28e4c489-94b3-4699-b7c8-1bb701278bb9
 
.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
    Remove a forest trust from Azure AD Domain Services resource forest.
 
.DESCRIPTION
 
    Remove a forest trust from Azure AD Domain Services resource forest.
 
.PARAMETER ManagedDomainFqdn [MANADATORY]
    The fqdn of the managed domain (aadds.corp.contoso.com).
 
.PARAMETER TrustFqdn [MANADATORY]
    The FQDN of the trusted forest.
    Not used with All switch
 
.PARAMETER All [OPTIONAL]
    Remove all the trusts from the Azure AD Domain Services resource forest
 
.PARAMETER Credential [OPTIONAL]
    The credentials used to authenticate to Azure.
#>


[CmdletBinding()]
Param (
    
    [Parameter(
        Mandatory=$true,
        ParameterSetName="Specific")]
    [Parameter(
        Mandatory=$true,
        ParameterSetName="All")]
        [string]
        $ManagedDomainFqdn,

    [Parameter(
        Mandatory=$true,
        ParameterSetName="Specific")]
        [string]
        $TrustFqdn,
    
    [Parameter(
        Mandatory=$true,
        ParameterSetName="All")]
        [switch]
        $All,    

    [Parameter(
        Mandatory=$false,
        ParameterSetName="Specific")]
    [Parameter(
        Mandatory=$false,
        ParameterSetName="All")]
        [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
    }
    else
    {
        Write-Host -ForegroundColor Green "[Success!]"
    }
    
    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 SilentlyContinue

    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

    }

    #region Prerequisites checking...
    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
    #
    # Check the $all switch and skip if $true
    if($all -eq $true)
    {
        Write-Host -ForegroundColor Green "[Skip!]" -NoNewline
        Write-Host -ForegroundColor "INFO: All parameter detected."
    }
    else
    {
        # User provided an explicit trust

        #Get the list of 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 "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  "The managed domain $($aadds.Name) does not have any trusts. Use Add-AaddsResourceForestTrust to add a trust."
        }
    }


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

    #
    # TrustSettingsValue is empty. The -all case is covered
    # When -all is false (not present)
    # Add existing trust but leave out the named trust

    if($all -eq $false)
    {
        foreach($tempTrustValue in $tempTrustSettingsValue)
        {        
            # Check for matching #fqdn
            if($TrustFqdn -eq $tempTrustValue.trustedDomainFqdn)
            { 
        
                # Save the old trust for display.
                # Skip adding it to the new trust list
                $oldTrust = $tempTrustValue                
            }        
            else
            {
                $catchOutput = $TrustSettingsValue.Add( $tempTrustValue)
            }
        }
    }

    
    Write-Host ([string]::Empty)
    if($all -eq $true)
    {
        $msg = "Type 'Yes' to confirm you want to delete *ALL* the trust in the $($aadds.Name) managed domain."
    }
    else
    {
        #
        # Show the trust
        Write-Host -ForegroundColor Yellow "Trust Settings"
        Write-Host "FriendlyName: " $oldTrust.FriendlyName
        Write-Host "TrustedDomainFqdn: " $oldTrust.trustedDomainFqdn
        Write-Host "DNS IP Addresses: " $oldTrust.remoteDNSIPs
        
        $msg = "Type 'Yes' to confirm you want to delete the trust $($TrustFqdn) with these settings."
    }

    Write-Host ([string]::Empty)
    $answer = Read-host -Prompt $msg

    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
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCB/EOB8jZKrTDSL
#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