Terraform-provider-azurerm: az premium files max at 5T (vs 100T)

Created on 7 Oct 2019  ·  8Comments  ·  Source: terraform-providers/terraform-provider-azurerm

Given an azure premium files storage account, TF (0.12.9) constrains the quota/sizing between 100M and 5T, whereas the portal allows 100M - 100T.

attempting to supply (in TF) a quota > 50120 yields:

Invalid input: input.QuotaInGB must be greater than 0, and less than/equal to 5TB (5120 GB)

100T portal creation validated by az cli:

az storage share list --account-name ${my_premium_files_SA} | grep quota
"quota": 102400

TF:

  • provider.azuread: version = "~> 0.6"
  • provider.azurerm: version = "~> 1.35"
  • provider.external: version = "~> 1.2"
  • provider.null: version = "~> 2.1"
  • provider.random: version = "~> 2.2"
bug servicstorage upstream

All 8 comments

per: https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/vendor/github.com/tombuildsstuff/giovanni/storage/2018-11-09/file/shares/properties_set.go

    if newQuotaGB <= 0 || newQuotaGB > 5120 {
        return result, validation.NewError("shares.Client", "SetProperties", "`newQuotaGB` must be greater than 0, and less than/equal to 5TB (5120 GB)")
    }

and per: https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/vendor/github.com/tombuildsstuff/giovanni/storage/2018-11-09/file/shares/create.go

    if input.QuotaInGB <= 0 || input.QuotaInGB > 5120 {
        return result, validation.NewError("shares.Client", "Create", "`input.QuotaInGB` must be greater than 0, and less than/equal to 5TB (5120 GB)")
    }

current ARM indicates min to be 100 and max to be 102400

I've recompiled master, editing the above, but cannot figure out how to get terragrunt to 'trust' this updated provider build.

Hi @surlypants,

if you open a PR on the giovanni we can get it merged and into 1.36 🙂

the appropriate fix will need to case between std and premium storage, where std allowed values are 1-5120, and premium allowed values are 100-102400

left a note at giovanni (https://github.com/tombuildsstuff/giovanni/issues/18)

For the standard tier, the large file share flag must be enabled, so additional configuration is expected.

https://docs.microsoft.com/en-us/azure/storage/files/storage-files-how-to-create-large-file-share

Same issue with AzureRM provider 2.0 version.

This has been released in version 2.31.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.31.0"
}
# ... other configuration ...

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!

Was this page helpful?
0 / 5 - 0 ratings