MicrosoftDocs / azure-docs-cli

Repository used to store content for the docs.microsoft.com content for the Azure CLI
https://docs.microsoft.com/cli/azure/
Creative Commons Attribution 4.0 International
208 stars 470 forks source link

az artifacts universal command does not work #4583

Closed sambroy closed 1 week ago

sambroy commented 2 weeks ago

Type of issue

Typo

Feedback

This is what I get when I run the command.

$ az artifacts universal
'artifacts' is misspelled or not recognized by the system.

Examples from AI knowledge base:
az extension add --name anextension
Add extension by name

https://docs.microsoft.com/en-US/cli/azure/extension#az_extension_add
Read more about the command in reference docs

Page URL

https://learn.microsoft.com/en-us/cli/azure/artifacts?view=azure-cli-latest

Content source URL

https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/latest/docs-ref-autogen/artifacts.yml

Author

@dbradish-microsoft

Document Id

17c90c22-ff22-487a-5c33-ce4ef92d38f4

dbradish-microsoft commented 2 weeks ago

@sambroy, you were not prompted to install the extension as shown here? image

Can you please try to install the extension manually?

az extension add --name "azure-devops"
sambroy commented 2 weeks ago

Hi @dbradish-microsoft From what I have posted above, it does appear I was prompted to install the extension, but not clear which extension. Where did you get the extension name "azure-devops" from?

This is what I see when I install the extension like you suggested:

$ az extension add --name "azure-devops"
Default enabled including preview versions for extension installation now. Disabled in May 2024. Use '--allow-preview true' to enable it specifically if needed. Use '--allow-preview false' to install stable version only.

and then

$ az artifacts universal
the following arguments are required: _subcommand

Examples from AI knowledge base:
https://aka.ms/cli_ref
Read more about the command in reference docs
dbradish-microsoft commented 2 weeks ago

@sambroy, all Azure CLI reference commands that are not "core" belong to an extension. You can see the extension name at the top of the reference page

https://learn.microsoft.com/en-us/cli/azure/artifacts image

In your screen print, az artifacts universal is a command subgroup. You need to specify a command with any required parameters.
image

For an overview of Azure CLI command syntax, please see Azure CLI terminology and support levels.

Here is an article Publish and download Universal Packages in Azure Artifacts that might also be helpful to you.

TIP: When learning new Azure CLI commands, the Article list A to Z contains a list of Quickstarts, How-to guides and tutorials for Azure CLI.

dbradish-microsoft commented 1 week ago

This PR is being closed as the customer feedback has been answered.