question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"az network nsg rule update" does not accept asterisk as a value for source or destination prefix

See original GitHub issue

Environment summary

azure-cli (2.0.20) in MacOS installed with pip.

Docs here use asterisk in the example but I get the following error message when I try to use asterisk for --source-address-prefixes or --destination-address-prefixes.

az network nsg rule update --nsg-name k8s-master-79A38D6D-nsg -g oguzp-acs --name allow_kube_tls --source-address-prefixes *  --destination-address-prefixes *
Security rule /subscriptions/*******/resourceGroups/oguzp-acs/providers/Microsoft.Network/networkSecurityGroups/k8s-master-79A38D6D-nsg/securityRules/allow_kube_tls has invalid Address prefix. Value provided: $(curl

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
derekbekoecommented, Nov 14, 2017

@tjprescott Thoughts on modifying the documentation to include the quotes? FYI: @sptramer

1reaction
derekbekoecommented, Nov 14, 2017

Try wrapping the * in single quotes?

Read more comments on GitHub >

github_iconTop Results From Across the Web

az network nsg rule | Microsoft Learn
az network nsg rule · Reference. Feedback · --access. accepted values: Allow, Deny · --destination-address-prefixes default value: * · --destination-port-ranges.
Read more >
Append NSG Rule - AzAdvertizer
Append NSG Rule - This Policy will append a rule to newly deployed NSGs.
Read more >
Azure Terraform NSG rule creation ERROR for ...
It fails because of "destination_address_prefix ": "AzureMonitor" Terraform somehow does not accept "AzureMonitor" as destination_address_prefix ...
Read more >
How to Set up an Azure Firewall (And Why Not NSGS)
An NSG is a layer 3-4 Azure service to control network traffic to ... You should not specify an asterisk (*) for the...
Read more >
Manage Azure network security groups - Ansible Documentation
The destination address prefix. CIDR or destination IP range. Asterisk * can also be used to match all source IPs. Default tags such...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found