Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

New-MgServicePrincipalRiskDetection

Create new navigation property to servicePrincipalRiskDetections for identityProtection

Note

To view the beta release of this cmdlet, view New-MgBetaServicePrincipalRiskDetection

Syntax

CreateExpanded (Default)

New-MgServicePrincipalRiskDetection
 [-ResponseHeadersVariable <string>]
 [-Activity <string>]
 [-ActivityDateTime <datetime>]
 [-AdditionalInfo <string>]
 [-AdditionalProperties <hashtable>]
 [-AppId <string>]
 [-CorrelationId <string>]
 [-DetectedDateTime <datetime>]
 [-DetectionTimingType <string>]
 [-IPAddress <string>]
 [-Id <string>]
 [-KeyIds <string[]>]
 [-LastUpdatedDateTime <datetime>]
 [-Location <IMicrosoftGraphSignInLocation>]
 [-RequestId <string>]
 [-RiskDetail <string>]
 [-RiskEventType <string>]
 [-RiskLevel <string>]
 [-RiskState <string>]
 [-ServicePrincipalDisplayName <string>]
 [-ServicePrincipalId <string>]
 [-Source <string>]
 [-TokenIssuerType <string>]
 [-Break]
 [-Headers <IDictionary>]
 [-HttpPipelineAppend <SendAsyncStep[]>]
 [-HttpPipelinePrepend <SendAsyncStep[]>]
 [-Proxy <uri>]
 [-ProxyCredential <pscredential>]
 [-ProxyUseDefaultCredentials]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

Create

New-MgServicePrincipalRiskDetection
 -BodyParameter <IMicrosoftGraphServicePrincipalRiskDetection>
 [-ResponseHeadersVariable <string>]
 [-Break]
 [-Headers <IDictionary>]
 [-HttpPipelineAppend <SendAsyncStep[]>]
 [-HttpPipelinePrepend <SendAsyncStep[]>]
 [-Proxy <uri>]
 [-ProxyCredential <pscredential>]
 [-ProxyUseDefaultCredentials]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

Parameters

-Activity

activityType

Parameter properties

Type:System.String
Supports wildcards:False
DontShow:False

Parameter sets

-ActivityDateTime

Date and time when the risky activity occurred. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z

Parameter properties

Type:System.DateTime
Supports wildcards:False
DontShow:False

Parameter sets

-AdditionalInfo

Additional information associated with the risk detection. This string value is represented as a JSON object with the quotations escaped.

Parameter properties

Type:System.String
Supports wildcards:False
DontShow:False

Parameter sets

-AdditionalProperties

Additional Parameters

Parameter properties

Type:System.Collections.Hashtable
Supports wildcards:False
DontShow:False

Parameter sets

-AppId

The unique identifier for the associated application.

Parameter properties

Type:System.String
Supports wildcards:False
DontShow:False

Parameter sets

-BodyParameter

servicePrincipalRiskDetection To construct, see NOTES section for BODYPARAMETER properties and create a hash table.

Parameter properties

Type:Microsoft.Graph.PowerShell.Models.IMicrosoftGraphServicePrincipalRiskDetection
Supports wildcards:False
DontShow:False

Parameter sets

-Break

Wait for .NET debugger to attach

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False

Parameter sets

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:System.Management.Automation.SwitchParameter
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

-CorrelationId

Correlation ID of the sign-in activity associated with the risk detection. This property is null if the risk detection is not associated with a sign-in activity.

Parameter properties

Type:System.String
Supports wildcards:False
DontShow:False

Parameter sets

-DetectedDateTime

Date and time when the risk was detected. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.

Parameter properties

Type:System.DateTime
Supports wildcards:False
DontShow:False

Parameter sets

-DetectionTimingType

riskDetectionTimingType

Parameter properties

Type:System.String
Supports wildcards:False
DontShow:False

Parameter sets

-Headers

Optional headers that will be added to the request.

Parameter properties

Type:System.Collections.IDictionary
Supports wildcards:False
DontShow:False

Parameter sets

-HttpPipelineAppend

SendAsync Pipeline Steps to be appended to the front of the pipeline

Parameter properties

Type:

Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]

Supports wildcards:False
DontShow:False

Parameter sets

-HttpPipelinePrepend

SendAsync Pipeline Steps to be prepended to the front of the pipeline

Parameter properties

Type:

Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]

Supports wildcards:False
DontShow:False

Parameter sets

-Id

The unique identifier for an entity. Read-only.

Parameter properties

Type:System.String
Supports wildcards:False
DontShow:False

Parameter sets

-IPAddress

Provides the IP address of the client from where the risk occurred.

Parameter properties

Type:System.String
Supports wildcards:False
DontShow:False

Parameter sets

-KeyIds

The unique identifier for the key credential associated with the risk detection.

Parameter properties

Type:

System.String[]

Supports wildcards:False
DontShow:False

Parameter sets

-LastUpdatedDateTime

Date and time when the risk detection was last updated.

Parameter properties

Type:System.DateTime
Supports wildcards:False
DontShow:False

Parameter sets

-Location

signInLocation To construct, see NOTES section for LOCATION properties and create a hash table.

Parameter properties

Type:Microsoft.Graph.PowerShell.Models.IMicrosoftGraphSignInLocation
Supports wildcards:False
DontShow:False

Parameter sets

-Proxy

The URI for the proxy server to use

Parameter properties

Type:System.Uri
Supports wildcards:False
DontShow:False

Parameter sets

-ProxyCredential

Credentials for a proxy server to use for the remote call

Parameter properties

Type:System.Management.Automation.PSCredential
Supports wildcards:False
DontShow:False

Parameter sets

-ProxyUseDefaultCredentials

Use the default credentials for the proxy

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False

Parameter sets

-RequestId

Request identifier of the sign-in activity associated with the risk detection. This property is null if the risk detection is not associated with a sign-in activity. Supports $filter (eq).

Parameter properties

Type:System.String
Supports wildcards:False
DontShow:False

Parameter sets

-ResponseHeadersVariable

Optional Response Headers Variable.

Parameter properties

Type:System.String
Supports wildcards:False
DontShow:False
Aliases:RHV

Parameter sets

-RiskDetail

riskDetail

Parameter properties

Type:System.String
Supports wildcards:False
DontShow:False

Parameter sets

-RiskEventType

The type of risk event detected. The possible values are: investigationsThreatIntelligence, generic, adminConfirmedServicePrincipalCompromised, suspiciousSignins, leakedCredentials, anomalousServicePrincipalActivity, maliciousApplication, suspiciousApplication.

Parameter properties

Type:System.String
Supports wildcards:False
DontShow:False

Parameter sets

-RiskLevel

riskLevel

Parameter properties

Type:System.String
Supports wildcards:False
DontShow:False

Parameter sets

-RiskState

riskState

Parameter properties

Type:System.String
Supports wildcards:False
DontShow:False

Parameter sets

-ServicePrincipalDisplayName

The display name for the service principal.

Parameter properties

Type:System.String
Supports wildcards:False
DontShow:False

Parameter sets

-ServicePrincipalId

The unique identifier for the service principal. Supports $filter (eq).

Parameter properties

Type:System.String
Supports wildcards:False
DontShow:False

Parameter sets

-Source

Source of the risk detection. For example, identityProtection.

Parameter properties

Type:System.String
Supports wildcards:False
DontShow:False

Parameter sets

-TokenIssuerType

tokenIssuerType

Parameter properties

Type:System.String
Supports wildcards:False
DontShow:False

Parameter sets

-WhatIf

Runs the command in a mode that only reports what would happen without performing the actions.

Parameter properties

Type:System.Management.Automation.SwitchParameter
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

Microsoft.Graph.PowerShell.Models.IMicrosoftGraphServicePrincipalRiskDetection

{{ Fill in the Description }}

System.Collections.IDictionary

{{ Fill in the Description }}

Outputs

Microsoft.Graph.PowerShell.Models.IMicrosoftGraphServicePrincipalRiskDetection

{{ Fill in the Description }}

Notes

COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.

BODYPARAMETER <IMicrosoftGraphServicePrincipalRiskDetection>: servicePrincipalRiskDetection [(Any) <Object>]: This indicates any property can be added to this object. [Id <String>]: The unique identifier for an entity. Read-only. [Activity <String>]: activityType [ActivityDateTime <DateTime?>]: Date and time when the risky activity occurred. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z [AdditionalInfo <String>]: Additional information associated with the risk detection. This string value is represented as a JSON object with the quotations escaped. [AppId <String>]: The unique identifier for the associated application. [CorrelationId <String>]: Correlation ID of the sign-in activity associated with the risk detection. This property is null if the risk detection is not associated with a sign-in activity. [DetectedDateTime <DateTime?>]: Date and time when the risk was detected. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. [DetectionTimingType <String>]: riskDetectionTimingType [IPAddress <String>]: Provides the IP address of the client from where the risk occurred. [KeyIds <String[]>]: The unique identifier for the key credential associated with the risk detection. [LastUpdatedDateTime <DateTime?>]: Date and time when the risk detection was last updated. [Location <IMicrosoftGraphSignInLocation>]: signInLocation [(Any) <Object>]: This indicates any property can be added to this object. [City <String>]: Provides the city where the sign-in originated and is determined using latitude/longitude information from the sign-in activity. [CountryOrRegion <String>]: Provides the country code info (two letter code) where the sign-in originated. This is calculated using latitude/longitude information from the sign-in activity. [GeoCoordinates <IMicrosoftGraphGeoCoordinates>]: geoCoordinates [(Any) <Object>]: This indicates any property can be added to this object. [Altitude <Double?>]: Optional. The altitude (height), in feet, above sea level for the item. Read-only. [Latitude <Double?>]: Optional. The latitude, in decimal, for the item. Read-only. [Longitude <Double?>]: Optional. The longitude, in decimal, for the item. Read-only. [State <String>]: Provides the State where the sign-in originated. This is calculated using latitude/longitude information from the sign-in activity. [RequestId <String>]: Request identifier of the sign-in activity associated with the risk detection. This property is null if the risk detection is not associated with a sign-in activity. Supports $filter (eq). [RiskDetail <String>]: riskDetail [RiskEventType <String>]: The type of risk event detected. The possible values are: investigationsThreatIntelligence, generic, adminConfirmedServicePrincipalCompromised, suspiciousSignins, leakedCredentials, anomalousServicePrincipalActivity, maliciousApplication, suspiciousApplication. [RiskLevel <String>]: riskLevel [RiskState <String>]: riskState [ServicePrincipalDisplayName <String>]: The display name for the service principal. [ServicePrincipalId <String>]: The unique identifier for the service principal. Supports $filter (eq). [Source <String>]: Source of the risk detection. For example, identityProtection. [TokenIssuerType <String>]: tokenIssuerType

LOCATION <IMicrosoftGraphSignInLocation>: signInLocation [(Any) <Object>]: This indicates any property can be added to this object. [City <String>]: Provides the city where the sign-in originated and is determined using latitude/longitude information from the sign-in activity. [CountryOrRegion <String>]: Provides the country code info (two letter code) where the sign-in originated. This is calculated using latitude/longitude information from the sign-in activity. [GeoCoordinates <IMicrosoftGraphGeoCoordinates>]: geoCoordinates [(Any) <Object>]: This indicates any property can be added to this object. [Altitude <Double?>]: Optional. The altitude (height), in feet, above sea level for the item. Read-only. [Latitude <Double?>]: Optional. The latitude, in decimal, for the item. Read-only. [Longitude <Double?>]: Optional. The longitude, in decimal, for the item. Read-only. [State <String>]: Provides the State where the sign-in originated. This is calculated using latitude/longitude information from the sign-in activity.

Related Links