Skip to content

Commit ff7b023

Browse files
Learn Editor: Update auth-cloudsolutionprovider.md
1 parent 8318ed2 commit ff7b023

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

concepts/auth-cloudsolutionprovider.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,34 +39,32 @@ The initial steps required here follow most of the same steps used to register a
3939

4040
### Preconsent your app for all your customers
4141

42-
Finally grant your partner-managed app those configured permissions for all your customers. You can do this by adding the **servicePrincipal** that represents the app to the *Adminagents* group in your Partner tenant, using [Azure AD PowerShell V2](https://www.powershellgallery.com/packages/AzureAD) or [Microsoft Graph PowerShell](/powershell/microsoftgraph/installation). Follow these steps to find the *Adminagents* group, the **servicePrincipal** and add it to the group.
42+
Finally grant your partner-managed app those configured permissions for all your customers. You can do this by adding the **servicePrincipal** that represents the app to the *Adminagents* group in your Partner tenant, using [Microsoft Entra PowerShell](/powershell/entra-powershell/installation) or [Microsoft Graph PowerShell](/powershell/microsoftgraph/installation). Follow these steps to find the *Adminagents* group, the **servicePrincipal** and add it to the group.
4343

44-
[!INCLUDE [Azure AD PowerShell deprecation note](~/../reusable-content/msgraph-powershell/includes/aad-powershell-deprecation-note.md)]
45-
46-
# [Azure AD PowerShell](#tab/azuread)
44+
# [Microsoft Entra PowerShell](#tab/entraps)
4745

4846
1. Open a PowerShell session and connect to your partner tenant by entering your admin credentials into the sign-in window.
4947

5048
```PowerShell
51-
Connect-AzureAd
49+
Connect-Entra
5250
```
5351
5452
2. Find the group that represents the *Adminagents*.
5553
5654
```PowerShell
57-
$group = Get-AzureADGroup -Filter "displayName eq 'Adminagents'"
55+
$group = Get-EntraGroup -Filter "displayName eq 'Adminagents'"
5856
```
5957
6058
3. Find the service principal that has the same *appId* as your app.
6159
6260
```PowerShell
63-
$sp = Get-AzureADServicePrincipal -Filter "appId eq '{yourAppsAppId}'"
61+
$sp = Get-EntraServicePrincipal -Filter "appId eq '{yourAppsAppId}'"
6462
```
6563
6664
4. Finally, add the service principal to the *Adminagents* group.
6765
6866
```PowerShell
69-
Add-AzureADGroupMember -ObjectId $group.ObjectId -RefObjectId $sp.ObjectId
67+
Add-EntraGroupMember -GroupId $group.Id -MemberId $sp.Id
7068
```
7169
7270
# [Microsoft Graph PowerShell](#tab/graphpowershell)

0 commit comments

Comments
 (0)