-
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
AuthorizationPermissionMismatch when creating a storage account in 2.0.0 #5914
Comments
I've run into the same issue and got it resolved (in an unknown way). Here are what I have done:
Hope it helps. |
Worth mentioning - running |
I can confirm that this works with the 1.44 provider, pinning my code for the time being |
Setting |
It is similar to #502. I had run into the same issue, and Can you please try:
|
I am interested in data lake v2, so I am using StorageV2 along with it |
Coming from 2 years of AWS DevOps experience, I am surprised at the suggestion of rebooting my PC. Perhaps in your setup, your Az account is federated with your Windows AD Session, meaning rebooting would refresh any stale session data. In any case, I am running Linux, my azure account has full admin access, and I am able to manually create a StorageV2 account in the web console without having to refresh my account. Additionally, as mentioned in my comment yesterday, it works with the 1.44 provider, with StorageV2 and is_hns_enabled = true |
Yep, we have SSO. When I ran into this issue, I was also able to create a StorageV2 account in Azure portal, and terraform with 1.44 provider. Azure portal has its own session. It is in browser, not command line. My guess is Azure CLI's session and/or token(s) are in an inconsistent state. When terraform throws error, can you get an access token by running As #502 (comment), the command will refresh tokens. |
I just tried doing |
Well, I am sorry but I have no idea of what to do next. 1.44 provider does not have the issue since it never touches blob properties. In my case, it is where terraform throws error. Besides, I am not using terragrunt. I am with terraform original CLI. I am not sure if it makes a difference. Maybe a trace log helps. |
Well it's not a blocker since I've pinned my code to 1.44 and am able to continue with other modules. Perhaps others will be impacted by this issue as 2.0.0 becomes more widely adopted, if the problem is indeed not specific to my setup |
I have this issue as well |
Facing the same issue as well |
Hi all, e.g. |
As mentioned in my comment #5914 (comment) |
This issue is happening to me on newly created storage accounts. Just as described in the issue description above. The storage account is created but the error message appears. The error continues to happen if I run "terraform apply" again (even though the account is already created). I also reverted to 1.44. |
I suspect the bug is from the custom blob service property client.
|
This has been released in version 2.1.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 = "~> 2.1.0"
}
# ... other configuration ... |
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 👉 [email protected]. Thanks! |
Community Note
Terraform (and AzureRM Provider) Version
terraform v0.12.21
AzureRM Provider Version 2.0.0
Affected Resource(s)
azurerm_storage_account
Terraform Configuration Files
Full code available at https://github.com/krezreb/terraform-modules-azure/tree/master/storage/account
Debug Output
Panic Output
Expected Behavior
the storage account is created, remote state saved
Actual Behavior
the storage account is created, but the following error appears in the console.
remote state is saved, but is not correct because
terraform destroy
does not destroy it, resource must be deleted manuallyNote: the above command was run using full administrator privileges. I'll check it it's working with a previous provider version and add the results in the comments
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: