getporter / az-mixin

An Azure CLI mixin for Porter
https://getporter.org/mixins/az/
Apache License 2.0
0 stars 11 forks source link

Set the user agent string in the bundle #44

Closed carolynvs closed 2 years ago

carolynvs commented 2 years ago

When a bundle includes the azure mixin, set the user agent environment variable AZURE_HTTP_USER_AGENT so that whether or not use you the az mixin to run a az command, the user agent reflects that it is az cli + porter.

This will enable us to understand how many people are using the az mixin in their bundles, even if they need to use plain bash scripts at times. It also helps us understand what version of porter and the mixin they are on.