|
| 1 | +--- |
| 2 | +external help file: sharepointonline.xml |
| 3 | +Module Name: Microsoft.Online.SharePoint.PowerShell |
| 4 | +online version: https://learn.microsoft.com/powershell/module/sharepoint-online/get-spoenterpriseappinsightsreport |
| 5 | +applicable: SharePoint Online |
| 6 | +title: Get-SPOEnterpriseAppInsightsReport |
| 7 | +schema: 2.0.0 |
| 8 | +author: sumikumar |
| 9 | +ms.author: sumikumar |
| 10 | +ms.reviewer: |
| 11 | +manager: hikakar |
| 12 | +--- |
| 13 | + |
| 14 | +# Get-SPOEnterpriseAppInsightsReport |
| 15 | + |
| 16 | +## SYNOPSIS |
| 17 | + |
| 18 | +This cmdlet enables the administrator to check status of all active and available reports when no report ID is present and to view or download a report if report ID is present. |
| 19 | + |
| 20 | +## SYNTAX |
| 21 | + |
| 22 | +```powershell |
| 23 | +Get-SPOEnterpriseAppInsightsReport [-ReportId <Guid>] [-Action <ActionType>] |
| 24 | +``` |
| 25 | + |
| 26 | +## DESCRIPTION |
| 27 | + |
| 28 | +If this cmdlet is executed without any parameters, it displays the status of all active and completed reports with the following properties: |
| 29 | + |
| 30 | +| Property | Description | |
| 31 | +|:---------------------|:------------------------------------------------------------| |
| 32 | +| Id | The unique Id of the report. | |
| 33 | +| CreatedDateTimeInUtc | The date and time the report creation was triggered in UTC. | |
| 34 | +| Status | The status of the report. | |
| 35 | +| ReportPeriodInDays | The report duration in days. | |
| 36 | + |
| 37 | +If this cmdlet is executed with `-ReportId` as parameter, the top 100 records of the report from the last N days will be displayed with the following properties: |
| 38 | + |
| 39 | +| Property | Description | |
| 40 | +|:----------------|:---------------------------------------------------------------------------| |
| 41 | +| SiteName | The name of the SharePoint site. | |
| 42 | +| SiteURL | The URL of the SharePoint site. | |
| 43 | +| SiteSensitivity | The sensitivity label of the SharePoint site. | |
| 44 | +| AppID | The AppID of the 3P application. | |
| 45 | +| AppPermissions | The permissions granted to the 3P application. | |
| 46 | +| RequestVoulme | The number of times the 3P application accessed the given SharePoint site. | |
| 47 | + |
| 48 | +If this cmdlet is executed with both the parameters, i.e. `-ReportId` and `-Action`, and if the value of `-Action` is set as `View`, it will display the same result as described above. If the value of `-Action` is set to `Download`, it will download the full report in CSV format to the same path from where the command was run. |
| 49 | + |
| 50 | +> [!NOTE] |
| 51 | +> All reports adhere to any retention timeline as per [Data Access Governance](/sharepoint/data-access-governance-reports). |
| 52 | +
|
| 53 | +## EXAMPLES |
| 54 | + |
| 55 | +### -----------------------EXAMPLE 1----------------------------- |
| 56 | + |
| 57 | +```powershell |
| 58 | +Get-SPOEnterpriseAppInsightsReport |
| 59 | +``` |
| 60 | + |
| 61 | +Example 1 enables administrator to view the status of all active and completed reports. |
| 62 | + |
| 63 | +### -----------------------EXAMPLE 2----------------------------- |
| 64 | + |
| 65 | +```powershell |
| 66 | +Get-SPOEnterpriseAppInsightsReport –ReportId 9d946216-afe7-49f5-8267-7b662435c70b |
| 67 | +``` |
| 68 | + |
| 69 | +Example 2 enables administrator to view the enterprise application insights report of ReportId: `9d946216-afe7-49f5-8267-7b662435c70b` |
| 70 | + |
| 71 | +### -----------------------EXAMPLE 3----------------------------- |
| 72 | + |
| 73 | +```powershell |
| 74 | +Get-SPOEnterpriseAppInsightsReport – ReportId 9d946216-afe7-49f5-8267-7b662435c70b -Action Download |
| 75 | +``` |
| 76 | + |
| 77 | +Example 3 enables administrator to download the enterprise application insights report of ReportId: `9d946216-afe7-49f5-8267-7b662435c70b` to the same path from where the command was run. |
| 78 | + |
| 79 | +## PARAMETERS |
| 80 | + |
| 81 | +### -ReportId |
| 82 | + |
| 83 | +It is an optional parameter, and it specifies the unique Id of the report to be viewed or downloaded. |
| 84 | + |
| 85 | +```yaml |
| 86 | +Type: Guid |
| 87 | +Parameter Sets: (All) |
| 88 | +Aliases: |
| 89 | +Applicable: SharePoint Online |
| 90 | + |
| 91 | +Required: False |
| 92 | +Position: Named |
| 93 | +Default value: None |
| 94 | +Accept pipeline input: False |
| 95 | +Accept wildcard characters: False |
| 96 | +``` |
| 97 | +
|
| 98 | +### -Action |
| 99 | +
|
| 100 | +It is an optional parameter, and it specifies whether to view or download a specific report. |
| 101 | +
|
| 102 | +```yaml |
| 103 | +Type: ActionType |
| 104 | +Parameter Sets: (All) |
| 105 | +Aliases: |
| 106 | +Applicable: SharePoint Online |
| 107 | + |
| 108 | +Required: False |
| 109 | +Position: Named |
| 110 | +Default value: None |
| 111 | +Accept pipeline input: False |
| 112 | +Accept wildcard characters: False |
| 113 | +``` |
| 114 | +
|
| 115 | +### CommonParameters |
| 116 | +
|
| 117 | +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/?LinkID=113216). |
| 118 | + |
| 119 | +## RELATED LINKS |
| 120 | + |
| 121 | +[Getting started with SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/connect-sharepoint-online) |
| 122 | + |
| 123 | +[Start-SPOEnterpriseAppInsightsReport](./Start-SPOEnterpriseAppInsightsReport.md) |
0 commit comments