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 - fixes #302 #421

Merged
merged 2 commits into from Oct 12, 2017
Merged

azurerm_storage_account - fixes #302 #421

merged 2 commits into from Oct 12, 2017

Conversation

tombuildsstuff
Copy link
Member

@tombuildsstuff tombuildsstuff commented Oct 12, 2017

Returning a user friendly error when trying to provision a Blob Storage Account with ZRS redundancy

Fixes #302

@tombuildsstuff
Copy link
Member Author

Tests still pass:

screen shot 2017-10-12 at 16 11 06

@tombuildsstuff tombuildsstuff requested review from vancluever and removed request for mbfrahry October 12, 2017 16:47
Copy link
Contributor

@vancluever vancluever left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logic looks sound, just one question about possibility of including this validation in Update too :)

@@ -253,6 +253,10 @@ func resourceArmStorageAccountCreate(d *schema.ResourceData, meta interface{}) e

// AccessTier is only valid for BlobStorage accounts
if accountKind == string(storage.BlobStorage) {
if string(parameters.Sku.Name) == string(storage.StandardZRS) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this check be needed in Update too as account_replication_type is not ForceNew?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point, most of the Azure resources are CreateOrUpdate - so I'd assumed this was the same - I'll update it now..

Copy link
Contributor

@vancluever vancluever left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@tombuildsstuff tombuildsstuff merged commit 22f5933 into master Oct 12, 2017
@tombuildsstuff tombuildsstuff deleted the fixing-302 branch October 12, 2017 17:50
tombuildsstuff added a commit that referenced this pull request 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 👉 hashibot-feedback@hashicorp.com. Thanks!

@hashicorp hashicorp 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 this pull request may close these issues.

azurerm_storage_account invalid parameter Standard_ZRS for BlobStorage
2 participants