Re: Failed to store new host key
                The 
See also https://winscp.net/eng/docs/faq_hostkey#automation
        SshHostKeyPolicy.AcceptNew uses Windows registry to store the host key. It's quite likely that the registry is not writable in the limited Azure function environment. It makes sense as the environment is not persistent. Even if it was writtable, the host key won't be persisted between runs. So it would be as good/bad as using SshHostKeyPolicy.GiveUpSecurityAndAcceptAny.
See also https://winscp.net/eng/docs/faq_hostkey#automation