# This script will update the server and database name in AOS web.config file
[CmdletBinding()]
param
(
  [Parameter(Mandatory=$false)]
  [hashtable]$AxConnectionString,

  [Parameter(Mandatory=$false)]
  [string]$webroot,

  [Parameter(Mandatory=$false)]
  [string]$LogDir

)

Import-Module "$PSScriptRoot\CommonRollbackUtilities.psm1" -Force -DisableNameChecking
Import-Module "$PSScriptRoot\UpgradeConfigHelperUpdate3.psm1" -Force -DisableNameChecking


# If the connection string parameter is not passed or if it is empty then return
if(!$AxConnectionString -or !$AxConnectionString['AxServerName'] -or !$AxConnectionString['AxDatabaseName'])
{
    Write-Output "AOS connection string is not passed or value is missing. Skipping the update of config file."
    return
}

# Initialize logs
$currentScriptName = $MyInvocation.MyCommand.Name
if (!(Get-Variable -Name currentFolder -Scope Script -ErrorAction SilentlyContinue))
{
    $script:currentFolder = (Get-ChildItem -Path (Split-Path -Path $PSScriptRoot -Parent) -Recurse -Filter $currentScriptName | Select-Object -First 1).Directory.FullName
}

If (!$LogDir)
{
    $LogDir = $script:currentFolder
}

$filename = "$currentScriptName.log"
$LogFile = Join-Path $LogDir -ChildPath $filename
Initialize-Log $LogFile

# populate webroot if it is empty. This is required for AOT packages rollback
if(!$webroot)
{
	$webroot = Get-AosWebSitePhysicalPath
}

$webConfigPath = "$webroot\web.config"
Write-Output "Decrypting web.config file $webConfigPath"
Decrypt-Config -webroot:$webroot
Write-Output "Updating AX server to $($AxConnectionString.AxServerName) and database to $($AxConnectionString.AxDatabaseName) in config file $webConfigPath."
Update-AOSConnectionString $AxConnectionString $webConfigPath
Write-Output "Finished updating the file $webConfigPath"
Encrypt-Config -webroot:$webroot
Write-Output "Encrypting web.config file $webConfigPath"

# SIG # Begin signature block
# MIIr4wYJKoZIhvcNAQcCoIIr1DCCK9ACAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0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