-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Intermittent Error: Unable to locate Storage Account "<<storage_account_name>>"! #5299
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Recently we see a lot of issues introduced by this error, I'm assuming it's a issue caused by Azure Storage account List API handling in terraform-azurerm-provider because of following reasons, will try to collect debug logs in places that reproducing this error to prove the assumption. Behaviors:
Short term workarround:
Potential long term solution:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
As @tcz001 suggested, I am currently pushing this with MSFT account manager. I'll put a PR in to move to using the more reliable getProperties API. |
We got some updates after troubleshooting with MSFT, |
As MSFT support team mentions the List API we use is responding a pagination response, which is ignored by the terraform azurerm provider, a similar issue is addressed on other resource: https://github.com/terraform-providers/terraform-provider-azurerm/pull/7036/files |
I'm seeing similar but slightly different results. Using versions
We get a 429 ResourceCollectionRequestsThrottled instead of the improper 200, however we also do not receive the limit headers anymore either. When performing the List operation manually via command line, it there is a |
I've started seeing this error using azurerm |
I have now started seeing this error. its not intermittent and started happening everytime. No idea how i can get it fixed.
i am using terraform 0.14.5 and 0.14.10 and azurerm 2.41.0 and 2.54.0 |
This error has now been resolved after i raised a support ticket with Microsoft. they said
|
I am seeing this error on I may have some background on this issue. Unsure if it is related. I ran into issues where Terraform was unable to find specific resources where replication was enabled. After speaking with Microsoft support, they told me they were experiencing issues where metadata replication is taking longer to complete. This may result in errors that respond saying a resource may not exist or cannot be found. They told me this is a backend issue and are working to improve performance. To enable faster replication, they will be migrating the backend services to using Cosmos DB by the end of the year. This should increase the time it takes for replication to complete. So when you run the APIs against your services, it will return with results. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hey all, If you enable tracing for these actions, see if you're getting deferred (HTTP 429) messages. Our issue was due to the storage resource provider list quota of 100 operations per 5 minutes. This occurred due to some information security applications constantly polling for resources and eating up the quotas for everyone on the subscription. This is sort of what @tcz001 called out last year. There's really no other way around this for Terraform to work. It has to list storage accounts for the entire subscription in order to find one and access its details like the blob and file endpoint URLs. That information is cached inside the same process, so it should only matter the first time an account is required during an operation and it hasn't been "seen" yet. My advice is try to run If these functions work, try running them at the same time Terraform is attempting to search and see if that makes a difference. I hope this helps. |
I ran into this today, but I waited 10 minutes and then ran a |
Currently seeing this with a GRS RA account which was created over 2 hours ago. It is visible in the portal and looks fine however use 'az storage account list' finds nothing ... What can be done to fix this? |
I tried using the version azurerm 2.85.0, 2.86.0, and 2.87.0 with all the versions I get an error on creating storage accounts also am deploying the resources using azure DevOps pipeline.
What can be done to fix this issue? I have tried re-deploying. tried deploying it to different regions, changed the version, and deployed. every time I get the same error mentioned above. |
@RoweJHR, if |
@nerddtvg indeed. I did some digging and this problem goes away if you select GRS. The GRS RA resource does not appear in resource manager either but is in the portal, once you change to GRS the account is visible from both. I've raised a call with MS regarding it. Might be useful for reference if others bump into this in the future in this context. Thanks. |
This functionality has been released in v2.88.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Community Note
Terraform (and AzureRM Provider) Version
1.35.0
1.36.0
1.37.0
1.38.0
1.39.0
Description
I am getting this error intermittently when using azurerm provider 1.35.0, 1.36.0, 1.37.0, 1.38.0, 1.39.0. This issue doesnot occur on azurerm provider 1.34.0 and on earlier versions.
Anyone else had seen this issue. Below is the log for terraform plan command
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
It should locate the existing storage account
Actual Behavior
Error: Unable to locate Storage Account "<<storage_account_name>>"!
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: