From 029cb6b6ee2b396cfda2f4b9293f76dd2e5101bd Mon Sep 17 00:00:00 2001 From: Alastair Smith Date: Wed, 21 Oct 2020 17:42:18 +0100 Subject: [PATCH] azure-cli: Set AzureCLIPath environment variable (#1469) As identified in, e.g., [the Azure Go SDK][1] and [other Azure SDKs][2], the Azure CLI program can be resolved using an environment variable called AzureCLIPath or AZURE_CLI_PATH if the program is not installed to the default locations. Setting this environment variable allows programs such as Pulumi which (ultimately) build on the Azure SDKs to resolve the CLI program when it has been installed with Scoop. [1]: https://github.com/Azure/go-autorest/blob/afe17657e2844fc0def7ffbf572d7d869ffedb4d/autorest/azure/cli/token.go#L151 [2]: https://github.com/search?q=org%3AAzure+AzureCLIPath&type=code --- bucket/azure-cli.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bucket/azure-cli.json b/bucket/azure-cli.json index 1ec2651278..a358100ded 100644 --- a/bucket/azure-cli.json +++ b/bucket/azure-cli.json @@ -13,5 +13,9 @@ }, "autoupdate": { "url": "https://azurecliprod.azureedge.net/msi/azure-cli-$version.msi" + }, + "env_set": { + "AzureCLIPath": "$dir", + "AZURE_CLI_PATH": "$dir" } }