$siteFolder="D:\home\site\wwwroot";

<# path to write the list of contents to #>

$tempFolder="d:\home\site\temp";

<# csv file to write the list of contents to #>

$csvFile="contents.csv";

<# Delimiter to use in the csv file #>

$delimiter= ',';

if (!(Test-Path $tempFolder -PathType Container)) {New-Item -ItemType Directory -Force -Path $tempFolder}get-childitem $siteFolder -rec  | select-object FullName, Length | export-csv -notypeinformation -delimiter $delimiter -path $tempFolder\$csvFile

 

Further information about investigating deployment versus runtime issues is posted here:

https://github.com/projectkudu/kudu/wiki/Deployment-vs-runtime-issues