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

Can not create azurerm_storage_account #4009

Closed
martenbohlin opened this issue Aug 5, 2019 · 3 comments
Closed

Can not create azurerm_storage_account #4009

martenbohlin opened this issue Aug 5, 2019 · 3 comments

Comments

@martenbohlin
Copy link
Contributor

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

Terraform (and AzureRM Provider) Version

Terraform v0.11.13

  • provider.azurerm (unversioned)

Using git commit 1c9759f of provider.azurerm

Affected Resource(s)

  • azurerm_storage_account

Terraform Configuration Files

resource "azurerm_resource_group" "test" {
  name     = "test"
  location = "West US"
}

resource "azurerm_storage_account" "test" {
  name                     = "testadsfa"
  location                 = "${azurerm_resource_group.test.location}"
  resource_group_name      = "${azurerm_resource_group.test.name}"
  account_tier             = "Standard"
  account_replication_type = "LRS"
}

Debug Output

https://gist.github.com/martenbohlin/34b719670059c1e3541eaf502d02968a

Panic Output

Expected Behavior

Storage account to be created and terraform to exit succesfully.

Actual Behavior

Storage account was created but terraform returns the following error message:

azurerm_resource_group.test: Refreshing state... (ID: /subscriptions/db017fc9-f2f1-484c-826d-bd349bf2a2ac/resourceGroups/test)
azurerm_storage_account.test: Refreshing state... (ID: /subscriptions/db017fc9-f2f1-484c-826d-...soft.Storage/storageAccounts/testadsfa)

Error: Error refreshing state: 1 error(s) occurred:

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

* azurerm_storage_account.test: azurerm_storage_account.test: Error reading queue properties for AzureRM Storage Account "testadsfa": queues.Client#SetServiceProperties: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: error response cannot be parsed: "\ufeff<?xml version=\"1.0\" encoding=\"utf-8\"?><Error><Code>AuthorizationPermissionMismatch</Code><Message>This request is not authorized to perform this operation using this permission.\nRequestId:00316529-4003-00b8-6bd4-4bb627000000\nTime:2019-08-05T21:30:08.9188829Z</Message></Error>" error: invalid character 'ï' looking for beginning of value

But if I comment out line 1702 to 1083 in azurerm/resource_arm_storage_account.go it works.

Steps to Reproduce

  1. terraform apply

Important Factoids

References

@tombuildsstuff
Copy link
Contributor

hi @martenbohlin

Thanks for opening this issue :)

Taking a look through this appears to be a duplicate of #3939 - rather than having multiple issues open tracking the same thing I'm going to close this issue in favour of that one; would you mind subscribing to #3939 for updates?

Thanks!

@ghost
Copy link

ghost commented Aug 22, 2019

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

@ghost
Copy link

ghost commented Sep 11, 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 Sep 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants