New-AzureADServicePrincipal
New-AzureADServicePrincipal
Creates an Active Directory service principal.
Syntax
Parameter Set: Default
New-AzureADServicePrincipal -ApplicationId <Guid> [-DisableAccount] [-Profile <AzureProfile> ] [ <CommonParameters>]
Detailed Description
The New-AzureADServicePrincipal cmdlet creates an Azure Active Directory service principal.
Parameters
-ApplicationId<Guid>
Specifies the application ID of the service principal.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
true(ByPropertyName) |
Accept Wildcard Characters? |
false |
-DisableAccount
Indicates that this cmdlet disables the account of the service principal.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Profile<AzureProfile>
Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
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 (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1: Create an Active Directory service principal
This command creates an Active Directory service principal with the specified application ID.
New-AzureADServicePrincipal -ApplicationId a3dad041-8119-4182-b500-f8f959bf31db