Azure / azure-cli

Azure Command-Line Interface
MIT License
4.02k stars 2.99k forks source link

Azure JSON Deployment Template Parameters Case Sensitive #15462

Open johnnylyne opened 4 years ago

johnnylyne commented 4 years ago

When applying NSG security rules using a Deployment JSON template file, the parameters for Service tags in NSG rules are case sensitive e.g. we want an outbound rule with destination Service Tag AzureCloud.UKSOUTH. When we pass a template with AzureCloud.UKSouth. The NSG rules are applied. However, when you view them in the portal the rule name is displayed AzureCloud.UKSouth however upon attempting to edit the rule it appears that it has not been mapped correctly i.e. Destination = Service Tag but Destination service tag_ is blank. I think the rule is applied, though it is unclear.

Describe the solution you'd like The service tag names should not be case sensitive. Creating from CLI, python sdk, powershell explicitly from command parameters or via template files should be case insensitive. Outbound_Service_Tag_Edit Outbound_Service_Tag_View

Additional context

yonzhan commented 4 years ago

add to S177

zhoxing-ms commented 3 years ago

The case sensitivity of service tag in ARM template requires the support of service

ghost commented 3 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @armleads-azure.

Issue Details
When applying NSG security rules using a Deployment JSON template file, the parameters for Service tags in NSG rules are case sensitive e.g. we want an outbound rule with destination Service Tag AzureCloud.UKSOUTH. When we pass a template with AzureCloud.UKSouth. The NSG rules are applied. However, when you view them in the portal the rule name is displayed AzureCloud.UKSouth however upon attempting to edit the rule it appears that it has not been mapped correctly i.e. _Destination_ = Service Tag but Destination service tag_ is blank. I think the rule is applied, though it is unclear. **Describe the solution you'd like** The service tag names should not be case sensitive. Creating from CLI, python sdk, powershell explicitly from command parameters or via template files should be case insensitive. ![Outbound_Service_Tag_Edit](https://user-images.githubusercontent.com/9569711/95589877-44e3e180-0a3d-11eb-9819-4eee6d8f6491.PNG) ![Outbound_Service_Tag_View](https://user-images.githubusercontent.com/9569711/95589880-457c7800-0a3d-11eb-871e-2829ff98fa67.PNG) **Additional context**
Author: johnnylyne
Assignees: zhoxing-ms
Labels: `ARM`, `OKR3.2 Candidate`, `Service Attention`, `feature-request`
Milestone: S181