Azure / Azure/azure-cli

"az network nsg rule create" cannot set "--protocol" option parameter to "*"

Open
#22,094 8 comments 0 reactions 1 assignee Claimed by @necusjz View on GitHub
act-quality-productivity-squad Auto-Assign Customer Usage customer-reported feature-request Network Traiged
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

"az network nsg rule create" cannot set "--protocol" option parameter to "*"

It looks like azcli reads and passes the name of the first file or folder in the current directory instead of typing *
When I delete the relevant files and make sure the current directory is empty,* can be passed correctly

![image](https://user-images.githubusercontent.com/26130494/163803717-8408b31f-5538-419f-8490-84fa75e8a356.png)
![image](https://user-images.githubusercontent.com/26130494/163803734-6dd427ef-7ebf-40fb-9ce8-8a7811257566.png)

az network nsg rule create \
> -g azure-3f15cf15-ResourceGroup-eastus \
> --nsg-name azure-3f15cf15-ResourceGroup-eastus-Nsg \
> --source-address-prefixes * \
> --source-port-ranges * \
> --destination-address-prefixes * \
> --destination-port-ranges * \
> --direction Inbound \
> --access Allow \
> --priority 201 \
> --name in1 \

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.