Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-AzAks is missing (many) details provided by az aks list #11885

Closed
jsco2t opened this issue May 12, 2020 · 5 comments · Fixed by #11595
Closed

Get-AzAks is missing (many) details provided by az aks list #11885

jsco2t opened this issue May 12, 2020 · 5 comments · Fixed by #11595
Assignees
Labels
AKS Azure PS Team feature-request This issue requires a new behavior in the product in order be resolved.

Comments

@jsco2t
Copy link

jsco2t commented May 12, 2020

Description

When I issue a call to az aks list I get a large JSON document back with what appears to be a complete dump of the details related to the AKS cluster matching the input parameters.

When I make the same call to Get-AzAks I get a significantly abbreviated version of the details for the same cluster.

In particular data fields like the following appear to be missing from the output:

  • aadProfile
  • addonProfiles
  • rbac related info
  • identityProfile <--- when using managed identity clusters this is needed to find the User Managed Id that AKS/Azure creates for us.
  • nodeResourceGroup
    ....etc....etc

My expectation is that I should be able to get the exact same level of detail from Get-AzAks as I do from az aks list. For reasons beyond the scope of this bug report - I need to use the PowerShell CLI to interact with Azure instead of the Console CLI and these limitations are a significant impediment to working with AKS via PowerShell.

Steps to reproduce

Get-AzAks -ResourceGroupName {ResourceGroupContainingAksGoesHere}
az aks list --resource-group {ResourceGroupContainingAksGoesHere}

Environment data

$PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.0.0
PSEdition                      Core
GitCommitId                    7.0.0
OS                             Microsoft Windows 10.0.18363
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module versions

Script     3.6.1                 Az
Script     1.0.3                 Az.Aks

Debug output


Error output


@ghost ghost added needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels May 12, 2020
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label May 13, 2020
@dingmeng-xue dingmeng-xue added the feature-request This issue requires a new behavior in the product in order be resolved. label May 13, 2020
@dingmeng-xue
Copy link
Member

Thanks for the feedback. Azure PowerShell needs to deserialize output. It is different from Azure CLI. We will evaluate the feature.

@erich-wang
Copy link
Member

@jsco2t , could you please try latest stable version Az.Aks 1.1.1? The return value is object and you could use . to access return object's properties.

@erich-wang
Copy link
Member

@jsco2t , have you had chance to try Az.Aks 1.1.1? Does it work for you? We'll assume the issue has been solved and will close the issue if we don't hear from you within 5 days, thanks.

@dingmeng-xue dingmeng-xue removed Investigate 🔍 question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jun 9, 2020
@dingmeng-xue dingmeng-xue linked a pull request Jun 9, 2020 that will close this issue
8 tasks
@dingmeng-xue
Copy link
Member

Close this issue and required attributes are added.

@jsco2t
Copy link
Author

jsco2t commented Jul 16, 2020

Sorry for the slow follow-up. The updated version looks great. Thanks so much for getting a bug fix in for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AKS Azure PS Team feature-request This issue requires a new behavior in the product in order be resolved.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants