azure

app service fails to start

<Data>Application 'MACHINE/WEBROOT/APPHOST/--REMOVED--' with physical root 'D:\home\site\wwwroot\' failed to start process with commandline 'dotnet .\MyDll.dll', ErrorCode = '0x80004005 : e0434352.</Data>

Results in the server throwing HTTP Error 502.5 - Process Failure.

Updating Application Insights via the portal seemed to resolve this (27/03/2019).

bringing up containers

Create a resource group

az group create --name myGroup --location eastus

Create the container

az container create --resource-group myGroup --name myName --image tensorflow/tensorflow --dns-name-label myDnsName --ports 8888

Show status

az container show --resource-group myGroup --name myName --query "{FQDN:ipAddress.fqdn,ProvisioningState:provisioningState}" --out table

debugging custom linux scripts

Find the logs in /var/lib/waagent/custom-script/download/0/, see repo for more info.

running scripts on a vm

windows vm

Invoke-AzRunCommand -ResourceGroupname groupname -Name vmName -CommandId RunPowershellScript -ScriptPath ./script.ps1 -Parameter @{"paramName1"="paramValue1";"paramName2"="paramValue1"}

More

linux vm

az vm run-command invoke -g MyResourceGroup -n MyVm --command-id RunShellScript --scripts "sudo apt-get update && sudo apt-get install -y nginx"

More