You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 comments along the lines of "+1", "me too" or "any updates", 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 and review the contribution guide to help.
azurerm_security_center_subscription_pricing.landing_zone: Creating...
╷
│ Error: setting Pricing (Subscription: ""
│ Pricing Name: "StorageAccounts"): unexpected status 400 (400 Bad Request) with response: {"properties.extensions[0].additionalExtensionProperties.OnUploadMalwareScanning":["Unexpected character encountered while parsing value: {. Path 'properties.extensions[0].additionalExtensionProperties.OnUploadMalwareScanning', line 1, position 90.","After parsing a value an unexpected character was encountered: :. Path 'properties.extensions[0].additionalExtensionProperties.OnUploadMalwareScanning', line 1, position 122.","After parsing a value an unexpected character was encountered: :. Path 'properties.extensions[0].additionalExtensionProperties.OnUploadMalwareScanning', line 1, position 122.","After parsing a value an unexpected character was encountered: :. Path 'properties.extensions[0].additionalExtensionProperties.OnUploadMalwareScanning', line 1, position 122.","After parsing a value an unexpected character was encountered: :. Path 'properties.extensions[0].additionalExtensionProperties.OnUploadMalwareScanning', line 1, position 122.","After parsing a value an unexpected character was encountered: :. Path 'properties.extensions[0].additionalExtensionProperties.OnUploadMalwareScanning', line 1, position 122."]}
│
│ with azurerm_security_center_subscription_pricing.landing_zone,
│ on defender-for-cloud.tf line 26, in resource "azurerm_security_center_subscription_pricing""landing_zone":
│ 26: resource "azurerm_security_center_subscription_pricing""landing_zone" {
Expected Behaviour
azurerm_security_center_subscription_pricing.landing_zone is created
Actual Behaviour
Request body is not correctly composed and the error is thrown.
A similar issue appears when no extensions are configured but Azure does apply default extensions. Then a similar error is thrown when in the second terraform apply tries to remove those extensions
Steps to Reproduce
Just apply
Important Factoids
No response
References
This issue is introduced with 4.6.0 - most likely during the changes applied in this commit: 8da4254
internal/services/securitycenter/security_center_subscription_pricing_resource.go
Thanks for raising this issue. Seems the type of "additionalExtensionProperties" in GO SDK is different with the type in service API. So service API failed to parse it. @stephybun , please double check. Thanks.
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Is there an existing issue for this?
Community Note
Terraform Version
v1.8.5
AzureRM Provider Version
4.6.0
Affected Resource(s)/Data Source(s)
azurerm_security_center_subscription_pricing
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
azurerm_security_center_subscription_pricing.landing_zone is created
Actual Behaviour
Request body is not correctly composed and the error is thrown.
A similar issue appears when no extensions are configured but Azure does apply default extensions. Then a similar error is thrown when in the second terraform apply tries to remove those extensions
Steps to Reproduce
Just apply
Important Factoids
No response
References
This issue is introduced with 4.6.0 - most likely during the changes applied in this commit:
8da4254
internal/services/securitycenter/security_center_subscription_pricing_resource.go
See line 264 and 293:
https://github.com/hashicorp/terraform-provider-azurerm/blame/8da4254d313a733d1c15f27d9b91929ea2381cff/internal/services/securitycenter/security_center_subscription_pricing_resource.go#L293
Maybe @stephybun could you have a look at this issue as you were applying these changes?
I cannot tell if the error is because of your changes or because of the SDK update.
The text was updated successfully, but these errors were encountered: