-
Notifications
You must be signed in to change notification settings - Fork 867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azurerm Virtual Machine casing for availability_set_id between Create and Read #324
Comments
@stack72 I believe Azure Resource Manager APIs reserve right to change casing of the resource name. It sounds like a very silly idea to me as well but this is what it is. Network APIs do it even more aggressively. This is not an SDK issue. |
I find this crazy - i am really hoping there is documentation so that I can try to work around this. I understand that URLs should be case insensitive but when it's not documented, it feels crazy Do you know if the URLs that the API changes the casing of is available? I.e. is availability_set name always UPPERCASE? P. |
@stack72 Paul, let me look into this. There was an earlier discussion (another thread, another project) where this came up. |
thanks @brendandixon |
Hi @stack72 This has been an endless source of amusing (not) internal conversations about case sensitivity in our URLs and ids. The ARM architecture consists of a frontend that enforces a certain level of consistency and a bunch of individual services. Unfortunately, we didn't catch this one in the frontend and several services choose to normalize segments to their own preferences. Over time I hope we can enforce conformity (which is to always preserve case), but for now I can only cite Postel's Law and the point about URLs being case insensitive: clients should compare ids case insensitively. |
I have the following request being used to create a VM:
Notice the availabilitySet:
/subscriptions/34ca515c-4629-458e-bf7c-738d77e0d0ea/resourceGroups/testavilset/providers/Microsoft.Compute/availabilitySets/test
When reading back the VM information, I get the following response:
Notice the availabilitySet here:
/subscriptions/34ca515c-4629-458e-bf7c-738d77e0d0ea/resourceGroups/testavilset/providers/Microsoft.Compute/availabilitySets/TEST
The casing on the name of the availabilitySet has changed from
test
toTEST
. This is causing terraform to believe that there are changes in the availability_setPaul
The text was updated successfully, but these errors were encountered: