次の方法で共有


New-MgRiskyServicePrincipal

Create new navigation property to riskyServicePrincipals for identityProtection

Note

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

Syntax

New-MgRiskyServicePrincipal
   [-ResponseHeadersVariable <String>]
   [-AdditionalProperties <Hashtable>]
   [-AppId <String>]
   [-DisplayName <String>]
   [-History <IMicrosoftGraphRiskyServicePrincipalHistoryItem[]>]
   [-Id <String>]
   [-IsEnabled]
   [-IsProcessing]
   [-RiskDetail <String>]
   [-RiskLastUpdatedDateTime <DateTime>]
   [-RiskLevel <String>]
   [-RiskState <String>]
   [-ServicePrincipalType <String>]
   [-Headers <IDictionary>]
   [-ProgressAction <ActionPreference>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-MgRiskyServicePrincipal
   -BodyParameter <IMicrosoftGraphRiskyServicePrincipal>
   [-ResponseHeadersVariable <String>]
   [-Headers <IDictionary>]
   [-ProgressAction <ActionPreference>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Create new navigation property to riskyServicePrincipals for identityProtection

Parameters

-AdditionalProperties

Additional Parameters

Type:Hashtable
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-AppId

The globally unique identifier for the associated application (its appId property), if any.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-BodyParameter

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

Type:IMicrosoftGraphRiskyServicePrincipal
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DisplayName

The display name for the service principal.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Headers

Optional headers that will be added to the request.

Type:IDictionary
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-History

Represents the risk history of Microsoft Entra service principals. To construct, see NOTES section for HISTORY properties and create a hash table.

Type:IMicrosoftGraphRiskyServicePrincipalHistoryItem[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Id

The unique identifier for an entity. Read-only.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-IsEnabled

true if the service principal account is enabled; otherwise, false.

Type:SwitchParameter
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-IsProcessing

Indicates whether Microsoft Entra ID is currently processing the service principal's risky state.

Type:SwitchParameter
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ProgressAction

{{ Fill ProgressAction Description }}

Type:ActionPreference
Aliases:proga
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ResponseHeadersVariable

Optional Response Headers Variable.

Type:String
Aliases:RHV
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-RiskDetail

riskDetail

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-RiskLastUpdatedDateTime

The date and time that the risk state was last updated. 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, 2021 is 2021-01-01T00:00:00Z. Supports $filter (eq).

Type:DateTime
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-RiskLevel

riskLevel

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-RiskState

riskState

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ServicePrincipalType

Identifies whether the service principal represents an Application, a ManagedIdentity, or a legacy application (socialIdp). This is set by Microsoft Entra ID internally and is inherited from servicePrincipal.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.Graph.PowerShell.Models.IMicrosoftGraphRiskyServicePrincipal

System.Collections.IDictionary

Outputs

Microsoft.Graph.PowerShell.Models.IMicrosoftGraphRiskyServicePrincipal

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 <IMicrosoftGraphRiskyServicePrincipal>: riskyServicePrincipal

  • [(Any) <Object>]: This indicates any property can be added to this object.
  • [Id <String>]: The unique identifier for an entity. Read-only.
  • [AppId <String>]: The globally unique identifier for the associated application (its appId property), if any.
  • [DisplayName <String>]: The display name for the service principal.
  • [History <IMicrosoftGraphRiskyServicePrincipalHistoryItem- []>]: Represents the risk history of Microsoft Entra service principals.
    • [AppId <String>]: The globally unique identifier for the associated application (its appId property), if any.
    • [DisplayName <String>]: The display name for the service principal.
    • [History <IMicrosoftGraphRiskyServicePrincipalHistoryItem- []>]: Represents the risk history of Microsoft Entra service principals.
    • [IsEnabled <Boolean?>]: true if the service principal account is enabled; otherwise, false.
    • [IsProcessing <Boolean?>]: Indicates whether Microsoft Entra ID is currently processing the service principal's risky state.
    • [RiskDetail <String>]: riskDetail
    • [RiskLastUpdatedDateTime <DateTime?>]: The date and time that the risk state was last updated. 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, 2021 is 2021-01-01T00:00:00Z. Supports $filter (eq).
    • [RiskLevel <String>]: riskLevel
    • [RiskState <String>]: riskState
    • [ServicePrincipalType <String>]: Identifies whether the service principal represents an Application, a ManagedIdentity, or a legacy application (socialIdp). This is set by Microsoft Entra ID internally and is inherited from servicePrincipal.
    • [Id <String>]: The unique identifier for an entity. Read-only.
    • [Activity <IMicrosoftGraphRiskServicePrincipalActivity>]: riskServicePrincipalActivity
      • [(Any) <Object>]: This indicates any property can be added to this object.
      • [Detail <String>]: riskDetail
      • [RiskEventTypes <String- []>]: The type of risk event detected. The possible values are: investigationsThreatIntelligence, generic, adminConfirmedServicePrincipalCompromised, suspiciousSignins, leakedCredentials, anomalousServicePrincipalActivity, maliciousApplication, suspiciousApplication.
    • [InitiatedBy <String>]: The identifier of the actor of the operation.
  • [IsEnabled <Boolean?>]: true if the service principal account is enabled; otherwise, false.
  • [IsProcessing <Boolean?>]: Indicates whether Microsoft Entra ID is currently processing the service principal's risky state.
  • [RiskDetail <String>]: riskDetail
  • [RiskLastUpdatedDateTime <DateTime?>]: The date and time that the risk state was last updated. 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, 2021 is 2021-01-01T00:00:00Z. Supports $filter (eq).
  • [RiskLevel <String>]: riskLevel
  • [RiskState <String>]: riskState
  • [ServicePrincipalType <String>]: Identifies whether the service principal represents an Application, a ManagedIdentity, or a legacy application (socialIdp). This is set by Microsoft Entra ID internally and is inherited from servicePrincipal.

HISTORY <IMicrosoftGraphRiskyServicePrincipalHistoryItem- []>: Represents the risk history of Microsoft Entra service principals.

  • [AppId <String>]: The globally unique identifier for the associated application (its appId property), if any.
  • [DisplayName <String>]: The display name for the service principal.
  • [History <IMicrosoftGraphRiskyServicePrincipalHistoryItem- []>]: Represents the risk history of Microsoft Entra service principals.
  • [IsEnabled <Boolean?>]: true if the service principal account is enabled; otherwise, false.
  • [IsProcessing <Boolean?>]: Indicates whether Microsoft Entra ID is currently processing the service principal's risky state.
  • [RiskDetail <String>]: riskDetail
  • [RiskLastUpdatedDateTime <DateTime?>]: The date and time that the risk state was last updated. 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, 2021 is 2021-01-01T00:00:00Z. Supports $filter (eq).
  • [RiskLevel <String>]: riskLevel
  • [RiskState <String>]: riskState
  • [ServicePrincipalType <String>]: Identifies whether the service principal represents an Application, a ManagedIdentity, or a legacy application (socialIdp). This is set by Microsoft Entra ID internally and is inherited from servicePrincipal.
  • [Id <String>]: The unique identifier for an entity. Read-only.
  • [Activity <IMicrosoftGraphRiskServicePrincipalActivity>]: riskServicePrincipalActivity
    • [(Any) <Object>]: This indicates any property can be added to this object.
    • [Detail <String>]: riskDetail
    • [RiskEventTypes <String- []>]: The type of risk event detected. The possible values are: investigationsThreatIntelligence, generic, adminConfirmedServicePrincipalCompromised, suspiciousSignins, leakedCredentials, anomalousServicePrincipalActivity, maliciousApplication, suspiciousApplication.
  • [InitiatedBy <String>]: The identifier of the actor of the operation.