Skip to content

Commit 616f826

Browse files
authored
Merge pull request #11036 from joannawang-msft/patch-1
Update New-ServicePrincipal.md
2 parents 144915a + 16e1d96 commit 616f826

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

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

Lines changed: 22 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>
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
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>.
@@ -86,6 +87,22 @@ Accept pipeline input: False
8687
Accept wildcard characters: False
8788
```
8889
90+
### -ServiceId
91+
This parameter is being deprecated. Use the ObjectId parameter instead.
92+
93+
```yaml
94+
Type: String
95+
Parameter Sets: (All)
96+
Aliases:
97+
Applicable: Exchange Online, Security & Compliance, Exchange Online Protection
98+
99+
Required: True
100+
Position: Named
101+
Default value: None
102+
Accept pipeline input: False
103+
Accept wildcard characters: False
104+
```
105+
89106
### -Confirm
90107
The Confirm switch specifies whether to show or hide the confirmation prompt. How this switch affects the cmdlet depends on if the cmdlet requires confirmation before proceeding.
91108

0 commit comments

Comments
 (0)