Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +0,0 @@
### Example

```powershell

Import-Module Microsoft.Graph.Beta.Applications

Get-MgBetaServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId

```
This example shows how to use the Get-MgBetaServicePrincipalSynchronizationTemplate Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement

Get-MgBetaDirectoryRemoteTenantGroup

```
This example shows how to use the Get-MgBetaDirectoryRemoteTenantGroup Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Identity.Governance

Clear-MgBetaIdentityGovernanceLifecycleWorkflowQuarantine -WorkflowId $workflowId

```
This example shows how to use the Clear-MgBetaIdentityGovernanceLifecycleWorkflowQuarantine Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: List user-centric access review definitions

```powershell

Import-Module Microsoft.Graph.Beta.Identity.Governance

Get-MgBetaIdentityGovernanceAccessReviewUnifiedDefinition

```
This example will list user-centric access review definitions

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Get a subjectProcessingResult

```powershell

Import-Module Microsoft.Graph.Beta.Identity.Governance

Get-MgBetaIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResult -WorkflowId $workflowId -RunId $runId -SubjectProcessingResultId $subjectProcessingResultId

```
This example will get a subjectprocessingresult

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Identity.Governance

Clear-MgIdentityGovernanceLifecycleWorkflowQuarantine -WorkflowId $workflowId

```
This example shows how to use the Clear-MgIdentityGovernanceLifecycleWorkflowQuarantine Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Reports

$params = @{
metric = "egressReport"
}

Disable-MgBetaAdminReportSettingSharePointApiUsageReport -BodyParameter $params

```
This example shows how to use the Disable-MgBetaAdminReportSettingSharePointApiUsageReport Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Reports

$params = @{
metric = "egressReport"
}

Enable-MgBetaAdminReportSettingSharePointApiUsageReport -BodyParameter $params

```
This example shows how to use the Enable-MgBetaAdminReportSettingSharePointApiUsageReport Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Reports

Get-MgBetaAdminReportSettingSharePointApiUsageReportMetric

```
This example shows how to use the Get-MgBetaAdminReportSettingSharePointApiUsageReportMetric Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Reports

Get-MgBetaAuditLogAuditActivityType

```
This example shows how to use the Get-MgBetaAuditLogAuditActivityType Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Reports

Get-MgBetaAuditLogSignInEventAppSummary

```
This example shows how to use the Get-MgBetaAuditLogSignInEventAppSummary Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Reports

Get-MgBetaAuditLogSignInEventSummary

```
This example shows how to use the Get-MgBetaAuditLogSignInEventSummary Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Reports

Get-MgBetaAuditLogSummarizedMsiSignIn -AggregationWindow $aggregationWindowId

```
This example shows how to use the Get-MgBetaAuditLogSummarizedMsiSignIn Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Reports

Get-MgBetaAuditLogSummarizedNonInteractiveSignIn -AggregationWindow $aggregationWindowId

```
This example shows how to use the Get-MgBetaAuditLogSummarizedNonInteractiveSignIn Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Reports

Get-MgBetaAuditLogSummarizedServicePrincipalSignIn -AggregationWindow $aggregationWindowId

```
This example shows how to use the Get-MgBetaAuditLogSummarizedServicePrincipalSignIn Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Reports

Get-MgBetaReportAzureAdPremiumLicenseInsight

```
This example shows how to use the Get-MgBetaReportAzureAdPremiumLicenseInsight Cmdlet.

11 changes: 11 additions & 0 deletions src/Reports/beta/examples/Get-MgBetaReportCorrelation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Reports

Get-MgBetaReportCorrelation

```
This example shows how to use the Get-MgBetaReportCorrelation Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Reports

Get-MgBetaReportCorrelationIdentity -IdentityCorrelationId $identityCorrelationId

```
This example shows how to use the Get-MgBetaReportCorrelationIdentity Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
### Example 1: Get a list of groupAnalytics objects

```powershell

Import-Module Microsoft.Graph.Beta.Reports

Get-MgBetaReportIdentityAnalyticGroup

```
This example will get a list of groupanalytics objects

### Example 2: Get valid groups that contain guests, with selected properties

```powershell

Import-Module Microsoft.Graph.Beta.Reports

Get-MgBetaReportIdentityAnalyticGroup -Filter "isValidGroup eq true and guestTransitiveUserCount gt 0" -Property "id,displayName,createdDateTime,groupType,transitiveUserCount,guestTransitiveUserCount" -Sort "createdDateTime desc" -Top 10

```
This example will get valid groups that contain guests, with selected properties

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
### Example 1: Get tenant-level summary

```powershell

Import-Module Microsoft.Graph.Beta.Reports

Get-MgBetaReportMicrosoftAppFileStorageContainerUsageSummary

```
This example will get tenant-level summary

### Example 2: Get tenant and geo-level breakdown

```powershell

Import-Module Microsoft.Graph.Beta.Reports

Get-MgBetaReportMicrosoftAppFileStorageContainerUsageSummary -ExpandProperty "usageByDataLocation"

```
This example will get tenant and geo-level breakdown

### Example 3: Get full hierarchy with app-level breakdown

```powershell

Import-Module Microsoft.Graph.Beta.Reports

Get-MgBetaReportMicrosoftAppFileStorageContainerUsageSummary -ExpandProperty "usageByDataLocation(`$expand=usageByApp)"

```
This example will get full hierarchy with app-level breakdown

22 changes: 22 additions & 0 deletions src/Reports/beta/examples/Get-MgBetaReportSharePointApiUsage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Reports

Get-MgBetaReportSharePointApiUsage -Format "application/json"

```
This example shows how to use the Get-MgBetaReportSharePointApiUsage Cmdlet.

### Example 2: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Reports

Get-MgBetaReportSharePointApiUsage

```
This example shows how to use the Get-MgBetaReportSharePointApiUsage Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Security

Disable-MgBetaSecurityCaseEdiscoveryCaseLegalHoldPolicy -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryHoldPolicyId $ediscoveryHoldPolicyId

```
This example shows how to use the Disable-MgBetaSecurityCaseEdiscoveryCaseLegalHoldPolicy Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Security

Enable-MgBetaSecurityCaseEdiscoveryCaseLegalHoldPolicy -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryHoldPolicyId $ediscoveryHoldPolicyId

```
This example shows how to use the Enable-MgBetaSecurityCaseEdiscoveryCaseLegalHoldPolicy Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Security

Get-MgBetaSecurityCaseManagementCase

```
This example shows how to use the Get-MgBetaSecurityCaseManagementCase Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Security

Get-MgBetaSecurityCaseManagementCaseActivity -CaseId $caseId

```
This example shows how to use the Get-MgBetaSecurityCaseManagementCaseActivity Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Security

Get-MgBetaSecurityCaseManagementCaseAttachment -CaseId $caseId

```
This example shows how to use the Get-MgBetaSecurityCaseManagementCaseAttachment Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Security

Get-MgBetaSecurityCaseManagementCaseAttachmentContent -CaseId $caseId -AttachmentId $attachmentId

```
This example shows how to use the Get-MgBetaSecurityCaseManagementCaseAttachmentContent Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Security

Get-MgBetaSecurityCaseManagementCaseRelation -CaseId $caseId

```
This example shows how to use the Get-MgBetaSecurityCaseManagementCaseRelation Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Security

Get-MgBetaSecurityCaseManagementCaseTask -CaseId $caseId

```
This example shows how to use the Get-MgBetaSecurityCaseManagementCaseTask Cmdlet.

Loading
Loading