I've tried what feels like every combo of escape characters and quotes, but I can't seem to get what I think should be a simple command to work.
azSubscription = local.Command(
"AzureSubscription",
create='%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "Get-AzSubscription | select {$_.Id}"',
delete='Write-Output "This is a test"'
)
export("AzureSubscription", azSubscription.stdout)
Any thoughts?