when i try to generate a token for the vault using powershell in my script to be then able to insert / update secret into vault i get the below error during the token generation using the role id and secret id.
PS C:\windows\system32> $ClientToken = Invoke-WebRequest -Method POST -Uri “$VaultAddress/auth/approle/login” -Body $Payload
Invoke-WebRequest : {“errors”:}
At line:1 char:16
- … ientToken = Invoke-WebRequest -Method POST -Uri "$VaultAddress/auth/a …
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
- FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand