Fix Azure stacktrace when ssh_agent isn't present

Closes #16074
Merge pull request #16146 from rallytime/azure_ssh_agent

Fix Azure stacktrace when ssh_agent isn't present