Skip to content

Commit 52a3977

Browse files
Merge pull request #560 from msewaweru/freshness-work-jul
Freshness updates- landing page and troubleshooting article
2 parents 356dcb1 + 72f5d1b commit 52a3977

File tree

2 files changed

+24
-20
lines changed

2 files changed

+24
-20
lines changed

microsoftgraph/docs-conceptual/index.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ metadata:
99
ms.topic: landing-page # Required
1010
author: msewaweru #Required; your GitHub user alias, with correct capitalization.
1111
ms.author: eunicewaweru #Required; microsoft alias of author; optional team alias.
12-
ms.date: 08/01/2023 #Required; mm/dd/yyyy format.
12+
ms.date: 07/17/2024 #Required; mm/dd/yyyy format.
1313

1414
# linkListType: architecture | concept | deploy | download | get-started | how-to-guide | learn | overview | quickstart | reference | sample | tutorial | video | whats-new
1515

@@ -42,7 +42,7 @@ landingContent:
4242
- text: Cmdlet map
4343
url: azuread-msoline-cmdlet-map.md
4444
- text: Migration FAQ
45-
url: https://docs.microsoft.com/en-us/powershell/azure/active-directory/migration-faq?view=azureadps-2.0
45+
url: /powershell/azure/active-directory/migration-faq?view=azureadps-2.0
4646

4747
# Card (optional)
4848
- title: Common use cases
@@ -64,7 +64,11 @@ landingContent:
6464
- text: Assign Microsoft Entra roles in PIM
6565
url: tutorial-pim.md
6666
- text: Manage PIM policies
67-
url: how-to-manage-pim-policies.md
67+
url: how-to-manage-pim-policies.md
68+
- text: Grant and revoke delegated permissions
69+
url: tutorial-grant-delegated-api-permissions.md
70+
- text: Grant and revoke app roles
71+
url: tutorial-grant-app-only-api-permissions.md
6872

6973

7074
# Card
@@ -73,9 +77,9 @@ landingContent:
7377
- linkListType: reference
7478
links:
7579
- text: V1.0 cmdlet reference
76-
url: https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.applications/?view=graph-powershell-1.0
80+
url: /powershell/module/microsoft.graph.applications/?view=graph-powershell-1.0
7781
- text: Beta cmdlet reference
78-
url: https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.beta.applications/?view=graph-powershell-beta
82+
url: /powershell/module/microsoft.graph.beta.applications/?view=graph-powershell-beta
7983

8084

8185

@@ -87,10 +91,10 @@ landingContent:
8791
- text: Troubleshoot common errors in Microsoft Graph PowerShell
8892
url: troubleshooting.md
8993
- text: Permissions reference
90-
url: https://docs.microsoft.com/en-us/graph/permissions-reference
94+
url: /graph/permissions-reference
9195
- text: Advanced query capabilities
92-
url: https://docs.microsoft.com/en-us/graph/aad-advanced-queries?tabs=http
96+
url: /graph/aad-advanced-queries?tabs=http
9397
- text: API reference
94-
url: https://docs.microsoft.com/en-us/graph/api/overview?view=graph-rest-1.0
98+
url: /graph/api/overview?view=graph-rest-1.0
9599
- text: Microsoft Q&A
96-
url: https://docs.microsoft.com/en-us/answers/index.html
100+
url: https://learn.microsoft.com/answers/questions/

microsoftgraph/docs-conceptual/troubleshooting.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "Error handling and troubleshooting cmdlets"
33
description: "Learn how to diagnose common errors in Microsoft Graph PowerShell"
44

55
ms.topic: troubleshooting
6-
ms.date: 08/08/2023
6+
ms.date: 07/12/2024
77
ms.author: eunicewaweru
88
manager: CelesteDG
99
author: msewaweru
@@ -36,7 +36,7 @@ To find the permissions required for a specific cmdlet or API, use [Find-MgGraph
3636

3737
When you run **Connect-MgGraph**, you grant consent to Microsoft Graph PowerShell permissions. Here, you specify the permissions that you require using the **-Scopes** parameter.
3838

39-
For example, in the error below, the user lacks the permissions to run the New-MgServicePrincipal cmdlet.
39+
For example, in the following error, the user lacks the permissions to run the New-MgServicePrincipal cmdlet.
4040

4141
:::image type="content" source="images/permissions-error.png" alt-text="Insufficient privileges error":::
4242

@@ -54,7 +54,7 @@ Application.ReadWrite.All True Read and write applications Allows the app to
5454

5555
Run `Connect-MgGraph -Scopes Application.ReadWrite.All` and retry to correct the error.
5656

57-
For app-only access, pre-configure the application permissions your app needs when you register your app. Application permissions will require administrator consent, which can be consented to either using the [Azure portal](/graph/auth-v2-service) or using a sign-up experience in your app.
57+
For app-only access, preconfigure the application permissions your app needs when you register your app. Application permissions require administrator consent, which you consent to either using the [Azure portal](/graph/auth-v2-service) or using a sign-up experience in your app.
5858

5959
Alternatively, use [New-MgServicePrincipalAppRoleAssignment](/powershell/module/microsoft.graph.applications/new-mgserviceprincipalapproleassignment) to assign app roles to your app.
6060

@@ -64,18 +64,18 @@ For more info, see [App-only authentication](app-only.md).
6464

6565
The **-Debug** parameter provides a powerful way to examine a script while it's running in order to identify and correct errors in the script. The following are the important parts of a **-Debug** output:
6666

67-
1. **cmdletBeginProcessing** - this part allows you to confirm the cmdlet you're running and the parameter list provided to the cmdlet. For example, `DEBUG: [CmdletBeginProcessing]: - Get-MgUser begin processing with parameterSet 'List1'.` shows that we're running the `Get-MgUser` cmdlet and the parameter list is `List1`.
68-
1. **AuthType** - will either be `delegated` or `application`.
69-
1. **AuthProviderType** - the type of authentication that you've used. For example, interactive, device-code, and certificate.
70-
1. **Scopes** - shows all the scopes that you've authenticated to for the particular application, acquired by decoding the access token.
67+
1. **cmdletBeginProcessing** - this part allows you to confirm the cmdlet you're running and the parameter list provided to the cmdlet. For example, `DEBUG: [CmdletBeginProcessing]: - Get-MgUser begin processing with parameterSet 'List1'.` shows that you're running the `Get-MgUser` cmdlet and the parameter list is `List1`.
68+
1. **AuthType** - is either `delegated` or `application`.
69+
1. **AuthProviderType** - the type of authentication that you're using. For example, interactive, device-code, and certificate.
70+
1. **Scopes** - shows all the scopes that you authenticated to for the particular application, acquired by decoding the access token.
7171
1. **HTTP request** - comprises of:
7272
1. Method - could be GET, POST, PUSH, UPDATE
73-
1. URI - URI will change based on the cloud you're connected to and the version of the SDK you're connected to.
73+
1. URI - URI changes based on the cloud you connected to and the version of the SDK you're running.
7474
1. Body - shows the body of your request.
75-
1. **HTTP response** - will comprise of the following information:
75+
1. **HTTP response** - comprises of the following information:
7676
1. Status code - this part provides the error code returned.
77-
1. When it shows `OK`, it means that the command run successfully.
78-
1. When it shows `Bad request`, take the URI and call it via `Invoke-MgGraphRequest` to determine if it's a service or a client issue.
77+
1. `OK`: the command run successfully.
78+
1. `Bad request`: take the URI and call it via `Invoke-MgGraphRequest` to determine if it's a service or a client issue.
7979
1. Headers - The most important headers are the `request-id` and `date`. These headers [help the support team](/graph/best-practices-concept#reliability-and-support) to determine the cause of the failure. Use this ID and timestamp as you log any issues for the support team to troubleshoot.
8080
1. Body - shows what the service returns. The most important part of the body is the `@odata.nextLink`, which provides a link to fetch the next page when the result is in multiple pages. If the request fails, the body will contain the error code and the error message.
8181

0 commit comments

Comments
 (0)