Skip to content
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

azurerm_security_center_subscription_pricing does not enable pricing for all resource types #4846

Closed
cananac opened this issue Nov 9, 2019 · 8 comments · Fixed by #8549
Closed

Comments

@cananac
Copy link

cananac commented Nov 9, 2019

Community Note

  • 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 "+1" or "me too" comments, 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

Description

Hi,

I'm using azurerm_security_center_subscription_pricing to enable Standard pricing for Azure Security Center. But this does not enable the Standard pricing tier for all the resource types under subscription. Security Center -> Pricing & Settings -> Pricing Tier, the plan is Disabled for resources apart from virtual machines.

The case can be reproduced as follows:

  • Enable Standard pricing from portal for Security Center and enable plan only for Virtual Machines. Save.
  • Then change pricing as Free and save.
  • Then set Standard pricing using azurerm_security_center_subscription_pricing

It would also be great to enable/disable resource types individually.

Thanks.

@cananac

This comment has been minimized.

@jarmbruster74
Copy link

Looked into this a bit more. This actually appears to be a limitation that applies to several clients, when I create a new pricing from the Azure command line I see the same behavior. I'm unable to find an option at this time other than through the Azure portal to turn on all resources.

@jarmbruster74
Copy link

jarmbruster74 commented Apr 22, 2020

From testing this page (https://docs.microsoft.com/en-us/rest/api/securitycenter/pricings) though it is supported in the underlying API with different pricingName values (e.g. KeyVaults, StorageAccounts, VirtualMachines, etc)

@S0meth1ng85

This comment has been minimized.

@darren-johnson

This comment has been minimized.

@fireblade95402

This comment has been minimized.

@ghost
Copy link

ghost commented Oct 8, 2020

This has been released in version 2.31.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.31.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Nov 5, 2020

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!

@ghost ghost locked as resolved and limited conversation to collaborators Nov 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants