Private/Update-Infratstructure.ps1

function Update-Infrastructure {
    param(
        $ResourceGroupName,
        $SubscriptionId,
        $destContext
    )
        $updateDictionary = Get-UpdateDictionary
        $updateSteps = $updateDictionary.Keys

        foreach ($updateStep in $updateSteps) {
            $table = Get-AzStorageTable -ResourceGroupName $ResourceGroupName -Subscription $SubscriptionId -Table $Script:tableName -Name $storageAccountName
            if ($null -eq (Get-AzTableRow -table $table -partitionKey $Script:partitionKey -rowKey $updateStep -and $depencySafety)) {
                $updateDictionary[$updateStep]
                Add-AzTableRow -table $Script:tableName -partitionKey $Script:partitionKey -rowKey $updateStep -Context $destContext
            }
        }
}