-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
storage_account - ATP not available in Azure Germany #4563
Comments
The Azure Germany Cloud returns `HTTP/2.0 404 Not Found` whe requesting the ATP details. In particular, ``` Code="InvalidResourceNamespace" Message="The resource namespace 'Microsoft.Security' is invalid." ``` As we are simply ignoring the error on Azure Government based on hashicorp#3920, we can apply the same logic for Azure Germany. Closes hashicorp#4563.
The Azure Germany Cloud returns `HTTP/2.0 404 Not Found` when requesting the ATP details. In particular, ``` Code="InvalidResourceNamespace" Message="The resource namespace 'Microsoft.Security' is invalid." ``` As we are simply ignoring the error on Azure Government based on hashicorp#3920, we can apply the same logic for Azure Germany. Closes hashicorp#4563.
The Azure Germany Cloud returns `HTTP/2.0 404 Not Found` when requesting the ATP details. In particular, ``` Code="InvalidResourceNamespace" Message="The resource namespace 'Microsoft.Security' is invalid." ``` As we are simply ignoring the error on Azure Government based on #3920, we can apply the same logic for Azure Germany. Closes #4563.
This has been released in version 1.36.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.36.0"
}
# ... other configuration ... |
Although the error message returned from Azure Germany Cloud is precisely "The resource namespace 'Microsoft.Security' is invalid." the error message we are seeing in `r/storage_account` has other contents added on it, so we cannot do an equals check directly. The ATP fix was being pushed as v1.36.0, but this change provides the actual resolution. Ref hashicorp#4563, hashicorp#4564.
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! |
Community Note
Terraform (and AzureRM Provider) Version
Affected Resource(s)
azurerm_storage_account
Terraform Configuration Files
Error Output
Expected Behavior
enable_advanced_threat_protection
is ignored as not available in Azure Germany.Actual Behavior
Any action involving the storage account fails with a
HTTP/2.0 404 Not Found
on the AzureRM Response for the APT resource.Steps to Reproduce
terraform apply
/terraform refresh -target=azurerm_storage_account.storagestandard
Important Factoids
Specific to Azure Germany.
Our environments in regular
AzureCloud
do not have trouble with this.References
The text was updated successfully, but these errors were encountered: