Open
Description
openedon Mar 9, 2023
I often need to write a script that needs the current azd env values loaded into the shell. Here's what I'm doing today:
$output = azd env get-values
foreach ($line in $output) {
$name, $value = $line.Split("=")
$value = $value -replace '^\"|\"$'
[Environment]::SetEnvironmentVariable($name, $value)
}
It would be great if I had a azd env load
which does the above for any os/shell.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment