Skip to content

Allow loading of current env into shell #1697

Open

Description

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions