Replies: 3 comments 17 replies
-
It's not checking for the az text but that the az command is available. We can't query for the availability of Powershell cmdlets, nor execute these from go. Does it set an environment variable or something else after you run that command? |
Beta Was this translation helpful? Give feedback.
-
Sorry for the wait, I had some stuff come up. I've submitted #587 for review, which will close this issue. @Ewerton once this PR gets completed, you will be able to use the az segment instead of the envvar segment. It won't have any big difference for you, other than being "more official" 😁 |
Beta Was this translation helpful? Give feedback.
-
Hey Friends, I've just update to 3.129.0 and did some tests:
Using the Powershell cmdlets for Azure
Additional Info
Dont know if this can cause any problems but note that I opt to not show the subscription ID ( |
Beta Was this translation helpful? Give feedback.
-
Tried to create an issue but the "Save Issue" is always disabled for me, so, here are a discussion...
Description
The AZ segment works fine and show the correct powerline when I log using the Azure CLI and the
az login
command.It does NOT work when I log into Azure using the powershell module and the
Connect-AzAccount
command.Environment
Steps to Reproduce
Connect-AzAccount
to interactively connect to Azure.Expected behavior: Show the powerline just like when I log using
az login
Actual behavior: Powerline does not show informations about Azure Subscription and Guid
Further Investigations
I'am not a Go developer, but looking at the az segment code, right in the line 39 here in github it seems to me that the segment will be shown if the "az" text is present in the console, am I right? if so, it should be easy to add a condition to check if the "az" or "Connect-AzAccount" is present in the console to make it work
Beta Was this translation helpful? Give feedback.
All reactions