Obs/scripts/ReportStatus.ps1

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

<#
.SYNOPSIS
    Generate json file for recording current status
 
.EXAMPLE
    PS C:\>ReportStatus.ps1 -Name $Name `
                            -Operation $Operation `
                            -Status $Status `
                            -Code $Code `
                            -Message $Message
 
    Generate a json file with transitioning status
 
.OUTPUTS
    Sample output of json status (currently not entire status is outputted as of now)
 
    With Localization support:
    [
        {
            "version": 1.0,
            "timestampUTC": "<current utc time>",
            "status" : {
                "name": "<Handler workload name>",
                "operation": "<name of the operation being performed>",
                "configurationAppliedTime": "<UTC time indicating when the configuration was last successfully applied>",
                "status": "<transitioning | error | success | warning>",
                "code": <Valid integer status code>,
                "message": {
                    "id": "id of the localized resource",
                    "params": [
                        "MyParam0",
                        "MyParam1"
                    ]
                },
                "formattedMessage": {
                    "lang": "Lang[-locale]",
                    "message": "formatted user message"
                },
                "substatus": [
                    {
                        "name": "<Handler workload subcomponent name>",
                        "status": "<transitioning | error | success | warning>",
                        "code": <Valid integer status code>,
                        "message": {
                            "id": "id of the localized resource",
                            "params": [
                                "MyParam0",
                                "MyParam1"
                            ]
                        },
                        "formattedMessage": {
                            "lang": "Lang[-locale]",
                            "message": "formatted user message"
                        },
                    }
                ]
            }
        }
    ]
 
    Without Localization support:
 
    [
        {
            "version": 1,
            "timestampUTC": "2013-11-17T16:05:14Z ",
            "status": {
                "name": "enable wordpress",
                "operation": "installing wordpress",
                "status": "transitioning",
                "formattedMessage": {
                    "lang": "en",
                    "message": "Enable IIS on the VM."
                },
                "substatus": [
                    {
                        "name": "Wordpress plugin",
                        "status": "success",
                        "code": 0,
                        "formattedMessage": {
                            "lang": "en-US",
                            "message": "Successfully downloaded wordpress plugin."
                        }
                    },
                    {
                        "name": "Enable IIS",
                        "status": "transitioning",
                        "message": "Turning windows feature for enabling IIS on."
                    }
                ]
            }
        }
    ]
#>


param (
    [Parameter(Mandatory)]
    [System.String] $Name,

    [Parameter(Mandatory)]
    [System.String] $Operation,

    [Parameter(Mandatory)]
    [ValidateSet("transitioning", "error", "success", "warning")]
    [System.String] $Status,

    [Parameter(Mandatory)]
    [System.Int16] $Code,

    [Parameter(Mandatory)]
    [System.String] $Message
)

$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

$configSeqNum = $null
$statusFilePath = $null
$statusJson = $null
$statusList = @()
$logFile = Get-HandlerLogFile

try {
    $level = $MiscConstants.Level.Info

    if ($Status -eq $MiscConstants.Status.Warning) {
        $level = $MiscConstants.Level.Warning
    }
    elseif ($Status -eq $MiscConstants.Status.Error) {
        $level = $MiscConstants.Level.Error
    }

    Write-Log `
        -Message "$functionName`: Name: $Name, Operation: $Operation, Status: $Status, Code: $Code, Message: $Message" `
        -LogFile $logFile `
        -Level $level

    $statusFilePath = Get-StatusFilePath

    $status_report = [ordered]@{}
    $status_report.version = "1.0"
    $status_report.timestampUTC = [System.DateTime]::UtcNow.ToString("s") + "Z" 
    $status_report.status = [ordered]@{}
    $status_report.status.name = $Name
    $status_report.status.operation = $Operation
    $status_report.status.status = $Status
    $status_report.status.code = $Code
    $status_report.status.formattedMessage = [ordered]@{}
    $status_report.status.formattedMessage.lang = "en-US"
    $status_report.status.formattedMessage.message = $Message
    $status_report.status.substatus = $null

    $statusList += $status_report
    $statusJson = ConvertTo-Json $statusList -Depth 10
    $retryCount = 1
    $isStatusWritten = $false
    while (-not (Test-Path $statusFilePath) -or `
            (-not $isStatusWritten -and $retryCount -le 3)) {

        Write-Log `
            -Message "$functionName : Attempt #$retryCount : Writing to status file at $statusFilePath" `
            -LogFile $logFile

        Out-File `
            -FilePath $statusFilePath `
            -InputObject $statusJson `
            -Encoding utf8 `
            -ErrorAction $MiscConstants.ErrorActionPreference.SilentlyContinue `
            -ErrorVariable WriteError `
            -Verbose:$false `
            | Out-Null

        if ($WriteError) {
            $message = "$functionName : Writing to status file failed with error: $WriteError"    
            Write-Log `
                -Message $message `
                -LogFile $logFile `
                -Level $MiscConstants.Level.Error

            $retryCount++
            Start-Sleep 2
        }
        else {
            $isStatusWritten = $true
        }
    }
}
catch {    
    Import-Module (Join-Path -Path $gmaPackageContentPath -ChildPath 'GMATenantJsonHelper.psm1') `
        -DisableNameChecking `
        -Verbose:$false
    
    $errorCode = $ErrorConstants.DefaultErrorMessage.Code
    $customErrorMessage = "$functionName : Failed to write to status file. "

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

    $exceptionDetailsAsString = Get-ExceptionDetails -ErrorObject $_

    # Exception details are saved for logging only.
    Write-Log `
        -Message "$customErrorMessage : StatusFilePath - '$statusFilePath', Contents - ($statusJson). Exception details - $exceptionDetailsAsString" `
        -LogFile $LogFile `
        -Level $MiscConstants.Level.Error

    exit $errorCode
}
# SIG # Begin signature block
# MIIoQgYJKoZIhvcNAQcCoIIoMzCCKC8CAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCAZBt/LxAWmtYrB
# 7QO+608LmlR9r63cvLU/VftltoSMQ6CCDXYwggX0MIID3KADAgECAhMzAAADrzBA
# DkyjTQVBAAAAAAOvMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBA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