Recently we were troubleshooting in one Azure WebAppBot application. It needs certificates to access some secrets from Azure KeyVault. After some debugging, we reached to a place where we suspect that the certificates added are not getting accessed by the WebApp. So we decided to test the availability of certificates using Kudu PowerShell console.
Get-childitem Cert:\CurrentUser\My -recurse | %{ write-host $_.Subject }
Unfortunately we got some other issue.
It seems the PowerShell capabilities what we have in VMs is not the same what we have in WebApp's Kudu console. Even a simple Write-Host "Hi" also failed.
So tried to use Write-Output instead of Write-Host which writes to stream than to the host.
It worked!!!
Happy debugging.
No comments:
Post a Comment