Azure / Azure/azure-cli-extensions

--Destination-addresses with servicetag in lowercase gets listed under IP Addresses instead of Service Tags

Open
#2,922 2 comments 0 reactions 1 assignee Assigned to @kairu-ms View on GitHub
feature-request Network Service Attention
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

- If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at [Azure/azure-cli](https://github.com/Azure/azure-cli/issues)

### Extension name (the extension in question)
az network firewall network-rule

### Description of issue (in as much detail as possible)
if --destination-addresses includes a service tag in lower case (AzureCloud.**b**razil**s**outh) the rule ends up under IP addresses instead of Service tags in the Network rule collection.

I'm able to reproduce the issue using Cloudshell and CLI. Here’s the commands/results

This rule goes under 'IP addresses' in the network rule collection:
az network firewall network-rule create -g azfw --collection-name NetworkRule --source-addresses 10.5.5.5 --destination-ports 10225 --firewall-name azfw --name test --protocols UDP --destination-addresses AzureCloud.**b**razil**s**outh

This rule goes under Service Tags in the network rule collection
az network firewall network-rule create -g azfw --collection-name NetworkRule --source-addresses 10.5.5.5 --destination-ports 10225 --firewall-name azfw --name test2 --protocols UDP --destination-addresses AzureCloud. **B**razil**S**outh

-----

![image](https://user-images.githubusercontent.com/30739258/105383071-56a95900-5bd6-11eb-8374-633f133ca85b.png)

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.