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

Need ability to configure the "performance tier" for azurerm_managed_disk #11585

Closed
fcatacut opened this issue May 4, 2021 · 3 comments · Fixed by #11634
Closed

Need ability to configure the "performance tier" for azurerm_managed_disk #11585

fcatacut opened this issue May 4, 2021 · 3 comments · Fixed by #11634

Comments

@fcatacut
Copy link
Contributor

fcatacut commented May 4, 2021

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

Description

For certain storage types other than Standard_LRS, a "performance tier" option is available in Azure Porta which can be set to a higher performance tier to meet higher demand and return to the initial baseline performance tier once this period is complete.

image

This is not currently supported in the azurerm_managed_disk resource.

New or Affected Resource(s)

  • azurerm_managed_disk

Potential Terraform Configuration

resource "azurerm_managed_disk" "source" {
  name                 = "data"
  location             = "centralus"
  resource_group_name  = azurerm_resource_group.example.name
  storage_account_type = "Premium_LRS"
  create_option        = "Empty"
  disk_size_gb         = "64"
  tier                 = "P6" # New argument
}

References

ARM Template snippet

"properties": {
    "creationData": {
        "createOption": "Empty"
    },
    "diskSizeGB": 64,
    "diskIOPSReadWrite": 500,
    "diskMBpsReadWrite": 100,
    "encryption": {
        "type": "EncryptionAtRestWithPlatformKey"
    },
    "diskState": "Attached",
    "networkAccessPolicy": "AllowAll",
    "tier": "P10"
}
@aristosvo
Copy link
Collaborator

aristosvo commented May 8, 2021

Gave it a shot and included some extra configuration around only enabling the option only for Premium SSDs + acceptance tests! 🎉

@ghost
Copy link

ghost commented May 14, 2021

This has been released in version 2.59.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 = "~> 2.59.0"
}
# ... other configuration ...

favoretti pushed a commit to gro1m/terraform-provider-azurerm that referenced this issue May 26, 2021
@github-actions
Copy link

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 14, 2021
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.

3 participants