-
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
Deletion of azurerm_firewall failing due to "UnsupportedMediaType" #14866
Comments
This comment has been minimized.
This comment has been minimized.
@j-chao thanks for reporting this, this is an upstream issue we're looking into. |
The importer assumes that these are defaulted to JSON like the other operation types and so won't output/override a content type if it's JSON. Fixes #563 Fixes hashicorp/terraform-provider-azurerm#14866
@tombuildsstuff just curious, what's the upstream issue? |
@j-chao internal upstream, not upstream-upstream - sorry - we're missing a Content-Type when sending this request for some reason (which is a bug) but appears to be a breaking behavioural change in the API, since this has been fine historically |
Fixed via #14927 |
This functionality has been released in v2.92.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 see still this issue: Initializing provider plugins...
[...] Error: deleting Azure Firewall Firewall: (Azure Firewall Name "[redacted]" / Resource Group "[redacted]") : network.AzureFirewallsClient#Delete: Failure sending request: StatusCode=415 -- Original Error: Code="UnsupportedMediaType" Message="The content media type '' is not supported. Only 'application/json' is supported." so re-opened in: #14966 |
I upgraded to azurerm version 2.94.0 and still have the same issue with not being able to delete Azure Firewall |
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
Terraform v1.1.3
on darwin_amd64
Affected Resource(s)
azurerm_firewall
Terraform Configuration Files
Debug Output
https://gist.github.com/j-chao/97e5a332209d3026befdb744c2d039d3
Panic Output
Expected Behaviour
Azure Firewall resource should be successfully destroyed.
Actual Behaviour
Terraform destroy failed.
Steps to Reproduce
terraform destroy ...
Important Factoids
References
The text was updated successfully, but these errors were encountered: