AzStackHciStandaloneObservability/package/scripts/Install-Extension.ps1

##------------------------------------------------------------------
## <copyright file="Install-Extension.ps1" company="Microsoft">
## Copyright (C) Microsoft. All rights reserved.
## </copyright>
##------------------------------------------------------------------

Param (
    [Parameter(Mandatory = $false)]
    [System.String] $DeviceArmResourceUri = [System.String]::Empty,

    [Parameter(Mandatory = $false)]
    [System.String] $StampId = [System.String]::Empty,

    [Parameter(Mandatory=$false)]
    [System.String] $ClusterName = [System.String]::Empty,

    [Parameter(Mandatory=$false)]
    [System.String] $CloudName = "AzureCloud",

    [Parameter(Mandatory=$false)]
    [System.String] $RegistrationRegion = "eastus"
)

$ErrorActionPreference = "Stop"
$functionName = $MyInvocation.MyCommand.Name

#region Imports
Import-Module (Join-Path -Path $PSScriptRoot -ChildPath 'ExtensionHelper.psm1') `
    -DisableNameChecking `
    -Verbose:$false

$gmaPackageContentPath = Get-GmaPackageContentPath
Import-Module (Join-Path -Path "$gmaPackageContentPath" -ChildPath 'GMATenantJsonHelper.psm1') `
    -DisableNameChecking `
    -Verbose:$false

Import-Module (Join-Path -Path $PSScriptRoot -ChildPath 'ScenarioHelper.psm1') `
    -DisableNameChecking `
    -Verbose:$false

Import-Module (Join-Path -Path $PSScriptRoot -ChildPath 'ObservabilityDeploymentHelper.psm1') `
    -DisableNameChecking `
    -Verbose:$false
#endregion Imports

$logFile = Get-HandlerLogFile

