Open swapnild2111 opened 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 ?
@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.
@anavinahar Would you be able to confirm if this is a bug and help direct it to the right team? Thanks. :)
@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.
Reviewing internally with Networking devs
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 :) 👍
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?)
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.
Sorry for late reply. Terraform import looks case sensitive. So for example, if I use word
publicipprefixes
instead ofpublicIPPrefixes
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.
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.
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?