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

Intellisense showing invalid argument for az group name: --rg-name #44

Closed
aws-scripting-guy opened this issue Jan 30, 2019 · 4 comments
Closed
Assignees
Milestone

Comments

@aws-scripting-guy
Copy link

aws-scripting-guy commented Jan 30, 2019

Using latest Azure CLI tools for VS Code 0.4.2

Steps to reproduce the issue:

  1. Typing in .azcli file
    az group create
    Intellisense suggesting --rg-name as required argument for group name. There is also missing help (stuck in Loading)

  2. Right-click and Run line in the terminal
    az group create --rg-name myGroup2 \
    --location westeurope --tags 'Environment=Test'

  3. Output
    az group show: error: argument --name/-n/--resource-group/-g is required

azure_cli_rg_name
azure_cli_rg_name_missing_help

Solution:
pass argument -n or --name for resource group name

@chrmarti
Copy link
Contributor

chrmarti commented Jan 31, 2019

Can reproduce with Azure CLI 2.0.56. Related: Azure/azure-cli#8179

@chrmarti
Copy link
Contributor

This issue was moved to Azure/azure-cli#8395

@fxlv
Copy link

fxlv commented Feb 24, 2019

Same problem with "--vm-name" that is suggested by VSCode vs "--name" that is actually expected by az cli.
I think this should not be closed as it is very much an issue.

@chrmarti chrmarti reopened this Feb 25, 2019
@chrmarti chrmarti modified the milestones: February 2019, March 2018 Feb 25, 2019
@vbdcb
Copy link

vbdcb commented Mar 4, 2019

Same thing with "az network vnet create"
--vnet-name should be --name
--vnet-prefixes should be --address-prefix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants