-
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
New Resource: azurerm_advisor_suppression
#26177
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @jkroepke - Thanks for this PR. We are moving away from this style of resource for new resources in favour of "Typed" resource as per the contributor docs here: https://github.com/hashicorp/terraform-provider-azurerm/blob/main/contributing/topics/best-practices.md#typed-vs-untyped-resources
can you take a look at implementing this as a Typed resource?
Additionally, we'd need this PR splitting into separate PRs for the multiple purposes here, i.e. one for updating the API version, one for the additional property support, and of course this one for the new resource.
If you can take a look at those changes, we can continue review.
Thanks
Hey @jackofallops do you have any example for where a service directory contains both styles of resources? |
API Update #26205 |
Hi @jkroepke - Quite a few services make use of both types at present, for example: |
additional property support: #26220 |
Hey @jackofallops I rewrite the resource based on the given example. Please take a look |
This PR is being labeled as "stale" because it has not been updated for 30 or more days. If this PR is still valid, please remove the "stale" label. If this PR is blocked, please add it to the "Blocked" milestone. If you need some help completing this PR, please leave a comment letting us know. Thank you! |
@katbyte i'm waiting for an response About CI: I run go mod tidy / go mod vendor locally and I have nothing to commit |
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay @jkroepke - i think describing the format is fine, i've done so and LGTM now 🔬
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Community Note
Description
This resources takes care of advisor suppressions.
API Ref: https://learn.microsoft.com/en-us/rest/api/advisor/suppressions?view=rest-advisor-2023-01-01
PR Checklist
For example: “
resource_name_here
- description of change e.g. adding propertynew_property_name_here
”Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_advisor_suppression
[GH-00000]This is a (please select all that apply):
Related Issue(s)
Fixes #0000
Note
If this PR changes meaningfully during the course of review please update the title and description as required.