I am a Vault newcomer and a Windows user gasp. I am going through the tutorial and get stuck on the Dynamic Secrets page as the policy command doesn’t work in my Windows Powershell.
I attempted to instead use an hcl policy file but apparently wasn’t formatting it correctly(I guess the supplied policy is not in hcl format either?)
Can anyone suggest a solution for this? I would also recommend this section of the tutorial be updated to use an hcl policy as that would be a more system-agnostic approach.
I also encountered this error and the above solution did not work in my case where I was using PowerShell. To solve this problem, I wrote the contents of the Json in a file and I used the path of the Json file as an argument adding an @ in front of it.