Skip to content
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

AKS cluster creation fails with no error message if VM size is incorrect #1416

Closed
timwebster9 opened this issue Jun 20, 2018 · 4 comments
Closed

Comments

@timwebster9
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

Terraform v0.11.6
+ provider.azurerm v1.7.0

Affected Resource(s)

  • azurerm v1.7.0

Debug Output

https://gist.github.com/timwebster9/0b71442e8e04c6fcfc03f586b3df7aad

Expected Behavior

Terraform should have provided the actual error

Actual Behavior

* 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=""

Steps to Reproduce

You just need to provide an incorrect VM size value. I used D2s_v3 instead of Standard_D2s_v3 by mistake.

@tombuildsstuff
Copy link
Contributor

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!

@tombuildsstuff tombuildsstuff added waiting-response upstream/microsoft Indicates that there's an upstream issue blocking this issue/PR and removed waiting-response labels Jun 20, 2018
@timwebster9 timwebster9 changed the title AKS cluster creation fails with no error message is VM size is incorrect AKS cluster creation fails with no error message if VM size is incorrect Jun 20, 2018
@dano0b
Copy link

dano0b commented Jun 26, 2018

As mentioned in Azure/azure-sdk-for-go#2085 it requires an upgrade of the sdk v16 -> v17), would be awesome if that will be picked up soon.

@tombuildsstuff tombuildsstuff added this to the 1.8.0 milestone Jun 27, 2018
@tombuildsstuff tombuildsstuff removed the upstream/microsoft Indicates that there's an upstream issue blocking this issue/PR label Jun 27, 2018
@tombuildsstuff
Copy link
Contributor

👋 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)

@ghost
Copy link

ghost commented Mar 30, 2020

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!

@ghost ghost locked and limited conversation to collaborators Mar 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants