-
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
Server vulnerability assessment resource #10030
Server vulnerability assessment resource #10030
Conversation
119d9ce
to
3dc89c6
Compare
azurerm/internal/services/securitycenter/server_vulnerability_assessment_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/securitycenter/server_vulnerability_assessment_resource.go
Outdated
Show resolved
Hide resolved
website/docs/r/azurerm_server_vulnerability_assessment.markdown
Outdated
Show resolved
Hide resolved
Fun, I was just looking at the API for this yesterday to see how much work it would be to implement :) This is getting towards a functional question rather than a PR comment, but have I understood correctly that you need to have activated Azure Defender for Servers enabled on the Subscription in order to use Qualys;
|
Good questions. It would be interesting to know what would happen if Azure Defender is disabled. If I could get help to test that it would be great since the company I work for require defender to be enabled on all subscriptions. (Should be enough to run the test TestAccServerVulnerabilityAssessment_basic) |
… in documentation and tests for azurerm_server_vulnerability_assessment resouce.
…y_assessment_resource
…HybridCompute) resources as well as VMs.
… the resource azurerm_server_vulnerability_assessment to work.
…y_assessment_resource
@sharebear
|
Awesome, I think that's the best possible answer for these questions. |
azurerm/internal/services/securitycenter/server_vulnerability_assessment_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/securitycenter/server_vulnerability_assessment_resource.go
Outdated
Show resolved
Hide resolved
…g the specific ID parsers/validators for virtual/hybrid macihne ids.
azurerm/internal/services/securitycenter/server_vulnerability_assessment_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/securitycenter/server_vulnerability_assessment_resource.go
Outdated
Show resolved
Hide resolved
website/docs/r/azurerm_server_vulnerability_assessment.html.markdown
Outdated
Show resolved
Hide resolved
website/docs/r/azurerm_server_vulnerability_assessment.html.markdown
Outdated
Show resolved
Hide resolved
website/docs/r/azurerm_server_vulnerability_assessment.html.markdown
Outdated
Show resolved
Hide resolved
website/docs/r/azurerm_server_vulnerability_assessment.html.markdown
Outdated
Show resolved
Hide resolved
…y_assessment_resource
… point to the correct one.
…ves an error when a import is required.
…y_assessment_resource
…y_assessment_resource
…y_assessment_resource
…y_assessment_resource
…urces. This reverts commit 8e59bda
…y_assessment_resource
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.
Thanks @martenbohlin - i've given this a review and overall while its good i've let some comments inline to address before merge
azurerm/internal/services/securitycenter/server_vulnerability_assessment_resource.go
Outdated
Show resolved
Hide resolved
|
||
```shell | ||
terraform import azurerm_server_vulnerability_assessment.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-group-name/providers/Microsoft.Compute/virtualMachines/vm-name/providers/Microsoft.Security/serverVulnerabilityAssessments/Default | ||
``` |
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.
I'd like us to show both please
--- | ||
subcategory: "Security Center" | ||
layout: "azurerm" | ||
page_title: "Azure Resource Manager: azurerm_server_vulnerability_assessment" |
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.
as this is in the security center service could we rename this to
page_title: "Azure Resource Manager: azurerm_server_vulnerability_assessment" | |
page_title: "Azure Resource Manager: azurerm_security_centre_server_vulnerability_assessment" |
|
||
Manages an Azure Server Vulnerability Assessment (Qualys) to a VM. | ||
|
||
-> **NOTE** Azure Defender has to be enabled on the subscription in order for this resource to work. |
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.
could we include a link here to the docs on how to get started with this?
…enter_server_vulnerability_assessment
…y_assessment_resource
Thanks for the feedback @katbyte ! I think all of your suggestions were great and have implemented them. |
@martenbohlin I've tested this locally and it looks good. Could you resolve the merge conflict and I will retest? Thanks! |
…y_assessment_resource
My bad, there wasn't a conflict after all, but thanks for merging in master. |
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.
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! |
Adds a new resource azurerm_server_vulnerability_assessment that installes the vulnerability assessment on a VM