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

Error encountered while creating a managed disk with 'UltraSSD_LRS' option #3306

Closed
mithunshanbhag opened this issue Apr 24, 2019 · 2 comments · Fixed by #3453
Closed

Error encountered while creating a managed disk with 'UltraSSD_LRS' option #3306

mithunshanbhag opened this issue Apr 24, 2019 · 2 comments · Fixed by #3453

Comments

@mithunshanbhag
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 (and AzureRM Provider) Version

Terraform v0.11.13
+ provider.azurerm v1.25.0

Affected Resource(s)

  • azurerm_managed_disk

Terraform Configuration Files

resource "azurerm_managed_disk" "my_managed_disk" {
  resource_group_name = "my-rg"
  location            = "east us"
  name                = "my-managed-disk"

  storage_account_type = "UltraSSD_LRS"
  create_option        = "empty"
  disk_size_gb         = "30"
}

Debug Output

Link to gist: https://gist.github.com/mithunshanbhag/14820a8dce5ca3c0ebfb56d58d5e74b2

Panic Output

N/A

Expected Behavior

Managed disk should have been successfully created.

Actual Behavior

1 error(s) occurred:

* azurerm_managed_disk.my_managed_disk: 1 error(s) occurred:

* azurerm_managed_disk.my_managed_disk: compute.DisksClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidRequestContent" Message="The request content was invalid and could not be deserialized: Required property 'name' not found in 'sku'."

Steps to Reproduce

  1. terraform init
  2. terraform apply

Important Factoids

  1. Issue only occurs when storage_account_type = "ULTRASSD_LRS" is used. Issue does not repro for the other storage account types: Standard_LRS, Premium_LRS, StandardSSD_LRS

  2. The following github issue might be related: issue when creating vm from snapshot Azure-Samples/managed-disks-powershell-getting-started#5

References

N/A

@ghost
Copy link

ghost commented May 17, 2019

This has been released in version 1.28.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
	version = "~> 1.28.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Jun 16, 2019

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 Jun 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants