SSH communicator for Windows on Azure is not working

So I am able to use SSHD on windows in AWS but when I try using Azure I see that the secret sent to the vault is empty and this breaks the build. I searched and found this bug that describes my issue expect they are using Windows 2019 and I’m using 2012 R2.

I also found this from 2019 indicating a similar issue
https://groups.google.com/forum/#!msg/packer-tool/VdkSea2lkwU/HbD5DXIwBAAJ

It would be great if we can get some feedback on this being a bug or a misconfiguration of packer or the builder section of the JSON input.