Terraform v0.11.6
+ provider.azurerm v1.7.0
https://gist.github.com/timwebster9/0b71442e8e04c6fcfc03f586b3df7aad
Terraform should have provided the actual error
* module.default.azurerm_kubernetes_cluster.aks_cluster: 1 error(s) occurred:
* azurerm_kubernetes_cluster.aks_cluster: containerservice.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="" Message=""
You just need to provide an incorrect VM size value.  I used D2s_v3 instead of Standard_D2s_v3 by mistake.
hey @timwebster9
Thanks for opening this issue :)
All communication with from Terraform to the Azure API's is handled by the Azure SDK for Go, in this case it appears the error is available in the HTTP Response but isn't being parsed out correctly - as such I've opened an issue on the Azure SDK for Go repository about this.
Thanks!
As mentioned in https://github.com/Azure/azure-sdk-for-go/issues/2085 it requires an upgrade of the sdk v16 -> v17), would be awesome if that will be picked up soon.
๐ We've upgraded to SDKv17 in #1418 - as such this should be fixed in the next release (and I'm going to close this for the moment)
I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error ๐ค ๐ , please reach out to my human friends ๐ [email protected]. Thanks!
Most helpful comment
๐ We've upgraded to SDKv17 in #1418 - as such this should be fixed in the next release (and I'm going to close this for the moment)