MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.28k stars 21.46k forks source link

Azure portal shows wrong case for word publicipprefixes #63455

Open swapnild2111 opened 4 years ago

swapnild2111 commented 4 years ago

Hello, I am not sure if this is the right place to raise this, please guide if its not.

I had raised an issue with Terraform community: https://github.com/terraform-providers/terraform-provider-azurerm/issues/8658

However it seems to be an issue with Azure portal.

So the issue is: Resource ID shown for Public IP Prefix is in all lower case, which is creating failures in Terraform side.

For example - /subscriptions/x-y-z/resourcegroups/xxx/providers/Microsoft.Network/publicipprefixes/test-prefix

This string is taken directly from Azure portal --> test-prefix (which is a public ip prefix) --> properties --> resource id field

You can see word resourcegroup & publicipprefixes are in lower case & as per documentation, it should be resourceGroup & publicIPPrefixes.

Due to lower case, it creates issues in terraform import.

Could you please help with a fix or direct this issue to correct team?

SwathiDhanwada-MSFT commented 4 years ago

@swapnild2111 Thanks for your comment. Is there any specific document were you following when you faced this issue ? If possible, can you please share the document link so that we can check and assist you accordingly ?

swapnild2111 commented 4 years ago

@SwathiDhanwada-MSFT I am referring - https://docs.microsoft.com/en-us/rest/api/virtualnetwork/publicipprefixes/createorupdate#publicipprefix

Please see the attached screenshot and observe Resource ID. The camel case is missing for words - publicipprefixes and resourcegroups. So when I use Resource id for terraform import, it fails.

Screenshot 2020-09-30 at 21 10 00

Karishma-Tiwari-MSFT commented 4 years ago

@anavinahar Would you be able to confirm if this is a bug and help direct it to the right team? Thanks. :)

SaiKishor-MSFT commented 4 years ago

@swapnild2111

I have reached out to the internal team regarding this and will update you once I have any more information on this. Thank you for pointing this out.

brianlehr commented 4 years ago

Reviewing internally with Networking devs

swapnild2111 commented 4 years ago

Thank you all, this is not super important for me, I made corrections on my side & went ahead. But may be its good for you to fix on lower priority :) 👍

brianlehr commented 4 years ago

Thank you all, this is not super important for me, I made corrections on my side & went ahead. But may be its good for you to fix on lower priority :) 👍

Quick question - were you able to correct by modifying something with Terraform? (I'm curious why Terraform is case-sensitive?)

swapnild2111 commented 4 years ago

Sorry for late reply. Terraform import looks case sensitive. So for example, if I use word publicipprefixes instead of publicIPPrefixes in terraform import ... it imports resource with most of the missing information - which is of course of no use.

brianlehr commented 4 years ago

Sorry for late reply. Terraform import looks case sensitive. So for example, if I use word publicipprefixes instead of publicIPPrefixes in terraform import ... it imports resource with most of the missing information - which is of course of no use.

Why is Terraform import set to be case-sensitive, I guess is my question.

swapnild2111 commented 3 years ago

That I do not know, may be their community will know.

However, on Microsoft Azure portal - case-sense differs. That part you should be able to fix.