Skip to content

Latest commit

 

History

History
102 lines (75 loc) · 2.2 KB

Get-AzureADServicePrincipalPolicy.md

File metadata and controls

102 lines (75 loc) · 2.2 KB
external help file Module Name ms.assetid ms.custom ms.reviewer online version schema
Microsoft.Open.MS.GraphBeta.PowerShell.dll-Help.xml
AzureADPreview
D4C305FF-6005-4296-8B26-CFFCACFF9D2C
iamfeature=PowerShell
rodejo
2.0.0

Get-AzureADServicePrincipalPolicy

SYNOPSIS

SYNTAX

Get-AzureADServicePrincipalPolicy -Id <String> [-InformationAction <ActionPreference>]
 [-InformationVariable <String>] [<CommonParameters>]

DESCRIPTION

The Get-AzureADServicePrincipalPolicy cmdlet gets the policy of a service principal in Azure Active Directory (AD).

EXAMPLES

Example 1: Get a policy

PS C:\>Get-AzureADServicePrincipalPolicy -Id "<object id of service principal>"

This command get the policy for the specified service principal.

PARAMETERS

-InformationAction

Specifies how this cmdlet responds to an information event. The acceptable values for this parameter are:

  • Continue
  • Ignore
  • Inquire
  • SilentlyContinue
  • Stop
  • Suspend
Type: ActionPreference
Parameter Sets: (All)
Aliases: infa

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

-InformationVariable

Specifies an information variable.

Type: String
Parameter Sets: (All)
Aliases: iv

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

-Id

The ID of the Service Principal for which you want to retrieve the policy

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

CommonParameters

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

INPUTS

OUTPUTS

NOTES

RELATED LINKS

Add-AzureADServicePrincipalPolicy

Remove-AzureADServicePrincipalPolicy