AzStackHciStandaloneObservability/package/scripts/Install-StandaloneObservability.ps1

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

[CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = "Medium", PositionalBinding = $false, DefaultParameterSetName = "DefaultSet")]
param(
    [Parameter(Mandatory = $true)]
    [System.String] $ResourceGroupName,

    [Parameter(Mandatory = $true)]
    [System.String] $SubscriptionId,

    [Parameter(Mandatory = $true)]
    [System.String] $TenantId,

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

    [Parameter(Mandatory = $true, ParameterSetName = "DefaultSet")]
    [PSCredential] $RegistrationCredential,

    [Parameter(Mandatory = $true, ParameterSetName = "Interactive")]
    [Switch] $Interactive,

    [Parameter(Mandatory = $true, ParameterSetName = "PassThrough")]
    [Switch] $PassThrough,

    [Parameter(Mandatory = $true, ParameterSetName = "ServicePrincipal")]
    [PSCredential] $RegistrationSPCredential,

    [Parameter(Mandatory=$true)]
    [System.String] $FactoryLogShare,

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

    [Parameter(Mandatory=$false)]
    [System.String] $ObsRootFolderPath = "C:\StandaloneObservability",

    [Parameter(Mandatory=$false)]
    [Switch] $ParseOnce,

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

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

    Import-Module "$PSScriptRoot\ExtensionHelper.psm1"
    Import-Module "$PSScriptRoot\StandaloneObservabilityHelper.psm1"
    Import-Module "$PSScriptRoot\StandaloneObservabilityConstants.psm1"

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

    if ([string]::IsNullOrEmpty($ClusterName)) {
        Write-Host "ClusterName is empty. So setting it to computer name $($env:COMPUTERNAME)"
        $ClusterName = $env:COMPUTERNAME
    }

    if(-not (Test-Path -Path $ObsRootFolderPath -PathType Container))
    {
        Write-Host "ObsRootFolderPath: $ObsRootFolderPath is not present. So creating it"
        New-Item -Path $ObsRootFolderPath -ItemType Directory -Force
    }

    $transcriptFileName = "{0}.{1:yyyy-MM-dd-hh-mm-ss}.log" -f $functionName, $(Get-Date)
    $transcriptFilePath = Join-Path -Path $ObsRootFolderPath -ChildPath $transcriptFileName
    Start-Transcript -Path $transcriptFilePath -Append

    $gmaPackageContentPath = Get-GmaPackageContentPath
    Import-Module "$gmaPackageContentPath\GMATenantJsonHelper.psm1" -Force
    Add-Type -Path "$gmaPackageContentPath\Microsoft.AzureStack.Observability.ObservabilityCommon.dll"
    ## Create pre-requisites for Extension
    New-GmaStateFolders -ObsRootFolderPath $ObsRootFolderPath
    Set-HandlerEnvInfo -ObsRootFolderPath $ObsRootFolderPath -CloudName $Cloud -RegionName $RegistrationRegion

    $parsingEnginePath = Join-Path -Path $global:ObsArtifactsPaths.ObservabilityAgent -ChildPath "LogParsingEngine"
    $parsingEngineScript = Join-Path -Path $global:extensionRootLocation -ChildPath "scripts\Invoke-ParsingEngine.ps1"

    $gcsEnvironment = "Prod" ## default environment

    ## Check if the reg key created for CI exists or not, if yes then change the GCSEnvironment to point to PPE.
    if (Test-RegKeyExists -Path "HKLM:\Software\Microsoft\SQMClient\" -Name "IsCIEnv") {
        $gcsEnvironment = "Ppe"
    }
    elseif (Get-IsArcAEnvironment) {
        $gcsEnvironment = "ArcAPpe"
    }

    $envInfoFilePath = "$gmaPackageContentPath\EnvironmentInfo.json"
    $tenantInfoContent = Get-Content $envInfoFilePath -Raw | ConvertFrom-Json
    $envInfo = $tenantInfoContent.$gcsEnvironment

    # Settings from EnvironmentInfo.json
    $gcsEndpoint = $envInfo.EndPoint
    $gcsAccount = $envInfo.Account
    $genevaConfigVersion = $envInfo.ConfigVersion

    ## Install Azure Connected Machine agent
    $StampId = Set-StampGuid
    $resourceName = "$(hostname)-$StampId"
    $skipArcForServer = Test-IsAzure
    if ($skipArcForServer -eq $false) {
        Write-Host "$functionName Azure identity is not enabled. Going to install Arc for server agent" -Verbose

        if(-not (Get-Module -Name Az.Accounts -ListAvailable)) {
            Install-Module Az.Accounts -Force
        }

        if ($PSCmdlet.ParameterSetName -eq "ServicePrincipal") {
            Connect-AzAccount -Credential $RegistrationSPCredential -ServicePrincipal -Environment $Cloud -Tenant $TenantId -Subscription $SubscriptionId
            Install-AzureConnectedMachineAgent -ResourceName $resourceName -ResourceGroupName $ResourceGroupName -TenantId $TenantId `
                                                -RegionName $RegistrationRegion -SubscriptionId $SubscriptionId -Cloud $Cloud `
                                                -StampId $StampId -RegistrationSPCredential $RegistrationSPCredential
        }
        elseif ($PSCmdlet.ParameterSetName -eq "Interactive") {
            Connect-AzAccount -UseDeviceAuthentication -Environment $Cloud -Tenant $TenantId -Subscription $SubscriptionId
            $token = Get-AzAccessToken
            Install-AzureConnectedMachineAgent -ResourceName $resourceName -ResourceGroupName $ResourceGroupName -TenantId $TenantId `
                                                -RegionName $RegistrationRegion -SubscriptionId $SubscriptionId -Cloud $Cloud `
                                                -StampId $StampId -AccessToken $token.Token
        }
        elseif ($PSCmdlet.ParameterSetName -eq "PassThrough") {
            $token = Get-AzAccessToken
            Install-AzureConnectedMachineAgent -ResourceName $resourceName -ResourceGroupName $ResourceGroupName -TenantId $TenantId `
                                                -RegionName $RegistrationRegion -SubscriptionId $SubscriptionId -Cloud $Cloud `
                                                -StampId $StampId -AccessToken $token.Token
        }
        else {
            Connect-AzAccount -Credential $RegistrationCredential -Environment $Cloud -Tenant $TenantId -Subscription $SubscriptionId
            $token = Get-AzAccessToken
            Install-AzureConnectedMachineAgent -ResourceName $resourceName -ResourceGroupName $ResourceGroupName -TenantId $TenantId `
                                                -RegionName $RegistrationRegion -SubscriptionId $SubscriptionId -Cloud $Cloud `
                                                -StampId $StampId -AccessToken $token.Token
        }
    }

    ## Start Pipeline installation using Extension Install interface
    $deviceArmResourceUri = $PipelineConstants.DeviceArmUriFormat -f $SubscriptionId, $ResourceGroupName, $resourceName
    $osBuild = Get-OSBuildVersion
    $logFile = Get-HandlerLogFile
    Set-StandaloneScenarioRegistry -LogFile $logFile -ErrorAction Stop
    $configTypes = @([Microsoft.AzureStack.Observability.ObservabilityCommon.TenantConfigGenerator.Contract.TenantConfigType]::Telemetry, [Microsoft.AzureStack.Observability.ObservabilityCommon.TenantConfigGenerator.Contract.TenantConfigType]::Diagnostics)
    foreach($configType in $configTypes)
    {
        $gcsNameSpace = $envInfo.Namespaces.$configType
        [Microsoft.AzureStack.Observability.ObservabilityCommon.TenantConfigGenerator.TenantConfigRegistrySetter]::Current.SetTenantConfigRegistryKeys(
        $configType,
        "1.0",
        "AuthMSIToken",
        $gcsEndpoint,
        $gcsAccount,
        $gcsNameSpace,
        $GcsRegion,
        $genevaConfigVersion,
        $LocalPath,
        "true",
        $GcsRegion,
        $deviceArmResourceUri,
        $StampId,
        $ClusterName,
        $osBuild,
        "1.0",
        $resourceName,
        $deviceArmResourceUri,
        $ClusterName)
    }

    Write-Host "Starting Install-Extension script with DeviceArmResourceUri: $deviceArmResourceUri StampId: $StampId ClusterName: $ClusterName CloudName: $Cloud RegistrationRegion: $RegistrationRegion"

    & "$PSScriptRoot\Install-Extension.ps1" `
                       -ErrorAction Stop
    if($LASTEXITCODE -ne 0) {
        Write-Error "Error during Extension installation $LASTEXITCODE"
    }

    & "$PSScriptRoot\Enable-Extension.ps1"
    if($LASTEXITCODE -ne 0) {
        Write-Error "Error during Extension enable $LASTEXITCODE"
    }

    # Sleep for sometime and check for GCS Config
    Wait-ForGcsConfigSync -TimeInSeconds 180 -LogFile $logFile

    $transcriptFolderPath = Join-Path -Path $(Get-LogFolderPath) -ChildPath $PipelineConstants.TranscriptsFolderName

    if($ParseOnce)
    {
        ## Run ParsingEngine with given log location
        Write-Host "Starting Parser scripts arguments: $parsingEngineScript -FactorySharePath $FactoryLogShare -ParsingEnginePackagePath $parsingEnginePath -GmaPackageContentPath $gmaPackageContentPath -TranscriptFolderPath $transcriptFolderPath"
        & $parsingEngineScript -FactorySharePath $FactoryLogShare `
                                -ParsingEnginePackagePath $parsingEnginePath `
                                -GmaPackageContentPath $gmaPackageContentPath `
                                -TranscriptFolderPath $transcriptFolderPath `
                                -ParseOnce `
                                -ErrorAction Stop
    }
    else
    {
        ## Create ParsingEngine scheduled tasks
        $scriptArguments = "-TaskName $($PipelineConstants.ParserScheduledTaskName) -FactorySharePath $FactoryLogShare -ParsingEnginePackagePath $parsingEnginePath -GmaPackageContentPath $gmaPackageContentPath -TranscriptFolderPath $transcriptFolderPath"
        Write-Host "Creating Parser scheduled task with arguments: $scriptArguments"

        New-ScheduledTaskForObservability -TaskName $PipelineConstants.ParserScheduledTaskName `
                                    -TaskPath $PipelineConstants.ParserScheduledTaskPath `
                                    -Description $PipelineConstants.ParserScheduledTaskDescription `
                                    -ScriptPath $parsingEngineScript `
                                    -ScriptArguments $scriptArguments `
                                    -DisableOnRegistration `
                                    -ErrorAction Stop

        Enable-ScheduledTask -TaskPath $PipelineConstants.ParserScheduledTaskPath `
        -TaskName $PipelineConstants.ParserScheduledTaskName `
        -ErrorAction Stop
    }

    Set-Status -Name $functionName `
                -Operation "Enabling succeeded" `
                -Message "$functionName : Successfully enabled Standalone Observability pipeline components." `
                -Status "success" `
                -Code 0

    Write-Host "Standalone Observability pipeline installation complete."
    Stop-Transcript -ErrorAction SilentlyContinue
}
catch {
    if ($null -eq (Get-Command -Verb Get -Noun ExceptionDetails) -and (-not [System.String]::IsNullOrEmpty($gmaPackageContentPath))) {
        Import-Module "$gmaPackageContentPath\GMATenantJsonHelper.psm1" -Force

        $exceptionDetails = Get-ExceptionDetails -ErrorObject $_

        $errorMessage = "$functionName : Failed to enable Standalone Observability pipeline components. Exception is as follows: $exceptionDetails."
        Set-Status -Name $functionName `
                    -Operation "Enabling failed" `
                    -Message $errorMessage `
                    -Status "error" `
                    -Code 1
        Write-Error $errorMessage
        Stop-Transcript -ErrorAction SilentlyContinue
    }
    else {
        Write-Error $_
    }
}

# SIG #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