-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Question] Expected flow for identifying resource types when using table-based output #1039
Comments
Thanks @lostintangent. This is very valid feedback and has been on our radar.
Let us know how you would feel once with these are done? |
Thanks for the feedback. |
@mayurid The auto-complete option and help text sounds awesome! @derekbekoe I can totally appreciate trying to curate the table display to just the core data. In this case, it seems like the resource type is pretty core, so I'd vote for something along the lines of #1040 :) Thanks for the prompt response, and keep up the awesome work on the product! |
Ummm, yeah, we really should show the type property for table output for resource list... And, yes, it is really unfortunate that the taxonomy is different between the property names of returned resources and parameter names in the CLI commands (and, for that matter, in the SDK). We should take a look to see what we can do there as well! |
And while we certainly should provide tab completion whenever possible, I don't think we should ever have tab completion as the only way to get the possible set of input values... |
I'm closing this issue since the |
Note: As I was writing out this bug, I realized the mentioned workaround, but I've left the original text in place in order to articulate my experience in case that is valuable.
I was trying to run the
az resource show
command on a function app instance, and I wasn't able to figure out how to correctly determine the value to provide to the required--resource-type
flag. Runningaz resource list
easily provided the name and resource group values, but it's somewhat confusing that it displays a "Kind" value, which doesn't seem to correlate to the--resource-type
flag? I tried appending "Microsoft.Web/" to the "kind" that was displayed via theaz resource list
command (i.e. "functionapp"), but that also didn't work. In the end, I went into the Azure portal, and viewed the "underlying" ARM template in order to determine that the type is actually "Microsoft.Web/sites".Once I was using that value,
az resource show
worked as expected, however, I couldn't help but feel like I'm clearly missing something. Is there a command to determine the list of appropriate type names? I found thataz resource provider list
showed me the list of providers (called "namespaces" in the help text for the--resource-type
flag?), but I wasn't able to determine the list of available types/kinds within that provider viaaz resource show
.In the end, I realized that I was probably only getting a subset of the available metadata from the
az resource list
command, due to having configured the CLI to default to table-based output, so I ranaz resource list --output json
and saw the correct resource type value.Maybe I'm the only person that would get confused by this, but as a topic of conversation, I wonder whether it wouldn't be valuable to consider one or more of the following:
az resource list
command. It seems like this value is important, since it's a required param to the detail counterpart of theresource list
command, so maybe it's worth promoting to the table?az resource show
(and others?) command to point users in the right direction.The text was updated successfully, but these errors were encountered: