microsoft / Microsoft-Fabric-workload-development-sample

Demonstrates how to implement a Microsoft Fabric workload in .net and typescript
Other
30 stars 17 forks source link

CreateDevAADApp.ps1 is not OS agnostic #69

Closed LeonardHd closed 2 months ago

LeonardHd commented 3 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).

Azure CLI suggests using the @ convention to maintain OS and Shell compatibility.