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

Error reading the advanced threat protection settings of AzureRM Storage Account #3968

Closed
enorlando opened this issue Jul 30, 2019 · 4 comments

Comments

@enorlando
Copy link

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.14
azurerm v1.32.0

Affected Resource(s)

azurerm_storage_account

Terraform Configuration Files

resource "azurerm_storage_account" "xxx" {
  name                     = "xxx"
  resource_group_name      = "${azurerm_resource_group.xxx.name}"
  location                 = "${var.location}"
  account_tier             = "Standard"
  account_replication_type = "RAGRS"
}

Debug Output

  • Logging onto the azure portal and checking the storage account in question does not have Advanced Threat Protection enabled.
  • Running az login I am able to auth and access all subscriptions
  • Reverting the provider back to 1.31.0 has no issue

Panic Output

Expected Behavior

Run a terraform plan with no changes

No changes. Infrastructure is up-to-date.

This means that Terraform did not detect any differences between your
configuration and real physical resources that exist. As a result, no
actions need to be performed.

Actual Behavior

Error: Error refreshing state: 1 error occurred:
        * azurerm_storage_account.xxx: 1 error occurred:
        * azurerm_storage_account.xxx: azurerm_storage_account.xxx: Error reading the advanced threat protection settings of AzureRM Storage Account "xxx": security.AdvancedThreatProtectionClient#Get: Failure responding to request: StatusCode=404 -- Original Error: autorest/azure: Service returned an error. Status=404 Code="SubscriptionNotFound" Message="The subscription 'xxx' could not be found."

Steps to Reproduce

  1. terraform plan
@katbyte
Copy link
Collaborator

katbyte commented Jul 30, 2019

Hi @enorlando,

This has been fixed in an upcoming hotfix release (v1.32.1) that with luck should go out today/tomorrow. As such I am going to close it.

@katbyte katbyte closed this as completed Jul 30, 2019
@enorlando
Copy link
Author

enorlando commented Aug 1, 2019

Hi @katbyte,
I have updated the provider to the hotfix mentioned v1.32.1 and still have the same issue

Error: Error refreshing state: 1 error occurred:
        * azurerm_storage_account.xxx: 1 error occurred:
        * azurerm_storage_account.xxx: azurerm_storage_account.xxx: Error reading the advanced threat protection settings of AzureRM Storage Account "xxx": security.AdvancedThreatProtectionClient#Get: Failure responding to request: StatusCode=404 -- Original Error: autorest/azure: Service returned an error. Status=404 Code="SubscriptionNotFound" Message="The subscription 'xxx' could not be found."

@guri-s
Copy link

guri-s commented Aug 1, 2019

Issue was with the storage account in question. Can confirm it's sorted now.

@ghost
Copy link

ghost commented Aug 29, 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 29, 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

4 participants