Skip to content

Commit f8d2816

Browse files
Update New-ServicePrincipal.md
change parameter name ServiceId to ObjectId. ServiceId is being deprecated for ObjectId.
1 parent 51589eb commit f8d2816

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

exchange/exchange-ps/exchange/New-ServicePrincipal.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ For information about the parameter sets in the Syntax section below, see [Excha
2121
## SYNTAX
2222

2323
```
24-
New-ServicePrincipal -AppId <String> -ServiceId <String>
24+
New-ServicePrincipal -AppId <String> -ObjectId <String>
25+
[-ServiceId <String>] **Will be deprecated for ObjectId**
2526
[-Confirm]
2627
[-DisplayName <String>]
2728
[-WhatIf]
@@ -39,10 +40,10 @@ You need to be assigned permissions before you can run this cmdlet. Although thi
3940

4041
### Example 1
4142
```powershell
42-
New-ServicePrincipal -AppId 71487acd-ec93-476d-bd0e-6c8b31831053 -ServiceId 6233fba6-0198-4277-892f-9275bf728bcc
43+
New-ServicePrincipal -AppId 71487acd-ec93-476d-bd0e-6c8b31831053 -ObjectId 6233fba6-0198-4277-892f-9275bf728bcc
4344
```
4445

45-
This example create a new service principal in Exchange Online with the specified AppId and ServiceId values.
46+
This example create a new service principal in Exchange Online with the specified AppId and ObjectId values.
4647

4748
## PARAMETERS
4849

@@ -67,8 +68,8 @@ Accept pipeline input: False
6768
Accept wildcard characters: False
6869
```
6970
70-
### -ServiceId
71-
The ServiceId parameter specifies the unique ServiceId GUID value for the service principal. For example, 7c7599b2-23af-45e3-99ff-0025d148e929.
71+
### -ObjectId (formerly ServiceId)
72+
The ObjectId parameter specifies the unique ObjectId GUID value for the service principal. For example, 7c7599b2-23af-45e3-99ff-0025d148e929.
7273
7374
- The ObjectId property in the output of the [Get-MgServicePrincipal](https://learn.microsoft.com/powershell/module/microsoft.graph.applications/get-mgserviceprincipal) cmdlet in Microsoft Graph PowerShell.
7475
- The Object ID property from Enterprise applications in the Azure AD portal: <https://portal.azure.com/#view/Microsoft_AAD_IAM/StartboardApplicationsMenuBlade/~/AppAppsPreview/menuId~/null>.

0 commit comments

Comments
 (0)