try {
    Write-Log "$functionName : Install script started." `
        -LogFile $logFile

    #region Pre-installation validations
    Invoke-PreInstallationValidation -LogFile $logFile
    #endregion Pre-installation validations

    Write-Log "$functionName : Installing Observability-Telemetry pipeline components." `
        -LogFile $logFile

    Set-DeviceType -LogFile $logFile

    
    #region VCRuntime setup
    Install-VCRuntime -LogFile $logFile
    #endregion VCRuntime setup
        
    #region UTC setup
    if (Confirm-IsTelemetryEnabled) {
        Initialize-UTCSetup -LogFile $logFile
    }
    else {
        Write-Log "$functionName : Initialize-UTCSetup will not be executed as Telemetry is disabled." `
            -LogFile $logFile
    }
    #endregion UTC setup

    ##----------------------------------------------------------------------------------------------------------------------------------
    ## NOTE: UTC setup needs to happen before GMA as the GenevaNamespace registry key for UTCGeneveExporter needs to be created before GMA setup updates its value.
    ##----------------------------------------------------------------------------------------------------------------------------------

    #region GMA setup
    ## Create required cache folders
    $cacheDirectories = New-CacheDirectories -LogFile $logFile
    $gmaCacheFolderPath = $cacheDirectories.GMACache

    $assemblyVersion = [System.String]::Empty ## NA for Arc extension

    ## If Cloud name is passed from config settings than use that or else use the existing one.
    $CloudName = Get-CloudName -ExistingCloudName $CloudName -LogFile $logFile

    ## If region name is passed from config settings than use that or else use the existing one.
    $GcsRegionName = Get-GcsRegionName -RegistrationRegion $RegistrationRegion -LogFile $logFile

    $GcsEnvironment = Get-GcsEnvironmentName -CloudName $CloudName -LogFile $logFile

    Write-Log -Message "$functionName : gmaCacheFolderPath = $gmaCacheFolderPath" -LogFile $logFile
    Write-Log -Message "$functionName : CloudName = $CloudName" -LogFile $logFile
    Write-Log -Message "$functionName : GcsRegionName = $GcsRegionName" -LogFile $logFile
    Write-Log -Message "$functionName : GcsEnvironment = $GcsEnvironment" -LogFile $logFile
    Write-Log -Message "$functionName : ClusterName = $ClusterName" -LogFile $logFile
    Write-Log -Message "$functionName : assemblyVersion = $assemblyVersion" -LogFile $logFile

    if (Test-RegKeyExists -Path $MiscConstants.GMAScenarioRegKey.Path -Name $MiscConstants.GMAScenarioRegKey.Name) {
         $gmaScenario = Get-ItemPropertyValue -Path $MiscConstants.GMAScenarioRegKey.Path -Name $MiscConstants.GMAScenarioRegKey.Name
         if ($gmaScenario -eq $MiscConstants.GMAScenarioRegKey.Bootstrap)
         {
            Set-BootstrapTenantConfig `
                -GcsRegionName $GcsRegionName `
                -GcsEnvironment $GcsEnvironment `
                -GMACacheFolderPath $gmaCacheFolderPath `
                -LogFile $logFile
         }
         elseif ($gmaScenario -eq $MiscConstants.GMAScenarioRegKey.OneP)
         {
             Set-StandaloneTenantConfig `
                 -GcsRegionName $GcsRegionName `
                 -GcsEnvironment $GcsEnvironment `
                 -GMACacheFolderPath $gmaCacheFolderPath `
                 -LogFile $logFile
         }
    }
    else
    {
        Set-HCITenantConfig `
            -GcsRegionName $GcsRegionName `
            -GcsEnvironment $GcsEnvironment `
            -GMACacheFolderPath $gmaCacheFolderPath `
            -DeviceArmResourceUri $DeviceArmResourceUri `
            -StampId $StampId `
            -ClusterName $ClusterName `
            -LogFile $logFile
    }

    #region MA Watchdog setup
    ## Set HCITelemetry AllowTelemetry
    New-RegKey `
        -Path $MiscConstants.HCITelemetryRegKey.Path `
        -LogFile $logFile `
        -CreatePathOnly

    New-RegKey `
        -Path $MiscConstants.HCITelemetryRegKey.Path `
        -Name $MiscConstants.HCITelemetryRegKey.Name `
        -PropertyType $MiscConstants.HCITelemetryRegKey.PropertyType `
        -Value $MiscConstants.HCITelemetryRegKey.Value `
        -LogFile $logFile

    New-Directory -Path $MiscConstants.FDAOutputDirectory -LogFile $logFile
    $FDACmdLine = "/EmissionType Local /OutputPath $($MiscConstants.FDAOutputDirectory) /OutputZip /NoAutopilot"
    ## Set MA Watchdog app config settings
    $watchdogPackageContentPath = Get-WatchdogPackageContentPath
    $watchdogAppConfigPath = Join-Path $watchdogPackageContentPath -ChildPath $MiscConstants.MAWatchDogAppAppConfigName
    $watchdogAppConfig = Get-Content $watchdogAppConfigPath -Raw

    $appConfigValuesToUpdate = @{
        ExtensionStatusFilePath = Get-StatusFilePath
        FDAPath = Get-FDAPackageContentPath
        FDACmdLine = $FDACmdLine
        GMACmdLine = "-serviceMode -localPath $($cacheDirectories.MonAgentHostCache) -JsonDropLocation $($cacheDirectories.JsonDropLocation)"
        GMALauncherFileName = $MiscConstants.MonAgentHostExeName
        HeartBeatFilePath = Get-HandlerHeartBeatFile -LogFile $LogFile
        MonitoringPath = "$gmaPackageContentPath\Monitoring\Agent"
        WatchdogTimerFrequencyInSeconds = $MiscConstants.WatchdogTimerFrequencyInSeconds
        WatchdogStatusFilePath = Get-WatchdogStatusFile -LogFile $logFile
    }

    ## Constrained language mode must be supported, so regex is used instead of xml node selection to update config
    $appConfigValuesToUpdate.Keys | ForEach-Object {
        $key = $_
        $value = $appConfigValuesToUpdate[$key]
        $searchRegex = "add key=`"$key`" value=`"[^`"]+`""
        $replaceRegex = "add key=`"$key`" value=`"$value`""
        $watchdogAppConfig = $watchdogAppConfig -replace $searchRegex, $replaceRegex
    }

    Set-Content -Path $watchdogAppConfigPath -Value $watchdogAppConfig
 
    ## Register MAWatchDog as Windows Service.
    $binaryFilePath = Join-Path -Path $watchdogPackageContentPath `
                        -ChildPath $MiscConstants.ObsServiceDetails.WatchdogAgent.BinaryFileName

    Register-ServiceForObservability `
        -ServiceName $MiscConstants.ObsServiceDetails.WatchdogAgent.Name `
        -ServiceDisplayName $MiscConstants.ObsServiceDetails.WatchdogAgent.DisplayName `
        -ServiceBinaryFilePath $binaryFilePath `
        -LogFile $logFile
    #endregion MA Watchdog setup

    #region Diagnostics setup
    Write-Log "$functionName : Installing Observability-Diagnostics pipeline components." `
        -LogFile $logFile
    ## Based on device type place log configuration files appropriately.
    Move-LogCollectionConfigurations -LogFile $logFile
    
    ## Register Observability windows eventsources and create Observability Pruner, Uptime, and Census Scheduled tasks
    Register-ObservabilityEventSources -LogFile $logFile
    Set-ObservabilityDeploymentScheduledTasks -LogFile $logFile

    ## Register Obs Agent as Windows service
    $binaryFilePath = Join-Path -Path $global:ObsArtifactsPaths.ObservabilityAgent `
                        -ChildPath $MiscConstants.ObsServiceDetails.ObsAgent.BinaryFileName
                        
    Register-ServiceForObservability `
        -ServiceName $MiscConstants.ObsServiceDetails.ObsAgent.Name `
        -ServiceDisplayName $MiscConstants.ObsServiceDetails.ObsAgent.DisplayName `
        -ServiceBinaryFilePath $binaryFilePath `
        -LogFile $logFile

    ## logman
    Initialize-LogmanTraceSession -Logfile $logFile

    #endregion Diagnostics setup

    Write-Log `
        -Message "$functionName : Successfully installed observability pipeline components." `
        -LogFile $logFile

    Set-Status `
        -Name $MiscConstants.WorkLoadName.Install `
        -Operation "Install succeeded" `
        -Message "Successfully installed extension." `
        -Status $MiscConstants.Status.Success `
        -Code $MiscConstants.SuccessCode
}
catch {
    Import-Module (Join-Path -Path $gmaPackageContentPath -ChildPath 'GMATenantJsonHelper.psm1') `
        -DisableNameChecking `
        -Verbose:$false
    
    $errorCode = $ErrorConstants.DefaultErrorMessage.Code
    $customErrorMessage = "Failed to install extension, "

    $errorKey = $_.ToString()
    if ($ErrorConstants.Keys -contains $errorKey) {
        $errorConstant = $ErrorConstants[$errorKey]
        $customErrorMessage += $errorConstant.Message
        $errorCode = $errorConstant.Code
    }
    else {
        $customErrorMessage += "$($ErrorConstants.DefaultErrorMessage.Message) $errorKey"
        $errorCode = $ErrorConstants.DefaultErrorMessage.Code
    }

    $exceptionDetailsAsString = Get-ExceptionDetails -ErrorObject $_

    # Exception details are saved for logging only.
    Write-Log `
        -Message "$customErrorMessage : $exceptionDetailsAsString" `
        -LogFile $LogFile `
        -Level $MiscConstants.Level.Error

    # In status file, only the exception message is sent along with the custom message.
    Set-Status `
        -Name $MiscConstants.WorkLoadName.Install `
        -Operation "Install failed" `
        -Message $customErrorMessage `
        -Status $MiscConstants.Status.Error `
        -Code $errorCode

    exit $errorCode
}
# SIG # Begin signature block
# MIIn0QYJKoZIhvcNAQcCoIInwjCCJ74CAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCCiWTTQ2BAG3zUW
# aVa86ATqu6MBlNH5t7P7azkocmwu0qCCDYUwggYDMIID66ADAgECAhMzAAADTU6R
# phoosHiPAAAAAANNMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD
# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy
# b3Nv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