Closed markd-spektrix closed 3 months ago
the azurerm provider started outputting serverFarms
starting on 3.88
Hi @markd-spektrix , Thank you for taking time to report this issue!
And thanks @calebak404 for the info!
I'll improve the azapi_update_resource
to ignore the casing in the next version. For now, please use the workaround that you mentioned.
Hi @markd-spektrix ,
Hi @loomkoom ,
Thank you for taking time to report this issue, this feature has been released in the azapi v1.14.0.
I'll close this issue as it's completed, but feel free to reopen it if there's any question.
I'm uncertain if this is an AzApi Issue, or actually an AzureRM issue, but starting here, since it's only being thrown at by azapi_update_resource.
Problem
We have the following Terraform entity:
Since upgrading to the latest version of AzureRM & AzApi, we are now getting the following error when attempting to do an apply (the rest of the Terraform has gone through okay, it's just this last bit)
For emphasis, the difference is between the
serverFarms
vsserverfarms
.It appears that somewhere in the stack, Terraform is expecting the camel case version, but from what I can tell from Azure documentation,
serverfarms
never got the camel case treatment, and is in fact still all lower caseserverfarms
Official DocsVersions
Upgraded from AzureRM
3.78.0
to3.101.0
Upgrade from AzApi1.9.0
to1.13.1
Workaround
We have found a work around that seems to work, though it's obviously not ideal, which is to do a replace on the resource_id;