Obs/bin/GMA/ArcExtensionInstallUninstallScripts/Set-RegistryKeysForCommodore.ps1

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

<#
.SYNOPSIS
The script sets the registry keys required to generate tenant json file for Observability Arc Extension on Windows IOT devices.
 
.EXAMPLE
.\Set-RegistryKeysForCommodore.ps1
 
.NOTES
If Arc for Server agent is not setup on the nodes, the script would fail as it cannot fetch the required details to set the registry keys.
#>


[CmdletBinding()]
Param()

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

#region Constants
$TelemetryConfigRegistryPath = "HKLM:\SOFTWARE\Microsoft\AzureStack\Observability\TenantJson\Telemetry"
$CommonRegistryPath = "HKLM:\SOFTWARE\Microsoft\AzureStack\Observability\TenantJson"

$GMAScenarioRegKey = @{
    Path = 'HKLM:\Software\Microsoft\AzureStack\Observability'
    Name = 'GMAScenario'
    PropertyType = 'String'
    Value = 'Bootstrap'
}

$CommonRegistryKeys = @{
    Version = "1.0"
    GcsAuthIdType = "AuthMSIToken"
    GcsEnvironment = "DiagnosticsPROD"
    GcsGenevaAccount = "AzureEdgeObsPPE"
    GcsRegion = "eastus"
    DisableUpdate = "true"
    DisableCustomImds = "true"
    MONITORING_AEO_REGION = "eastus"
    MONITORING_AEO_DEVICE_ARM_RESOURCE_URI = ""
    MONITORING_AEO_STAMPID = ""
    MONITORING_AEO_CLUSTER_NAME = ""
    MONITORING_AEO_OSBUILD = ""
    MONITORING_AEO_ASSEMBLYBUILD = ""
    MONITORING_AEO_NODEID = ""
    MONITORING_AEO_NODE_ARC_RESOURCE_URI = ""
    MONITORING_AEO_CLUSTER_NODE_NAME = "%COMPUTERNAME%"
}

$TenantSpecificRegistryKeys = @{
    GcsNamespace = "AEWppeTely"
    GenevaConfigVersion = "1.99999"
    LocalPath = "C:\GMACache\TelemetryCache"
}

<#
Commodore project's Geneva and Kusto DB details for reference:
 
Instance | Endpoint | Account | Namespace(s) | Kusto Cluster | Kusto DB |
 
Prod | DiagnosticsProd | AzureEdgeObsProd | AEWprdTely, AELprdTely | https://aeoprodtelemetry.eastus.kusto.windows.net | AEWTelemetry. AELTelemetry |
 
PPE | DiagnosticsProd | AzureEdgeObsPPE | AEWppeTely, AELppeTely | https://aeoppeeastus.eastus.kusto.windows.net | AEWTelemetry. AELTelemetry |
 
Test | Test | AzureEdgeObs | AEWtstTely, AELtstTely | https://aeotesteastus.eastus.kusto.windows.net | AEWTelemetry. AELTelemetry |
 
#>

#endregion Constants

#region Helper Functions
Function Write-Log {
    [CmdletBinding()]
    Param (
        [Parameter(Mandatory, ValueFromPipeline)]
        [System.String] $Message,

        [Parameter(Mandatory=$False)]
        [ValidateSet("INFO","VERBOSE","WARN","ERROR")]
        [System.String] $Level = "INFO"
    )

    $dateTimeStamp = $(Get-Date).ToString('u')
    $formattedMessage = "$dateTimeStamp : $Level : $Message"
    switch($Level.toUpper()) {
        "INFO" {
                    Write-Host $formattedMessage
                    break;
                }
        "VERBOSE" {
                    Write-Verbose $formattedMessage
                    break;
                }
        "WARN" {
                    Write-Warning $formattedMessage
                    break;
                }
        "ERROR" {
                    Write-Error $formattedMessage
                    break;
                }
    }
}

Function Get-ArcAgentInfo {
    [CmdletBinding()]
    Param()

    $functionName = $MyInvocation.MyCommand.Name

    try {
        Write-Log "[$functionName] Fetching required details from Arc agent."
        
        $arcShow = & "$($env:ProgramW6432)\AzureConnectedMachineAgent\azcmagent.exe" show -j | ConvertFrom-Json

        $requiredArcAgentInfo = [Ordered] @{
            # ResourceGroupName = $arcShow.resourceGroup
            # SubscriptionId = $arcShow.subscriptionId
            # TenantId = $arcShow.tenantId
            # CloudName = $arcShow.cloud
            Location = $arcShow.location
            ResourceId = $arcShow.resourceId
        }

        $missingDetails = @()
        foreach ($key in $requiredArcAgentInfo.Keys) {
            if ([System.String]::IsNullOrEmpty($requiredArcAgentInfo[$key])) {
                $missingDetails += $key
            }
        }

        if ($missingDetails.Count -gt 0) {
            Write-Log "[$functionName] The script cannot proceed as the required registration detail(s) are missing (i.e. $($missingDetails -join ',')) from the Arc agent." -Level ERROR
        }

        Write-Log "[$functionName] Arc agent info = $($requiredArcAgentInfo | ConvertTo-Json -Compress)"

        return $requiredArcAgentInfo
    }
    catch {
        $exceptionDetails = Get-ExceptionDetails $_
        Write-Log "[$functionName] Exception occurred while fetching required details from Arc agent. Exception : $exceptionDetails." -Level ERROR
    }
}

function New-RegKey {
    [CmdletBinding()]
    param (
        [Parameter(Mandatory = $true)]
        [System.String] $Path,

        [Parameter(Mandatory = $false)]
        [System.String] $Name,
        
        [Parameter(Mandatory = $false)]
        [System.String] $PropertyType,
        
        [Parameter(Mandatory = $false)]
        [System.String] $Value,

        [Parameter(Mandatory=$false)]
        [System.Management.Automation.SwitchParameter] $CreatePathOnly
    )

    $functionName = $MyInvocation.MyCommand.Name

    if ($CreatePathOnly) {
        if (-not (Test-Path -Path $Path)) {
            New-Item `
                -Path $Path `
                -Force `
                -Verbose:$false `
                | Out-Null
            
            Write-Log "[$functionName] Created RegKey path ($Path)."
        }
        else {
            Write-Log "[$functionName] RegKey path ($Path) exists already."
        }
    }
    else {
        New-ItemProperty `
            -Path $Path `
            -Name $Name `
            -PropertyType $PropertyType `
            -Value $Value `
            -Force `
            | Out-Null
        
        Write-Log "[$functionName] Created registry key at path ($Path) with name ($Name) and value ($Value)."
    }
}

function Get-OsBuildVersion {
    [CmdletBinding()]
    [OutputType([System.String])]
    Param ()

    $functionName = $MyInvocation.MyCommand.Name
    Write-Log "[$functionName] Entering."

    $osVersion = (Get-CimInstance -ClassName Win32_OperatingSystem -Property Version).Version
    $ntoskrnl = (Get-Item -Path (Join-Path -Path ([System.Environment]::SystemDirectory) -ChildPath 'ntoskrnl.exe')).VersionInfo.ProductVersion

    $osBuildVersion = "$osVersion.$($ntoskrnl.Split('.')[-1])"

    Write-Log "[$functionName] Exiting. Returning: {osBuildVersion = $osBuildVersion}"
    return $osBuildVersion
}
#endregion Helper Functions

Write-Log "[$functionName] Set Scenario reg key to Bootstrap to let extension know that it needs to refer registry keys."

New-RegKey -Path $GMAScenarioRegKey.Path -CreatePathOnly
New-RegKey -Path $TelemetryConfigRegistryPath -CreatePathOnly
New-RegKey -Path $CommonRegistryPath -CreatePathOnly

New-RegKey `
    -Path $GMAScenarioRegKey.Path `
    -Name $GMAScenarioRegKey.Name `
    -PropertyType $GMAScenarioRegKey.PropertyType `
    -Value $GMAScenarioRegKey.Value

Write-Log "[$functionName] Fetch Arc agent info and set the required values for reg keys."
$arcAgentInfo = Get-ArcAgentInfo
$CommonRegistryKeys.MONITORING_AEO_NODE_ARC_RESOURCE_URI = $arcAgentInfo.ResourceID

$CommonRegistryKeys.MONITORING_AEO_OSBUILD = Get-OsBuildVersion

Write-Log "[$functionName] Setting Common registry keys."
foreach ($key in $CommonRegistryKeys.Keys) {
    New-RegKey `
        -Path $CommonRegistryPath `
        -Name $key `
        -PropertyType 'String' `
        -Value $CommonRegistryKeys.$key
}

Write-Log "[$functionName] Setting Tenant specific registry keys."
foreach ($key in $TenantSpecificRegistryKeys.Keys) {
    New-RegKey `
        -Path $TelemetryConfigRegistryPath `
        -Name $key `
        -PropertyType 'String' `
        -Value $TenantSpecificRegistryKeys.$key
}

Write-Log "[$functionName] Successfully created the registry keys required for Commodore."
# SIG # Begin signature block
# MIIoRgYJKoZIhvcNAQcCoIIoNzCCKDMCAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCBsDcS8kYXkEUo8
# 6mUoHCsRYosfINqgeNlRb6116BiSDKCCDXYwggX0MIID3KADAgECAhMzAAADrzBA
# DkyjTQVBAAAAAAOvMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD
# VQQI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