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

azurerm_storage_account invalid parameter Standard_ZRS for BlobStorage #302

Closed
imcdnzl opened this issue Sep 1, 2017 · 1 comment · Fixed by #421
Closed

azurerm_storage_account invalid parameter Standard_ZRS for BlobStorage #302

imcdnzl opened this issue Sep 1, 2017 · 1 comment · Fixed by #421
Assignees
Milestone

Comments

@imcdnzl
Copy link

imcdnzl commented Sep 1, 2017

When creating a storage account which is blob storage, Standard_ZRS is not a valid type. terraform plan and apply don't warn on this so the user is left to decipher a 400 message from Azure

Terraform Version

Terraform v0.10.3

Affected Resource(s)

azurerm_storage_account

Terraform Configuration Files

resource "azurerm_storage_account" "anyname123" {
    name = "anyname123"
    resource_group_name = "anyresourcegroup"
    location = "UK South"
    account_type = "Standard_ZRS"
    account_kind = "BlobStorage"
    access_tier = "hot"
}

Debug Output

N/A

Panic Output

N/A

Expected Behavior

It should have told me that Standard_ZRS as account_type is not supported for account_kind of BlobStorage

Actual Behavior

A plan succeeds

An apply fails with below message

* azurerm_storage_account.anyname123: 1 error(s) occurred:

* azurerm_storage_account.anyname123: Error creating Azure Storage Account 'anyname123': storage.AccountsClient#Create: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="InvalidInput" Message="One of the request inputs is not valid."

Steps to Reproduce

terraform apply

Important Factoids

N/A

References

N/A

@rcarun rcarun added this to the M1 milestone Oct 12, 2017
tombuildsstuff added a commit that referenced this issue Oct 12, 2017
@tombuildsstuff tombuildsstuff self-assigned this Oct 12, 2017
tombuildsstuff added a commit that referenced this issue Oct 12, 2017
@ghost
Copy link

ghost commented Apr 1, 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 Apr 1, 2020
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