scripts/set-env.ps1 (8 lines of code) (raw):

$myip = curl -4 icanhazip.com azd env set MY_IP_ADDRESS $myip #run az login and set correct subscription if needed ./scripts/set-az-currentsubscription.ps1 if ($? -eq $true) { $myPrincipal = az ad signed-in-user show --query "id" -o tsv azd env set MY_USER_ID $myPrincipal }