Skip to content

[Doc]: Az.SecurityInsights > Update-AzSentinelIncident contains wrong example #29130

@luisfasousa

Description

@luisfasousa

Type of issue

Code doesn't work

Feedback

The page https://learn.microsoft.com/en-us/powershell/module/az.securityinsights/update-azsentinelincident?view=azps-15.2.0 contains an example of an update to an Incident, to the Owner field but the code does not work.

Update-AzSentinelIncident -InputObject $inc -Label $newLabels
Update-AzSentinelIncident : 'Title' must have a non-empty value

Update-AzSentinelIncident -InputObject $inc -Label $newLabels -Title $inc.Title -Severity $inc.Severity
Update-AzSentinelIncident : status must not be empty.

It seems that Title ,Status and Severity are not optional as stated in the documentation.
Which does not make sense as normally you'd assume that these are not fields to change on every update.

Page URL

https://learn.microsoft.com/en-us/powershell/module/az.securityinsights/update-azsentinelincident?view=azps-15.2.0

Content source URL

https://github.com/Azure/azure-powershell/blob/main/src/SecurityInsights/SecurityInsights/help/Update-AzSentinelIncident.md

Author

@mikefrobbins

Document Id

80802688-cecb-c1f3-91cc-d030078446db

Platform Id

f1f38b8c-b150-3336-41c1-60cda1971b6a

Metadata

Metadata

Assignees

No one assigned

    Labels

    customer-reportedneeds-triageThis is a new issue that needs to be triaged to the appropriate team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions