Closed LeonardHd closed 2 months ago
While the script runs on windows, it does not run on UNIX-based systems (when using PS 7.x).
The JSON is escaped manually and passed to PostAADRequest. However, there's still quoting differences between Bash, PowerShell in Linux, and PowerShell in Windows (see https://learn.microsoft.com/en-us/cli/azure/use-azure-cli-successfully-troubleshooting#error-failed-to-parse-string-as-json).
PostAADRequest
Azure CLI suggests using the @ convention to maintain OS and Shell compatibility.
While the script runs on windows, it does not run on UNIX-based systems (when using PS 7.x).
The JSON is escaped manually and passed to
PostAADRequest
. However, there's still quoting differences between Bash, PowerShell in Linux, and PowerShell in Windows (see https://learn.microsoft.com/en-us/cli/azure/use-azure-cli-successfully-troubleshooting#error-failed-to-parse-string-as-json).Azure CLI suggests using the @ convention to maintain OS and Shell compatibility.