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: the account_kind property now supports FileStorage #3750

Merged
merged 6 commits into from
Jul 3, 2019
Merged

azurerm_storage_account: the account_kind property now supports FileStorage #3750

merged 6 commits into from
Jul 3, 2019

Conversation

MattMencel
Copy link
Contributor

@MattMencel MattMencel commented Jun 28, 2019

This PR is for adding the FileStorage kind as an option on Storage Accounts.

Description of the FileStorage kind.
https://docs.microsoft.com/en-us/azure/storage/common/storage-account-overview#filestorage-storage-accounts

API Reference: https://docs.microsoft.com/en-us/rest/api/storagerp/storageaccounts/create#kind

(fixes #3756)

Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

Hi @MattMencel,

Thank you for the PR, it LGTM. however it looks like the test is currently failing:

------- Stdout: -------
=== RUN   TestAccAzureRMStorageAccount_fileStorageWithUpdate
=== PAUSE TestAccAzureRMStorageAccount_fileStorageWithUpdate
=== CONT  TestAccAzureRMStorageAccount_fileStorageWithUpdate
--- FAIL: TestAccAzureRMStorageAccount_fileStorageWithUpdate (72.89s)
    testing.go:568: Step 0 error: errors during apply:
        
        Error: Error creating Azure Storage Account "unlikely23exst2acctifq0": storage.AccountsClient#Create: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidValuesForRequestParameters" Message="Values for request parameters are invalid: kind."
        
          on /opt/teamcity-agent/temp/buildTmp/tf-test639457409/main.tf line 7:
          (source code not available)
        
        
FAIL

@MattMencel
Copy link
Contributor Author

Hi @katbyte,

The FileStorage kind only works with Premium skus. Looks like the tests pass now.

@ghost ghost removed the waiting-response label Jul 1, 2019
Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

fantastic error message from the API! 😅 thanks for the fix.

Looks like there might be another bug in code outside yours thou:

------- Stdout: -------
=== RUN   TestAccAzureRMStorageAccount_fileStorageWithUpdate
=== PAUSE TestAccAzureRMStorageAccount_fileStorageWithUpdate
=== CONT  TestAccAzureRMStorageAccount_fileStorageWithUpdate
--- FAIL: TestAccAzureRMStorageAccount_fileStorageWithUpdate (97.56s)
    testing.go:568: Step 0 error: Check failed: Check 4/4 error: azurerm_storage_account.testsa: Attribute 'access_tier' expected "Hot", got ""
FAIL

i'll take a closer look myself this evening

Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

Found and fixed the bug @MattMencel 🙂 Hope you don't mind but I pushed up the required change so i could get this merged tonight!

LGTM now 👍

@katbyte katbyte changed the title Add FileStorage kind to Storage Account resource azurerm_storage_account: the account_kind property now supports FileStorage Jul 3, 2019
@katbyte katbyte merged commit eefb06b into hashicorp:master Jul 3, 2019
katbyte added a commit that referenced this pull request Jul 3, 2019
@MattMencel MattMencel deleted the add_filestorage_kind branch July 3, 2019 13:37
@ghost
Copy link

ghost commented Jul 30, 2019

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

@ghost
Copy link

ghost commented Aug 2, 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 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Aug 2, 2019
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.

storage account kind "FileStorage" causes an Error
2 participants