From 962d256e4e952aa833a361b0c781d32c4f4bdb55 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Fri, 4 Oct 2024 05:01:43 +0000 Subject: [PATCH] Updating examples --- ...ServicePrincipalSynchronizationTemplate.md | 11 +++ .../Set-MgBetaServicePrincipalClaimPolicy.md | 23 +++++ ...pdate-MgBetaServicePrincipalClaimPolicy.md | 1 + ...ServicePrincipalSynchronizationTemplate.md | 11 +++ .../beta/examples/New-MgBetaApproval.md | 11 +++ .../beta/examples/Stop-MgBetaApprovalItem.md | 11 +++ ...tialize-MgBackupRestoreProtectionPolicy.md | 22 +++++ .../Initialize-MgBackupRestoreServiceApp.md | 15 ++++ .../Initialize-MgBackupRestoreSession.md | 11 +++ ...teSolutionBackupRestoreProtectionPolicy.md | 22 +++++ ...activateSolutionBackupRestoreServiceApp.md | 11 +++ .../examples/Search-MgBackupRestorePoint.md | 51 +++++++++++ .../Invoke-MgBetaAnswerCommunicationCall.md | 1 + ...gementVirtualEndpointProvisioningPolicy.md | 5 ++ .../New-MgDeviceManagementRoleDefinition.md | 2 +- ...Update-MgDeviceManagementRoleDefinition.md | 2 +- ...BetaRoleManagementCloudPcRoleDefinition.md | 1 + ...BetaRoleManagementCloudPcRoleDefinition.md | 1 + ...gDeviceManagementDeviceCompliancePolicy.md | 12 +-- ...w-MgDeviceManagementDeviceConfiguration.md | 43 +-------- ...gDeviceManagementDeviceCompliancePolicy.md | 12 +-- ...e-MgDeviceManagementDeviceConfiguration.md | 58 ++++-------- .../New-MgDeviceAppManagementMobileApp.md | 52 +++++++---- ...viceAppManagementManagedEBookAssignment.md | 4 +- .../Update-MgDeviceAppManagementMobileApp.md | 36 ++++---- ...ducationClassRecentlyModifiedSubmission.md | 77 ++++++++++++++++ ...taEducationClassAssignmentCategoryByRef.md | 15 ++++ ...ssignmentCategoryEducationCategoryByRef.md | 11 +++ ...e-MgBetaEducationClassAssignmentSetting.md | 33 +++++++ .../Update-MgBetaDriveItemRetentionLabel.md | 4 +- .../Update-MgDriveItemRetentionLabel.md | 4 +- ...emove-MgBetaGroupCalendarEventPermanent.md | 1 + .../Remove-MgBetaGroupCalendarPermanent.md | 1 + .../Remove-MgBetaGroupEventPermanent.md | 1 + .../Restore-MgDirectoryDeletedItem.md | 19 +++- ...efinitionInheritPermissionFromPrincipal.md | 0 ...nagementDefenderRoleDefinitionPrincipal.md | 0 ...ntityGovernanceLifecycleWorkflowInsight.md | 11 +++ ...ycleWorkflowInsightTaskProcessedSummary.md | 11 +++ ...WorkflowInsightWorkflowProcessedSummary.md | 11 +++ ...ifecycleWorkflowInsightProcessedSummary.md | 11 +++ ...MgEntitlementManagementAssignmentPolicy.md | 89 ++++++++++++++++++- .../New-MgBetaPolicyAppManagementPolicy.md | 9 ++ ...-MgBetaPolicyDefaultAppManagementPolicy.md | 7 ++ ...eportMicrosoft365CopilotUsageUserDetail.md | 22 +++++ ...portMicrosoft365CopilotUserCountSummary.md | 22 +++++ ...ReportMicrosoft365CopilotUserCountTrend.md | 22 +++++ .../examples/Update-MgAdminReportSetting.md | 15 ++++ ...New-MgBetaExternalIndustryDataConnector.md | 22 ++--- ...ate-MgBetaExternalIndustryDataConnector.md | 4 +- ...e-MgBetaExternalIndustryDataInboundFlow.md | 2 +- .../Get-MgBetaSecurityIdentitySensor.md | 11 +++ ...curityIdentitySensorDeploymentAccessKey.md | 11 +++ ...urityIdentitySensorDeploymentPackageUri.md | 11 +++ ...curityIdentitySensorDeploymentAccessKey.md | 11 +++ .../Remove-MgBetaSecurityIdentitySensor.md | 11 +++ .../Update-MgBetaSecurityIdentitySensor.md | 21 +++++ .../Get-MgSecurityIdentityHealthIssue.md | 11 +++ .../Update-MgSecurityIdentityHealthIssue.md | 15 ++++ src/Sites/beta/examples/Get-MgBetaSite.md | 13 ++- .../examples/New-MgTeamChannelMessageReply.md | 29 +++++- .../Remove-MgBetaUserCalendarPermanent.md | 11 +++ ...ontactFolderChildFolderContactPermanent.md | 1 + ...taUserContactFolderChildFolderPermanent.md | 1 + ...MgBetaUserContactFolderContactPermanent.md | 1 + ...Remove-MgBetaUserContactFolderPermanent.md | 11 +++ .../Remove-MgBetaUserContactPermanent.md | 11 +++ ...Remove-MgBetaUserEventInstancePermanent.md | 1 + .../Remove-MgBetaUserEventPermanent.md | 11 +++ ...erMailFolderChildFolderMessagePermanent.md | 1 + ...gBetaUserMailFolderChildFolderPermanent.md | 1 + ...ve-MgBetaUserMailFolderMessagePermanent.md | 1 + .../Remove-MgBetaUserMailFolderPermanent.md | 11 +++ .../Remove-MgBetaUserMessagePermanent.md | 11 +++ ...ve-MgBetaUserOutlookTaskFolderPermanent.md | 11 +++ ...gBetaUserOutlookTaskFolderTaskPermanent.md | 1 + ...UserOutlookTaskGroupTaskFolderPermanent.md | 1 + ...OutlookTaskGroupTaskFolderTaskPermanent.md | 1 + .../Remove-MgBetaUserOutlookTaskPermanent.md | 11 +++ ...rSolutionWorkingTimeScheduleWorkingTime.md | 1 + ...rSolutionWorkingTimeScheduleWorkingTime.md | 1 + ...etaWindowsUpdatesPolicyComplianceChange.md | 2 +- 82 files changed, 930 insertions(+), 169 deletions(-) create mode 100644 src/Applications/beta/examples/Set-MgBetaServicePrincipalClaimPolicy.md create mode 100644 src/Education/beta/examples/Get-MgBetaEducationClassRecentlyModifiedSubmission.md create mode 100644 src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentCategoryEducationCategoryByRef.md create mode 100644 src/Identity.Governance/beta/examples/Invoke-MgBetaAssignedRoleManagementDefenderRoleDefinitionInheritPermissionFromPrincipal.md create mode 100644 src/Identity.Governance/beta/examples/Invoke-MgBetaAssignedRoleManagementDefenderRoleDefinitionPrincipal.md create mode 100644 src/Reports/beta/examples/Get-MgBetaReportMicrosoft365CopilotUsageUserDetail.md create mode 100644 src/Reports/beta/examples/Get-MgBetaReportMicrosoft365CopilotUserCountSummary.md create mode 100644 src/Reports/beta/examples/Get-MgBetaReportMicrosoft365CopilotUserCountTrend.md create mode 100644 src/Security/beta/examples/Get-MgBetaSecurityIdentitySensor.md create mode 100644 src/Security/beta/examples/Get-MgBetaSecurityIdentitySensorDeploymentAccessKey.md create mode 100644 src/Security/beta/examples/Get-MgBetaSecurityIdentitySensorDeploymentPackageUri.md create mode 100644 src/Security/beta/examples/New-MgBetaSecurityIdentitySensorDeploymentAccessKey.md create mode 100644 src/Security/beta/examples/Remove-MgBetaSecurityIdentitySensor.md create mode 100644 src/Security/beta/examples/Update-MgBetaSecurityIdentitySensor.md create mode 100644 src/Security/v1.0/examples/Get-MgSecurityIdentityHealthIssue.md create mode 100644 src/Security/v1.0/examples/Update-MgSecurityIdentityHealthIssue.md create mode 100644 src/Users.Actions/v1.0/examples/Start-MgUserSolutionWorkingTimeScheduleWorkingTime.md create mode 100644 src/Users.Actions/v1.0/examples/Stop-MgUserSolutionWorkingTimeScheduleWorkingTime.md diff --git a/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md b/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md index e69de29bb2d..3f1ed3342cb 100644 --- a/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md +++ b/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md @@ -0,0 +1,11 @@ +### Example + +```powershell + +Import-Module Microsoft.Graph.Beta.Applications + +Get-MgBetaServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId + +``` +This example will### example + diff --git a/src/Applications/beta/examples/Set-MgBetaServicePrincipalClaimPolicy.md b/src/Applications/beta/examples/Set-MgBetaServicePrincipalClaimPolicy.md new file mode 100644 index 00000000000..8b85fa1a940 --- /dev/null +++ b/src/Applications/beta/examples/Set-MgBetaServicePrincipalClaimPolicy.md @@ -0,0 +1,23 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Applications + +$params = @{ + "@odata.type" = "#microsoft.graph.customClaimsPolicy" + includeBasicClaimSet = "Boolean" + includeApplicationIdInIssuer = "Boolean" + audienceOverride = "String" + claims = @( + @{ + "@odata.type" = "microsoft.graph.customClaim" + } + ) +} + +Set-MgBetaServicePrincipalClaimPolicy -ServicePrincipalId $servicePrincipalId -BodyParameter $params + +``` +This example shows how to use the Set-MgBetaServicePrincipalClaimPolicy Cmdlet. + diff --git a/src/Applications/beta/examples/Update-MgBetaServicePrincipalClaimPolicy.md b/src/Applications/beta/examples/Update-MgBetaServicePrincipalClaimPolicy.md index e69de29bb2d..8b137891791 100644 --- a/src/Applications/beta/examples/Update-MgBetaServicePrincipalClaimPolicy.md +++ b/src/Applications/beta/examples/Update-MgBetaServicePrincipalClaimPolicy.md @@ -0,0 +1 @@ + diff --git a/src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationTemplate.md b/src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationTemplate.md index e69de29bb2d..5a774ca1e66 100644 --- a/src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationTemplate.md +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationTemplate.md @@ -0,0 +1,11 @@ +### Example + +```powershell + +Import-Module Microsoft.Graph.Applications + +Get-MgServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId + +``` +This example will### example + diff --git a/src/Bookings/beta/examples/New-MgBetaApproval.md b/src/Bookings/beta/examples/New-MgBetaApproval.md index e69de29bb2d..40eb20cfef3 100644 --- a/src/Bookings/beta/examples/New-MgBetaApproval.md +++ b/src/Bookings/beta/examples/New-MgBetaApproval.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +New-MgBetaApproval + +``` +This example shows how to use the New-MgBetaApproval Cmdlet. + diff --git a/src/Bookings/beta/examples/Stop-MgBetaApprovalItem.md b/src/Bookings/beta/examples/Stop-MgBetaApprovalItem.md index e69de29bb2d..7816afc0367 100644 --- a/src/Bookings/beta/examples/Stop-MgBetaApprovalItem.md +++ b/src/Bookings/beta/examples/Stop-MgBetaApprovalItem.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +Stop-MgBetaApprovalItem -ApprovalItemId $approvalItemId + +``` +This example shows how to use the Stop-MgBetaApprovalItem Cmdlet. + diff --git a/src/Bookings/v1.0/examples/Initialize-MgBackupRestoreProtectionPolicy.md b/src/Bookings/v1.0/examples/Initialize-MgBackupRestoreProtectionPolicy.md index e69de29bb2d..58eb9afa917 100644 --- a/src/Bookings/v1.0/examples/Initialize-MgBackupRestoreProtectionPolicy.md +++ b/src/Bookings/v1.0/examples/Initialize-MgBackupRestoreProtectionPolicy.md @@ -0,0 +1,22 @@ +### Example 1: Activate an inactive protection policy + +```powershell + +Import-Module Microsoft.Graph.Bookings + +Initialize-MgBackupRestoreProtectionPolicy -ProtectionPolicyBaseId $protectionPolicyBaseId + +``` +This example will activate an inactive protection policy + +### Example 2: Activate an active protection policy + +```powershell + +Import-Module Microsoft.Graph.Bookings + +Initialize-MgBackupRestoreProtectionPolicy -ProtectionPolicyBaseId $protectionPolicyBaseId + +``` +This example will activate an active protection policy + diff --git a/src/Bookings/v1.0/examples/Initialize-MgBackupRestoreServiceApp.md b/src/Bookings/v1.0/examples/Initialize-MgBackupRestoreServiceApp.md index e69de29bb2d..f4c753513a1 100644 --- a/src/Bookings/v1.0/examples/Initialize-MgBackupRestoreServiceApp.md +++ b/src/Bookings/v1.0/examples/Initialize-MgBackupRestoreServiceApp.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Bookings + +$params = @{ + effectiveDateTime = [System.DateTime]::Parse("2024-04-19T12:01:03.45Z") +} + +Initialize-MgBackupRestoreServiceApp -ServiceAppId $serviceAppId -BodyParameter $params + +``` +This example shows how to use the Initialize-MgBackupRestoreServiceApp Cmdlet. + diff --git a/src/Bookings/v1.0/examples/Initialize-MgBackupRestoreSession.md b/src/Bookings/v1.0/examples/Initialize-MgBackupRestoreSession.md index e69de29bb2d..d4d59eb7469 100644 --- a/src/Bookings/v1.0/examples/Initialize-MgBackupRestoreSession.md +++ b/src/Bookings/v1.0/examples/Initialize-MgBackupRestoreSession.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Bookings + +Initialize-MgBackupRestoreSession -RestoreSessionBaseId $restoreSessionBaseId + +``` +This example shows how to use the Initialize-MgBackupRestoreSession Cmdlet. + diff --git a/src/Bookings/v1.0/examples/Invoke-MgDeactivateSolutionBackupRestoreProtectionPolicy.md b/src/Bookings/v1.0/examples/Invoke-MgDeactivateSolutionBackupRestoreProtectionPolicy.md index e69de29bb2d..97433d386da 100644 --- a/src/Bookings/v1.0/examples/Invoke-MgDeactivateSolutionBackupRestoreProtectionPolicy.md +++ b/src/Bookings/v1.0/examples/Invoke-MgDeactivateSolutionBackupRestoreProtectionPolicy.md @@ -0,0 +1,22 @@ +### Example 1: Deactivate an active protection policy + +```powershell + +Import-Module Microsoft.Graph.Bookings + +Invoke-MgDeactivateSolutionBackupRestoreProtectionPolicy -ProtectionPolicyBaseId $protectionPolicyBaseId + +``` +This example will deactivate an active protection policy + +### Example 2 : Deactivate a protection policy in updating state + +```powershell + +Import-Module Microsoft.Graph.Bookings + +Invoke-MgDeactivateSolutionBackupRestoreProtectionPolicy -ProtectionPolicyBaseId $protectionPolicyBaseId + +``` +This example will### example 2 : deactivate a protection policy in updating state + diff --git a/src/Bookings/v1.0/examples/Invoke-MgDeactivateSolutionBackupRestoreServiceApp.md b/src/Bookings/v1.0/examples/Invoke-MgDeactivateSolutionBackupRestoreServiceApp.md index e69de29bb2d..455c8f35cd3 100644 --- a/src/Bookings/v1.0/examples/Invoke-MgDeactivateSolutionBackupRestoreServiceApp.md +++ b/src/Bookings/v1.0/examples/Invoke-MgDeactivateSolutionBackupRestoreServiceApp.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Bookings + +Invoke-MgDeactivateSolutionBackupRestoreServiceApp -ServiceAppId $serviceAppId + +``` +This example shows how to use the Invoke-MgDeactivateSolutionBackupRestoreServiceApp Cmdlet. + diff --git a/src/Bookings/v1.0/examples/Search-MgBackupRestorePoint.md b/src/Bookings/v1.0/examples/Search-MgBackupRestorePoint.md index e69de29bb2d..ea36699b983 100644 --- a/src/Bookings/v1.0/examples/Search-MgBackupRestorePoint.md +++ b/src/Bookings/v1.0/examples/Search-MgBackupRestorePoint.md @@ -0,0 +1,51 @@ +### Example 1: Search request + +```powershell + +Import-Module Microsoft.Graph.Bookings + +$params = @{ + protectionUnitIds = @( + "23014d8c-71fe-4d00-a01a-31850bc5b42a" +"43014d8c-71fe-4d00-a01a-31850bc5b42b" +"63014d8c-71fe-4d00-a01a-31850bc5b42c" +"83014d8c-71fe-4d00-a01a-31850bc5b42d" +) +protectionTimePeriod = @{ +startDateTime = [System.DateTime]::Parse("2021-01-01T00:00:00Z") +endDateTime = [System.DateTime]::Parse("2021-01-08T00:00:00Z") +} +restorePointPreference = "latest" +tags = "fastRestore" +} + +Search-MgBackupRestorePoint -BodyParameter $params + +``` +This example will search request + +### Example 2: Search with artifactQuery expression + +```powershell + +Import-Module Microsoft.Graph.Bookings + +$params = @{ + artifactQuery = @{ + queryExpression = "(Sender -eq 'abc@contoso.com') -and (Subject -like '*Check email*' -or Subject -like ' Important') -and (HasAttachment -eq 'true') -and (PitrDumpsterActionTriggeredTime -gt '{2024-09-21T08:20:00.0000000Z}')" + artifactType = "message" + } + protectionUnitIds = @( + "23014d8c-71fe-4d00-a01a-31850bc5b42a" +) +protectionTimePeriod = @{ + startDateTime = [System.DateTime]::Parse("2021-01-01T00:00:00Z") +} +restorePointPreference = "oldest" +} + +Search-MgBackupRestorePoint -BodyParameter $params + +``` +This example will search with artifactquery expression + diff --git a/src/CloudCommunications/beta/examples/Invoke-MgBetaAnswerCommunicationCall.md b/src/CloudCommunications/beta/examples/Invoke-MgBetaAnswerCommunicationCall.md index 3b4eae69bf0..0fd191eb5f1 100644 --- a/src/CloudCommunications/beta/examples/Invoke-MgBetaAnswerCommunicationCall.md +++ b/src/CloudCommunications/beta/examples/Invoke-MgBetaAnswerCommunicationCall.md @@ -16,6 +16,7 @@ $params = @{ callOptions = @{ "@odata.type" = "#microsoft.graph.incomingCallOptions" isContentSharingNotificationEnabled = $true + isDeltaRosterEnabled = $true } participantCapacity = 200 } diff --git a/src/DeviceManagement.Administration/beta/examples/Update-MgBetaDeviceManagementVirtualEndpointProvisioningPolicy.md b/src/DeviceManagement.Administration/beta/examples/Update-MgBetaDeviceManagementVirtualEndpointProvisioningPolicy.md index 2b251cf1cff..8440eeb908b 100644 --- a/src/DeviceManagement.Administration/beta/examples/Update-MgBetaDeviceManagementVirtualEndpointProvisioningPolicy.md +++ b/src/DeviceManagement.Administration/beta/examples/Update-MgBetaDeviceManagementVirtualEndpointProvisioningPolicy.md @@ -25,6 +25,11 @@ $params = @{ autopatch = @{ autopatchGroupId = "91197a0b-3a74-408d-ba88-bce3fdc4e5eb" } + autopilotConfiguration = @{ + devicePreparationProfileId = "59e5d3d2-ec68-4bfe-9693-27975b318990" + applicationTimeoutInMinutes = 30 + onFailureDeviceAccessDenied = $false + } } Update-MgBetaDeviceManagementVirtualEndpointProvisioningPolicy -CloudPcProvisioningPolicyId $cloudPcProvisioningPolicyId -BodyParameter $params diff --git a/src/DeviceManagement.Administration/v1.0/examples/New-MgDeviceManagementRoleDefinition.md b/src/DeviceManagement.Administration/v1.0/examples/New-MgDeviceManagementRoleDefinition.md index 03dfdefb386..f9721e60e36 100644 --- a/src/DeviceManagement.Administration/v1.0/examples/New-MgDeviceManagementRoleDefinition.md +++ b/src/DeviceManagement.Administration/v1.0/examples/New-MgDeviceManagementRoleDefinition.md @@ -5,7 +5,7 @@ Import-Module Microsoft.Graph.DeviceManagement.Administration $params = @{ - "@odata.type" = "#microsoft.graph.roleDefinition" + "@odata.type" = "#microsoft.graph.deviceAndAppManagementRoleDefinition" displayName = "Display Name value" description = "Description value" rolePermissions = @( diff --git a/src/DeviceManagement.Administration/v1.0/examples/Update-MgDeviceManagementRoleDefinition.md b/src/DeviceManagement.Administration/v1.0/examples/Update-MgDeviceManagementRoleDefinition.md index 8005d1d886b..7708e23aa12 100644 --- a/src/DeviceManagement.Administration/v1.0/examples/Update-MgDeviceManagementRoleDefinition.md +++ b/src/DeviceManagement.Administration/v1.0/examples/Update-MgDeviceManagementRoleDefinition.md @@ -5,7 +5,7 @@ Import-Module Microsoft.Graph.DeviceManagement.Administration $params = @{ - "@odata.type" = "#microsoft.graph.roleDefinition" + "@odata.type" = "#microsoft.graph.deviceAndAppManagementRoleDefinition" displayName = "Display Name value" description = "Description value" rolePermissions = @( diff --git a/src/DeviceManagement.Enrollment/beta/examples/New-MgBetaRoleManagementCloudPcRoleDefinition.md b/src/DeviceManagement.Enrollment/beta/examples/New-MgBetaRoleManagementCloudPcRoleDefinition.md index e6096e40cf0..29e20e59596 100644 --- a/src/DeviceManagement.Enrollment/beta/examples/New-MgBetaRoleManagementCloudPcRoleDefinition.md +++ b/src/DeviceManagement.Enrollment/beta/examples/New-MgBetaRoleManagementCloudPcRoleDefinition.md @@ -6,6 +6,7 @@ Import-Module Microsoft.Graph.Beta.DeviceManagement.Enrollment $params = @{ description = "An example custom role" +### Example 2 rolePermissions = @( @{ allowedResourceActions = @( diff --git a/src/DeviceManagement.Enrollment/beta/examples/Update-MgBetaRoleManagementCloudPcRoleDefinition.md b/src/DeviceManagement.Enrollment/beta/examples/Update-MgBetaRoleManagementCloudPcRoleDefinition.md index 8c8958172b0..f6d8a763d09 100644 --- a/src/DeviceManagement.Enrollment/beta/examples/Update-MgBetaRoleManagementCloudPcRoleDefinition.md +++ b/src/DeviceManagement.Enrollment/beta/examples/Update-MgBetaRoleManagementCloudPcRoleDefinition.md @@ -6,6 +6,7 @@ Import-Module Microsoft.Graph.Beta.DeviceManagement.Enrollment $params = @{ description = "Update basic properties and permission of application registrations" +### Example 2 rolePermissions = @( @{ allowedResourceActions = @( diff --git a/src/DeviceManagement/v1.0/examples/New-MgDeviceManagementDeviceCompliancePolicy.md b/src/DeviceManagement/v1.0/examples/New-MgDeviceManagementDeviceCompliancePolicy.md index 162557f5342..bbb0e8307e8 100644 --- a/src/DeviceManagement/v1.0/examples/New-MgDeviceManagementDeviceCompliancePolicy.md +++ b/src/DeviceManagement/v1.0/examples/New-MgDeviceManagementDeviceCompliancePolicy.md @@ -5,27 +5,21 @@ Import-Module Microsoft.Graph.DeviceManagement $params = @{ - "@odata.type" = "#microsoft.graph.macOSCompliancePolicy" + "@odata.type" = "#microsoft.graph.windowsPhone81CompliancePolicy" description = "Description value" displayName = "Display Name value" version = 7 - passwordRequired = $true passwordBlockSimple = $true passwordExpirationDays = passwordMinimumLength = passwordMinutesOfInactivityBeforeLock = - passwordPreviousPasswordBlockCount = passwordMinimumCharacterSetCount = passwordRequiredType = "alphanumeric" + passwordPreviousPasswordBlockCount = + passwordRequired = $true osMinimumVersion = "Os Minimum Version value" osMaximumVersion = "Os Maximum Version value" - systemIntegrityProtectionEnabled = $true - deviceThreatProtectionEnabled = $true - deviceThreatProtectionRequiredSecurityLevel = "secured" storageRequireEncryption = $true - firewallEnabled = $true - firewallBlockAllIncoming = $true - firewallEnableStealthMode = $true } New-MgDeviceManagementDeviceCompliancePolicy -BodyParameter $params diff --git a/src/DeviceManagement/v1.0/examples/New-MgDeviceManagementDeviceConfiguration.md b/src/DeviceManagement/v1.0/examples/New-MgDeviceManagementDeviceConfiguration.md index 9d502306eb7..17ad1beae27 100644 --- a/src/DeviceManagement/v1.0/examples/New-MgDeviceManagementDeviceConfiguration.md +++ b/src/DeviceManagement/v1.0/examples/New-MgDeviceManagementDeviceConfiguration.md @@ -5,50 +5,11 @@ Import-Module Microsoft.Graph.DeviceManagement $params = @{ - "@odata.type" = "#microsoft.graph.windowsUpdateForBusinessConfiguration" + "@odata.type" = "#microsoft.graph.windows10EnterpriseModernAppManagementConfiguration" description = "Description value" displayName = "Display Name value" version = 7 - deliveryOptimizationMode = "httpOnly" - prereleaseFeatures = "settingsOnly" - automaticUpdateMode = "notifyDownload" - microsoftUpdateServiceAllowed = $true - driversExcluded = $true - installationSchedule = @{ - "@odata.type" = "microsoft.graph.windowsUpdateScheduledInstall" - scheduledInstallDay = "everyday" - scheduledInstallTime = "11:59:31.3170000" - } - qualityUpdatesDeferralPeriodInDays = - featureUpdatesDeferralPeriodInDays = - qualityUpdatesPaused = $true - featureUpdatesPaused = $true - qualityUpdatesPauseExpiryDateTime = "2017-01-01T00:00:22.9594683-08:00" - featureUpdatesPauseExpiryDateTime = "2016-12-31T23:58:08.068669-08:00" - businessReadyUpdatesOnly = "all" - skipChecksBeforeRestart = $true - updateWeeks = "firstWeek" - qualityUpdatesPauseStartDate = "2016-12-31" - featureUpdatesPauseStartDate = "2016-12-31" - featureUpdatesRollbackWindowInDays = - qualityUpdatesWillBeRolledBack = $true - featureUpdatesWillBeRolledBack = $true - qualityUpdatesRollbackStartDateTime = "2016-12-31T23:57:01.05526-08:00" - featureUpdatesRollbackStartDateTime = "2017-01-01T00:03:21.6080517-08:00" - engagedRestartDeadlineInDays = - engagedRestartSnoozeScheduleInDays = - engagedRestartTransitionScheduleInDays = - deadlineForFeatureUpdatesInDays = - deadlineForQualityUpdatesInDays = - deadlineGracePeriodInDays = - postponeRebootUntilAfterDeadline = $true - autoRestartNotificationDismissal = "automatic" - scheduleRestartWarningInHours = - scheduleImminentRestartWarningInMinutes = - userPauseAccess = "enabled" - userWindowsUpdateScanAccess = "enabled" - updateNotificationLevel = "defaultNotifications" - allowWindows11Upgrade = $true + uninstallBuiltInApps = $true } New-MgDeviceManagementDeviceConfiguration -BodyParameter $params diff --git a/src/DeviceManagement/v1.0/examples/Update-MgDeviceManagementDeviceCompliancePolicy.md b/src/DeviceManagement/v1.0/examples/Update-MgDeviceManagementDeviceCompliancePolicy.md index 3617b2ef9eb..152b403d051 100644 --- a/src/DeviceManagement/v1.0/examples/Update-MgDeviceManagementDeviceCompliancePolicy.md +++ b/src/DeviceManagement/v1.0/examples/Update-MgDeviceManagementDeviceCompliancePolicy.md @@ -5,27 +5,21 @@ Import-Module Microsoft.Graph.DeviceManagement $params = @{ - "@odata.type" = "#microsoft.graph.macOSCompliancePolicy" + "@odata.type" = "#microsoft.graph.windowsPhone81CompliancePolicy" description = "Description value" displayName = "Display Name value" version = 7 - passwordRequired = $true passwordBlockSimple = $true passwordExpirationDays = passwordMinimumLength = passwordMinutesOfInactivityBeforeLock = - passwordPreviousPasswordBlockCount = passwordMinimumCharacterSetCount = passwordRequiredType = "alphanumeric" + passwordPreviousPasswordBlockCount = + passwordRequired = $true osMinimumVersion = "Os Minimum Version value" osMaximumVersion = "Os Maximum Version value" - systemIntegrityProtectionEnabled = $true - deviceThreatProtectionEnabled = $true - deviceThreatProtectionRequiredSecurityLevel = "secured" storageRequireEncryption = $true - firewallEnabled = $true - firewallBlockAllIncoming = $true - firewallEnableStealthMode = $true } Update-MgDeviceManagementDeviceCompliancePolicy -DeviceCompliancePolicyId $deviceCompliancePolicyId -BodyParameter $params diff --git a/src/DeviceManagement/v1.0/examples/Update-MgDeviceManagementDeviceConfiguration.md b/src/DeviceManagement/v1.0/examples/Update-MgDeviceManagementDeviceConfiguration.md index 1f25f3711d0..829adbdfa38 100644 --- a/src/DeviceManagement/v1.0/examples/Update-MgDeviceManagementDeviceConfiguration.md +++ b/src/DeviceManagement/v1.0/examples/Update-MgDeviceManagementDeviceConfiguration.md @@ -5,50 +5,28 @@ Import-Module Microsoft.Graph.DeviceManagement $params = @{ - "@odata.type" = "#microsoft.graph.windowsUpdateForBusinessConfiguration" + "@odata.type" = "#microsoft.graph.sharedPCConfiguration" description = "Description value" displayName = "Display Name value" version = 7 - deliveryOptimizationMode = "httpOnly" - prereleaseFeatures = "settingsOnly" - automaticUpdateMode = "notifyDownload" - microsoftUpdateServiceAllowed = $true - driversExcluded = $true - installationSchedule = @{ - "@odata.type" = "microsoft.graph.windowsUpdateScheduledInstall" - scheduledInstallDay = "everyday" - scheduledInstallTime = "11:59:31.3170000" + accountManagerPolicy = @{ + "@odata.type" = "microsoft.graph.sharedPCAccountManagerPolicy" + accountDeletionPolicy = "diskSpaceThreshold" + cacheAccountsAboveDiskFreePercentage = + inactiveThresholdDays = + removeAccountsBelowDiskFreePercentage = } - qualityUpdatesDeferralPeriodInDays = - featureUpdatesDeferralPeriodInDays = - qualityUpdatesPaused = $true - featureUpdatesPaused = $true - qualityUpdatesPauseExpiryDateTime = "2017-01-01T00:00:22.9594683-08:00" - featureUpdatesPauseExpiryDateTime = "2016-12-31T23:58:08.068669-08:00" - businessReadyUpdatesOnly = "all" - skipChecksBeforeRestart = $true - updateWeeks = "firstWeek" - qualityUpdatesPauseStartDate = "2016-12-31" - featureUpdatesPauseStartDate = "2016-12-31" - featureUpdatesRollbackWindowInDays = - qualityUpdatesWillBeRolledBack = $true - featureUpdatesWillBeRolledBack = $true - qualityUpdatesRollbackStartDateTime = "2016-12-31T23:57:01.05526-08:00" - featureUpdatesRollbackStartDateTime = "2017-01-01T00:03:21.6080517-08:00" - engagedRestartDeadlineInDays = - engagedRestartSnoozeScheduleInDays = - engagedRestartTransitionScheduleInDays = - deadlineForFeatureUpdatesInDays = - deadlineForQualityUpdatesInDays = - deadlineGracePeriodInDays = - postponeRebootUntilAfterDeadline = $true - autoRestartNotificationDismissal = "automatic" - scheduleRestartWarningInHours = - scheduleImminentRestartWarningInMinutes = - userPauseAccess = "enabled" - userWindowsUpdateScanAccess = "enabled" - updateNotificationLevel = "defaultNotifications" - allowWindows11Upgrade = $true + allowedAccounts = "domain" + allowLocalStorage = $true + disableAccountManager = $true + disableEduPolicies = $true + disablePowerPolicies = $true + disableSignInOnResume = $true + enabled = $true + idleTimeBeforeSleepInSeconds = + kioskAppDisplayName = "Kiosk App Display Name value" + kioskAppUserModelId = "Kiosk App User Model Id value" + maintenanceStartTime = "11:59:24.7240000" } Update-MgDeviceManagementDeviceConfiguration -DeviceConfigurationId $deviceConfigurationId -BodyParameter $params diff --git a/src/Devices.CorporateManagement/v1.0/examples/New-MgDeviceAppManagementMobileApp.md b/src/Devices.CorporateManagement/v1.0/examples/New-MgDeviceAppManagementMobileApp.md index 31ebc53f88a..4808e3fcd9e 100644 --- a/src/Devices.CorporateManagement/v1.0/examples/New-MgDeviceAppManagementMobileApp.md +++ b/src/Devices.CorporateManagement/v1.0/examples/New-MgDeviceAppManagementMobileApp.md @@ -5,7 +5,7 @@ Import-Module Microsoft.Graph.Devices.CorporateManagement $params = @{ - "@odata.type" = "#microsoft.graph.androidStoreApp" + "@odata.type" = "#microsoft.graph.macOSLobApp" displayName = "Display Name value" description = "Description value" publisher = "Publisher value" @@ -21,27 +21,41 @@ $params = @{ developer = "Developer value" notes = "Notes value" publishingState = "processing" - packageId = "Package Id value" - appStoreUrl = "https://example.com/appStoreUrl/" + committedContentVersion = "Committed Content Version value" + fileName = "File Name value" + size = + bundleId = "Bundle Id value" minimumSupportedOperatingSystem = @{ - "@odata.type" = "microsoft.graph.androidMinimumOperatingSystem" - v4_0 = $true - v4_0_3 = $true - v4_1 = $true - v4_2 = $true - v4_3 = $true - v4_4 = $true - v5_0 = $true - v5_1 = $true - v6_0 = $true - v7_0 = $true - v7_1 = $true - v8_0 = $true - v8_1 = $true - v9_0 = $true - v10_0 = $true + "@odata.type" = "microsoft.graph.macOSMinimumOperatingSystem" + v10_7 = $true + v10_8 = $true + v10_9 = $true + v10_10 = $true + v10_11 = $true + v10_12 = $true + v10_13 = $true + v10_14 = $true + v10_15 = $true v11_0 = $true + v12_0 = $true + v13_0 = $true } + buildNumber = "Build Number value" + versionNumber = "Version Number value" + childApps = @( + @{ + "@odata.type" = "microsoft.graph.macOSLobChildApp" + bundleId = "Bundle Id value" + buildNumber = "Build Number value" + versionNumber = "Version Number value" + } + ) + md5HashChunkSize = + md5Hash = @( + "Md5Hash value" +) +ignoreVersionDetection = $true +installAsManaged = $true } New-MgDeviceAppManagementMobileApp -BodyParameter $params diff --git a/src/Devices.CorporateManagement/v1.0/examples/Update-MgDeviceAppManagementManagedEBookAssignment.md b/src/Devices.CorporateManagement/v1.0/examples/Update-MgDeviceAppManagementManagedEBookAssignment.md index cccce087c1b..c7d18f2c70d 100644 --- a/src/Devices.CorporateManagement/v1.0/examples/Update-MgDeviceAppManagementManagedEBookAssignment.md +++ b/src/Devices.CorporateManagement/v1.0/examples/Update-MgDeviceAppManagementManagedEBookAssignment.md @@ -5,9 +5,9 @@ Import-Module Microsoft.Graph.Devices.CorporateManagement $params = @{ - "@odata.type" = "#microsoft.graph.iosVppEBookAssignment" + "@odata.type" = "#microsoft.graph.managedEBookAssignment" target = @{ - "@odata.type" = "microsoft.graph.deviceAndAppManagementAssignmentTarget" + "@odata.type" = "microsoft.graph.allLicensedUsersAssignmentTarget" } installIntent = "required" } diff --git a/src/Devices.CorporateManagement/v1.0/examples/Update-MgDeviceAppManagementMobileApp.md b/src/Devices.CorporateManagement/v1.0/examples/Update-MgDeviceAppManagementMobileApp.md index 80da8755774..4968985418e 100644 --- a/src/Devices.CorporateManagement/v1.0/examples/Update-MgDeviceAppManagementMobileApp.md +++ b/src/Devices.CorporateManagement/v1.0/examples/Update-MgDeviceAppManagementMobileApp.md @@ -5,7 +5,7 @@ Import-Module Microsoft.Graph.Devices.CorporateManagement $params = @{ - "@odata.type" = "#microsoft.graph.iosLobApp" + "@odata.type" = "#microsoft.graph.managedAndroidStoreApp" displayName = "Display Name value" description = "Description value" publisher = "Publisher value" @@ -21,29 +21,29 @@ $params = @{ developer = "Developer value" notes = "Notes value" publishingState = "processing" - committedContentVersion = "Committed Content Version value" - fileName = "File Name value" - size = - bundleId = "Bundle Id value" - applicableDeviceType = @{ - "@odata.type" = "microsoft.graph.iosDeviceType" - iPad = $true - iPhoneAndIPod = $true - } + appAvailability = "lineOfBusiness" + version = "Version value" + packageId = "Package Id value" + appStoreUrl = "https://example.com/appStoreUrl/" minimumSupportedOperatingSystem = @{ - "@odata.type" = "microsoft.graph.iosMinimumOperatingSystem" + "@odata.type" = "microsoft.graph.androidMinimumOperatingSystem" + v4_0 = $true + v4_0_3 = $true + v4_1 = $true + v4_2 = $true + v4_3 = $true + v4_4 = $true + v5_0 = $true + v5_1 = $true + v6_0 = $true + v7_0 = $true + v7_1 = $true v8_0 = $true + v8_1 = $true v9_0 = $true v10_0 = $true v11_0 = $true - v12_0 = $true - v13_0 = $true - v14_0 = $true - v15_0 = $true } - expirationDateTime = "2016-12-31T23:57:57.2481234-08:00" - versionNumber = "Version Number value" - buildNumber = "Build Number value" } Update-MgDeviceAppManagementMobileApp -MobileAppId $mobileAppId -BodyParameter $params diff --git a/src/Education/beta/examples/Get-MgBetaEducationClassRecentlyModifiedSubmission.md b/src/Education/beta/examples/Get-MgBetaEducationClassRecentlyModifiedSubmission.md new file mode 100644 index 00000000000..42f8c501be6 --- /dev/null +++ b/src/Education/beta/examples/Get-MgBetaEducationClassRecentlyModifiedSubmission.md @@ -0,0 +1,77 @@ +### Example 1: Get recently modified submissions + +```powershell + +Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassRecentlyModifiedSubmission -EducationClassId $educationClassId + +``` +This example will get recently modified submissions + +### Example 2: Get recently modified submissions with `$select` and `$filter` options on assignmentId property + +```powershell + +Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassRecentlyModifiedSubmission -EducationClassId $educationClassId -Filter "assignmentId eq 'b20d6737-f88e-4892-8174-73aa26d18784'" -Property "LastModifiedDateTime,status" + +``` +This example will get recently modified submissions with `$select` and `$filter` options on assignmentid property + +### Example 3: Get recently modified submissions with `$expand` option + +```powershell + +Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassRecentlyModifiedSubmission -EducationClassId $educationClassId -ExpandProperty "outcomes" + +``` +This example will get recently modified submissions with `$expand` option + +### Example 4: Get recently modified submissions with `$filter` option + +```powershell + +Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassRecentlyModifiedSubmission -EducationClassId $educationClassId -Filter "status eq 'working'" + +``` +This example will get recently modified submissions with `$filter` option + +### Example 5: Get recently modified submissions with `$orderby` and `$top` options + +```powershell + +Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassRecentlyModifiedSubmission -EducationClassId $educationClassId -Sort "lastModifiedDateTime" -Top 1 + +``` +This example will get recently modified submissions with `$orderby` and `$top` options + +### Example 6: Get recently modified submissions with `$select` option + +```powershell + +Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassRecentlyModifiedSubmission -EducationClassId $educationClassId -Property "excusedDateTime" + +``` +This example will get recently modified submissions with `$select` option + +### Example 7: Get recently modified submissions with `$filter` option for a range on lastModifiedDateTime property + +```powershell + +Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassRecentlyModifiedSubmission -EducationClassId $educationClassId -Filter "lastModifiedDateTime gt 2024-08-25T20:45:51.3485047Z and lastModifiedDateTime lt 2024-08-28T20:45:51.3485047Z" + +``` +This example will get recently modified submissions with `$filter` option for a range on lastmodifieddatetime property + diff --git a/src/Education/beta/examples/New-MgBetaEducationClassAssignmentCategoryByRef.md b/src/Education/beta/examples/New-MgBetaEducationClassAssignmentCategoryByRef.md index e69de29bb2d..4d1ab2a6c4c 100644 --- a/src/Education/beta/examples/New-MgBetaEducationClassAssignmentCategoryByRef.md +++ b/src/Education/beta/examples/New-MgBetaEducationClassAssignmentCategoryByRef.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + "@odata.id" = "https://graph.microsoft.com/beta/education/classes/37d99af7-cfc5-4e3b-8566-f7d40e4a2070/assignmentCategories/39e3d9dc-7244-42d7-8b4d-1071aae5eb41" +} + +New-MgBetaEducationClassAssignmentCategoryByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params + +``` +This example shows how to use the New-MgBetaEducationClassAssignmentCategoryByRef Cmdlet. + diff --git a/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentCategoryEducationCategoryByRef.md b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentCategoryEducationCategoryByRef.md new file mode 100644 index 00000000000..0aedeefb501 --- /dev/null +++ b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentCategoryEducationCategoryByRef.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Education + +Remove-MgBetaEducationClassAssignmentCategoryEducationCategoryByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationCategoryId $educationCategoryId + +``` +This example shows how to use the Remove-MgBetaEducationClassAssignmentCategoryEducationCategoryByRef Cmdlet. + diff --git a/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentSetting.md b/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentSetting.md index e03c3356066..f3a09a94768 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentSetting.md +++ b/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentSetting.md @@ -41,3 +41,36 @@ Update-MgBetaEducationClassAssignmentSetting -EducationClassId $educationClassId ``` This example shows how to use the Update-MgBetaEducationClassAssignmentSetting Cmdlet. +### Example 3: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + "gradingCategories@delta" = @( + @{ + id = "fb859cd3-943b-4cd6-9bbe-fe1c39eace0e" + displayName = "Lab Test" + } + @{ + "@odata.context" = "https://graph.microsoft.com/beta/$metadata#gradingCategories/$deletedEntity" + id = "e2a86277-24f9-4f29-8196-8c83fc69d00d" + reason = "deleted" + } + @{ + displayName = "Lab Practice" + percentageWeight = + } + @{ + displayName = "Lab Theory" + percentageWeight = + } + ) +} + +Update-MgBetaEducationClassAssignmentSetting -EducationClassId $educationClassId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaEducationClassAssignmentSetting Cmdlet. + diff --git a/src/Files/beta/examples/Update-MgBetaDriveItemRetentionLabel.md b/src/Files/beta/examples/Update-MgBetaDriveItemRetentionLabel.md index 50f0d9d2200..f87bb75b398 100644 --- a/src/Files/beta/examples/Update-MgBetaDriveItemRetentionLabel.md +++ b/src/Files/beta/examples/Update-MgBetaDriveItemRetentionLabel.md @@ -5,7 +5,9 @@ Import-Module Microsoft.Graph.Beta.Files $params = @{ - name = "Retention label for Contracts" + retentionSettings = @{ + isRecordLocked = $true + } } Update-MgBetaDriveItemRetentionLabel -DriveId $driveId -DriveItemId $driveItemId -BodyParameter $params diff --git a/src/Files/v1.0/examples/Update-MgDriveItemRetentionLabel.md b/src/Files/v1.0/examples/Update-MgDriveItemRetentionLabel.md index 19d864c9ee6..0315a90f95f 100644 --- a/src/Files/v1.0/examples/Update-MgDriveItemRetentionLabel.md +++ b/src/Files/v1.0/examples/Update-MgDriveItemRetentionLabel.md @@ -5,7 +5,9 @@ Import-Module Microsoft.Graph.Files $params = @{ - name = "Retention label for Contracts" + retentionSettings = @{ + isRecordLocked = $true + } } Update-MgDriveItemRetentionLabel -DriveId $driveId -DriveItemId $driveItemId -BodyParameter $params diff --git a/src/Groups/beta/examples/Remove-MgBetaGroupCalendarEventPermanent.md b/src/Groups/beta/examples/Remove-MgBetaGroupCalendarEventPermanent.md index e69de29bb2d..8b137891791 100644 --- a/src/Groups/beta/examples/Remove-MgBetaGroupCalendarEventPermanent.md +++ b/src/Groups/beta/examples/Remove-MgBetaGroupCalendarEventPermanent.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Remove-MgBetaGroupCalendarPermanent.md b/src/Groups/beta/examples/Remove-MgBetaGroupCalendarPermanent.md index e69de29bb2d..8b137891791 100644 --- a/src/Groups/beta/examples/Remove-MgBetaGroupCalendarPermanent.md +++ b/src/Groups/beta/examples/Remove-MgBetaGroupCalendarPermanent.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Remove-MgBetaGroupEventPermanent.md b/src/Groups/beta/examples/Remove-MgBetaGroupEventPermanent.md index e69de29bb2d..8b137891791 100644 --- a/src/Groups/beta/examples/Remove-MgBetaGroupEventPermanent.md +++ b/src/Groups/beta/examples/Remove-MgBetaGroupEventPermanent.md @@ -0,0 +1 @@ + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Restore-MgDirectoryDeletedItem.md b/src/Identity.DirectoryManagement/v1.0/examples/Restore-MgDirectoryDeletedItem.md index 6019bafe14d..f6a87570ec9 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Restore-MgDirectoryDeletedItem.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Restore-MgDirectoryDeletedItem.md @@ -1,4 +1,4 @@ -### Example 1: Code snippet +### Example 1: Restore a deleted item ```powershell @@ -7,5 +7,20 @@ Import-Module Microsoft.Graph.Identity.DirectoryManagement Restore-MgDirectoryDeletedItem -DirectoryObjectId $directoryObjectId ``` -This example shows how to use the Restore-MgDirectoryDeletedItem Cmdlet. +This example will restore a deleted item + +### Example 2: Restore a deleted item and remove any conflicting proxy addresses + +```powershell + +Import-Module Microsoft.Graph.Identity.DirectoryManagement + +$params = @{ + autoReconcileProxyConflict = $true +} + +Restore-MgDirectoryDeletedItem -DirectoryObjectId $directoryObjectId -BodyParameter $params + +``` +This example will restore a deleted item and remove any conflicting proxy addresses diff --git a/src/Identity.Governance/beta/examples/Invoke-MgBetaAssignedRoleManagementDefenderRoleDefinitionInheritPermissionFromPrincipal.md b/src/Identity.Governance/beta/examples/Invoke-MgBetaAssignedRoleManagementDefenderRoleDefinitionInheritPermissionFromPrincipal.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Identity.Governance/beta/examples/Invoke-MgBetaAssignedRoleManagementDefenderRoleDefinitionPrincipal.md b/src/Identity.Governance/beta/examples/Invoke-MgBetaAssignedRoleManagementDefenderRoleDefinitionPrincipal.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Identity.Governance/v1.0/examples/Invoke-MgGraphIdentityGovernanceLifecycleWorkflowInsight.md b/src/Identity.Governance/v1.0/examples/Invoke-MgGraphIdentityGovernanceLifecycleWorkflowInsight.md index e69de29bb2d..60fced3f80e 100644 --- a/src/Identity.Governance/v1.0/examples/Invoke-MgGraphIdentityGovernanceLifecycleWorkflowInsight.md +++ b/src/Identity.Governance/v1.0/examples/Invoke-MgGraphIdentityGovernanceLifecycleWorkflowInsight.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.Governance + +Invoke-MgGraphIdentityGovernanceLifecycleWorkflowInsight + +``` +This example shows how to use the Invoke-MgGraphIdentityGovernanceLifecycleWorkflowInsight Cmdlet. + diff --git a/src/Identity.Governance/v1.0/examples/Invoke-MgTopIdentityGovernanceLifecycleWorkflowInsightTaskProcessedSummary.md b/src/Identity.Governance/v1.0/examples/Invoke-MgTopIdentityGovernanceLifecycleWorkflowInsightTaskProcessedSummary.md index e69de29bb2d..da956ae4d61 100644 --- a/src/Identity.Governance/v1.0/examples/Invoke-MgTopIdentityGovernanceLifecycleWorkflowInsightTaskProcessedSummary.md +++ b/src/Identity.Governance/v1.0/examples/Invoke-MgTopIdentityGovernanceLifecycleWorkflowInsightTaskProcessedSummary.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.Governance + +Invoke-MgTopIdentityGovernanceLifecycleWorkflowInsightTaskProcessedSummary + +``` +This example shows how to use the Invoke-MgTopIdentityGovernanceLifecycleWorkflowInsightTaskProcessedSummary Cmdlet. + diff --git a/src/Identity.Governance/v1.0/examples/Invoke-MgTopIdentityGovernanceLifecycleWorkflowInsightWorkflowProcessedSummary.md b/src/Identity.Governance/v1.0/examples/Invoke-MgTopIdentityGovernanceLifecycleWorkflowInsightWorkflowProcessedSummary.md index e69de29bb2d..7582ab61482 100644 --- a/src/Identity.Governance/v1.0/examples/Invoke-MgTopIdentityGovernanceLifecycleWorkflowInsightWorkflowProcessedSummary.md +++ b/src/Identity.Governance/v1.0/examples/Invoke-MgTopIdentityGovernanceLifecycleWorkflowInsightWorkflowProcessedSummary.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.Governance + +Invoke-MgTopIdentityGovernanceLifecycleWorkflowInsightWorkflowProcessedSummary + +``` +This example shows how to use the Invoke-MgTopIdentityGovernanceLifecycleWorkflowInsightWorkflowProcessedSummary Cmdlet. + diff --git a/src/Identity.Governance/v1.0/examples/Invoke-MgWorkflowIdentityGovernanceLifecycleWorkflowInsightProcessedSummary.md b/src/Identity.Governance/v1.0/examples/Invoke-MgWorkflowIdentityGovernanceLifecycleWorkflowInsightProcessedSummary.md index e69de29bb2d..ffd3beaa833 100644 --- a/src/Identity.Governance/v1.0/examples/Invoke-MgWorkflowIdentityGovernanceLifecycleWorkflowInsightProcessedSummary.md +++ b/src/Identity.Governance/v1.0/examples/Invoke-MgWorkflowIdentityGovernanceLifecycleWorkflowInsightProcessedSummary.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.Governance + +Invoke-MgWorkflowIdentityGovernanceLifecycleWorkflowInsightProcessedSummary + +``` +This example shows how to use the Invoke-MgWorkflowIdentityGovernanceLifecycleWorkflowInsightProcessedSummary Cmdlet. + diff --git a/src/Identity.Governance/v1.0/examples/Set-MgEntitlementManagementAssignmentPolicy.md b/src/Identity.Governance/v1.0/examples/Set-MgEntitlementManagementAssignmentPolicy.md index db92c0c54eb..0230ae6f0e6 100644 --- a/src/Identity.Governance/v1.0/examples/Set-MgEntitlementManagementAssignmentPolicy.md +++ b/src/Identity.Governance/v1.0/examples/Set-MgEntitlementManagementAssignmentPolicy.md @@ -1,4 +1,4 @@ -### Example 1: Code snippet +### Example 1: Update the details of a policy ```powershell @@ -63,5 +63,90 @@ $params = @{ Set-MgEntitlementManagementAssignmentPolicy -AccessPackageAssignmentPolicyId $accessPackageAssignmentPolicyId -BodyParameter $params ``` -This example shows how to use the Set-MgEntitlementManagementAssignmentPolicy Cmdlet. +This example will update the details of a policy + +### Example 2: Remove the customExtensionStageSettings from a policy + +```powershell + +Import-Module Microsoft.Graph.Identity.Governance + +$params = @{ + id = "5540a08f-8ab5-43f6-a923-015275799197" + displayName = "policy with access package custom workflow extension" + description = "Run specified access package custom workflow extension at different stages." + accessPackageId = "ba5807c7-2aa9-4c8a-907e-4a17ee587500" + expiration = @{ + type = "afterDuration" + duration = "P365D" + } + requestApprovalSettings = $null + requestorSettings = @{ + acceptRequests = $true + scopeType = "AllExistingDirectorySubjects" + allowedRequestors = @( + ) + } + accessReviewSettings = $null + customExtensionStageSettings = @( + ) +} + +Set-MgEntitlementManagementAssignmentPolicy -AccessPackageAssignmentPolicyId $accessPackageAssignmentPolicyId -BodyParameter $params + +``` +This example will remove the customextensionstagesettings from a policy + +### Example 3: Update the customExtensionStageSettings for a policy + +```powershell + +Import-Module Microsoft.Graph.Identity.Governance + +$params = @{ + displayName = "API Created policy with updated customExtensionStageSettings" + description = "policy with updated customExtensionStageSettings" + allowedTargetScope = "notSpecified" + specificAllowedTargets = @( + ) + expiration = @{ + endDateTime = $null + duration = $null + type = "noExpiration" + } + requestorSettings = @{ + enableTargetsToSelfAddAccess = $false + enableTargetsToSelfUpdateAccess = $false + enableTargetsToSelfRemoveAccess = $false + allowCustomAssignmentSchedule = $true + enableOnBehalfRequestorsToAddAccess = $false + enableOnBehalfRequestorsToUpdateAccess = $false + enableOnBehalfRequestorsToRemoveAccess = $false + onBehalfRequestors = @( + ) + } + requestApprovalSettings = @{ + isApprovalRequiredForAdd = $false + isApprovalRequiredForUpdate = $false + stages = @( + ) + } + accessPackage = @{ + id = "f9afd2e3-7486-40df-9c35-aa2ae108c495" + } + customExtensionStageSettings = @( + @{ + stage = "assignmentRequestCreated" + customExtension = @{ + "@odata.type" = "#microsoft.graph.accessPackageAssignmentRequestWorkflowExtension" + id = "bebe7873-1f0d-4db9-b6c3-01f7ebfe8476" + } + } + ) +} + +Set-MgEntitlementManagementAssignmentPolicy -AccessPackageAssignmentPolicyId $accessPackageAssignmentPolicyId -BodyParameter $params + +``` +This example will update the customextensionstagesettings for a policy diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyAppManagementPolicy.md b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyAppManagementPolicy.md index 036adb5f2f6..c24dd54bda9 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyAppManagementPolicy.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyAppManagementPolicy.md @@ -47,6 +47,15 @@ $params = @{ maxLifetime = $null } ) +applicationRestrictions = @{ + identifierUris = @{ + nonDefaultUriAddition = @{ + restrictForAppsCreatedAfterDateTime = "2024-01-01T10:37:00Z" + excludeAppsReceivingV2Tokens = $true + excludeSaml = $true + } + } +} } } diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyDefaultAppManagementPolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyDefaultAppManagementPolicy.md index 9a38cae1c1c..62e0b0693a7 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyDefaultAppManagementPolicy.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyDefaultAppManagementPolicy.md @@ -50,6 +50,13 @@ $params = @{ maxLifetime = $null } ) +identifierUris = @{ + nonDefaultUriAddition = @{ + restrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2024-01-01T10:37:00Z") + excludeAppsReceivingV2Tokens = $true + excludeSaml = $true + } +} } } diff --git a/src/Reports/beta/examples/Get-MgBetaReportMicrosoft365CopilotUsageUserDetail.md b/src/Reports/beta/examples/Get-MgBetaReportMicrosoft365CopilotUsageUserDetail.md new file mode 100644 index 00000000000..e67ffcd8bfd --- /dev/null +++ b/src/Reports/beta/examples/Get-MgBetaReportMicrosoft365CopilotUsageUserDetail.md @@ -0,0 +1,22 @@ +### Example 1: CSV output + +```powershell + +Import-Module Microsoft.Graph.Beta.Reports + +Get-MgBetaReportMicrosoft365CopilotUsageUserDetail -Format "text/csv" -Period $periodId + +``` +This example will csv output + +### Example 2: JSON output + +```powershell + +Import-Module Microsoft.Graph.Beta.Reports + +Get-MgBetaReportMicrosoft365CopilotUsageUserDetail -Format "application/json" -Period $periodId + +``` +This example will json output + diff --git a/src/Reports/beta/examples/Get-MgBetaReportMicrosoft365CopilotUserCountSummary.md b/src/Reports/beta/examples/Get-MgBetaReportMicrosoft365CopilotUserCountSummary.md new file mode 100644 index 00000000000..8aeede097ef --- /dev/null +++ b/src/Reports/beta/examples/Get-MgBetaReportMicrosoft365CopilotUserCountSummary.md @@ -0,0 +1,22 @@ +### Example 1: CSV output + +```powershell + +Import-Module Microsoft.Graph.Beta.Reports + +Get-MgBetaReportMicrosoft365CopilotUserCountSummary -Format "text/csv" -Period $periodId + +``` +This example will csv output + +### Example 2: JSON output + +```powershell + +Import-Module Microsoft.Graph.Beta.Reports + +Get-MgBetaReportMicrosoft365CopilotUserCountSummary -Format "application/json" -Period $periodId + +``` +This example will json output + diff --git a/src/Reports/beta/examples/Get-MgBetaReportMicrosoft365CopilotUserCountTrend.md b/src/Reports/beta/examples/Get-MgBetaReportMicrosoft365CopilotUserCountTrend.md new file mode 100644 index 00000000000..2f92a432057 --- /dev/null +++ b/src/Reports/beta/examples/Get-MgBetaReportMicrosoft365CopilotUserCountTrend.md @@ -0,0 +1,22 @@ +### Example 1: CSV output + +```powershell + +Import-Module Microsoft.Graph.Beta.Reports + +Get-MgBetaReportMicrosoft365CopilotUserCountTrend -Format "text/csv" -Period $periodId + +``` +This example will csv output + +### Example 2: JSON output + +```powershell + +Import-Module Microsoft.Graph.Beta.Reports + +Get-MgBetaReportMicrosoft365CopilotUserCountTrend -Format "application/json" -Period $periodId + +``` +This example will json output + diff --git a/src/Reports/v1.0/examples/Update-MgAdminReportSetting.md b/src/Reports/v1.0/examples/Update-MgAdminReportSetting.md index e69de29bb2d..959cea3b497 100644 --- a/src/Reports/v1.0/examples/Update-MgAdminReportSetting.md +++ b/src/Reports/v1.0/examples/Update-MgAdminReportSetting.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Reports + +$params = @{ + displayConcealedNames = $true +} + +Update-MgAdminReportSetting -BodyParameter $params + +``` +This example shows how to use the Update-MgAdminReportSetting Cmdlet. + diff --git a/src/Search/beta/examples/New-MgBetaExternalIndustryDataConnector.md b/src/Search/beta/examples/New-MgBetaExternalIndustryDataConnector.md index 2dfd81cbf13..13ad37982f3 100644 --- a/src/Search/beta/examples/New-MgBetaExternalIndustryDataConnector.md +++ b/src/Search/beta/examples/New-MgBetaExternalIndustryDataConnector.md @@ -5,23 +5,13 @@ Import-Module Microsoft.Graph.Beta.Search $params = @{ - "@odata.type" = "#microsoft.graph.industryData.oneRosterApiDataConnector" - displayName = "Generic OAuth2 Connector" - "sourceSystem@odata.bind" = "https://graph.microsoft.com/beta/external/industryData/sourceSystems('c93a6e02-aeb7-437f-cc52-08dc3fc158af')" - apiFormat = "oneRoster" - baseUrl = "https://fakeProvider.net/ims/oneroster/v1p1" - apiVersion = "1.1" - credential = @{ - "@odata.type" = "#microsoft.graph.industryData.oAuth2ClientCredential" - displayName = "One Roster API Credentials" - clientId = "530be723-6af3-4952-8658-668fb2598ad7" - clientSecret = "thisIsASecret" - tokenUrl = "https://login.microsoftonline.com/c27f982b-f7ee-4b8b-bb0e-3c55bd1dc02c/oauth2/token" - scope = $null + "@odata.type" = "#microsoft.graph.industryData.azureDataLakeConnector" + displayName = "CSV connector" + "sourceSystem@odata.bind" = "https://graph.microsoft.com/beta/external/industryData/sourceSystems('aa050107-5784-4a8e-1876-08daddab21bc')" + fileFormat = @{ + "@odata.type" = "microsoft.graph.industryData.fileFormatReferenceValue" + code = "schoolDataSyncV1" } - isDemographicsEnabled = $false - isFlagsEnabled = $false - isContactsEnabled = $false } New-MgBetaExternalIndustryDataConnector -BodyParameter $params diff --git a/src/Search/beta/examples/Update-MgBetaExternalIndustryDataConnector.md b/src/Search/beta/examples/Update-MgBetaExternalIndustryDataConnector.md index 24696d95266..068120be331 100644 --- a/src/Search/beta/examples/Update-MgBetaExternalIndustryDataConnector.md +++ b/src/Search/beta/examples/Update-MgBetaExternalIndustryDataConnector.md @@ -5,8 +5,8 @@ Import-Module Microsoft.Graph.Beta.Search $params = @{ - "@odata.type" = "microsoft.graph.industryData.oneRosterApiDataConnector" - displayName = "One Roster Connector" + "@odata.type" = "microsoft.graph.industryData.azureDataLakeConnector" + displayName = "CSV files from SIS" } Update-MgBetaExternalIndustryDataConnector -IndustryDataConnectorId $industryDataConnectorId -BodyParameter $params diff --git a/src/Search/beta/examples/Update-MgBetaExternalIndustryDataInboundFlow.md b/src/Search/beta/examples/Update-MgBetaExternalIndustryDataInboundFlow.md index 99168322581..86a8a458b2f 100644 --- a/src/Search/beta/examples/Update-MgBetaExternalIndustryDataInboundFlow.md +++ b/src/Search/beta/examples/Update-MgBetaExternalIndustryDataInboundFlow.md @@ -5,7 +5,7 @@ Import-Module Microsoft.Graph.Beta.Search $params = @{ - "@odata.type" = "#microsoft.graph.industryData.inboundFileFlow" + "@odata.type" = "#microsoft.graph.industryData.inboundApiFlow" displayName = "Updated flow name" } diff --git a/src/Security/beta/examples/Get-MgBetaSecurityIdentitySensor.md b/src/Security/beta/examples/Get-MgBetaSecurityIdentitySensor.md new file mode 100644 index 00000000000..fd5d7217705 --- /dev/null +++ b/src/Security/beta/examples/Get-MgBetaSecurityIdentitySensor.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Security + +Get-MgBetaSecurityIdentitySensor + +``` +This example shows how to use the Get-MgBetaSecurityIdentitySensor Cmdlet. + diff --git a/src/Security/beta/examples/Get-MgBetaSecurityIdentitySensorDeploymentAccessKey.md b/src/Security/beta/examples/Get-MgBetaSecurityIdentitySensorDeploymentAccessKey.md new file mode 100644 index 00000000000..c604bbf145f --- /dev/null +++ b/src/Security/beta/examples/Get-MgBetaSecurityIdentitySensorDeploymentAccessKey.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Security + +Get-MgBetaSecurityIdentitySensorDeploymentAccessKey + +``` +This example shows how to use the Get-MgBetaSecurityIdentitySensorDeploymentAccessKey Cmdlet. + diff --git a/src/Security/beta/examples/Get-MgBetaSecurityIdentitySensorDeploymentPackageUri.md b/src/Security/beta/examples/Get-MgBetaSecurityIdentitySensorDeploymentPackageUri.md new file mode 100644 index 00000000000..e871b013556 --- /dev/null +++ b/src/Security/beta/examples/Get-MgBetaSecurityIdentitySensorDeploymentPackageUri.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Security + +Get-MgBetaSecurityIdentitySensorDeploymentPackageUri + +``` +This example shows how to use the Get-MgBetaSecurityIdentitySensorDeploymentPackageUri Cmdlet. + diff --git a/src/Security/beta/examples/New-MgBetaSecurityIdentitySensorDeploymentAccessKey.md b/src/Security/beta/examples/New-MgBetaSecurityIdentitySensorDeploymentAccessKey.md new file mode 100644 index 00000000000..64a92006ef6 --- /dev/null +++ b/src/Security/beta/examples/New-MgBetaSecurityIdentitySensorDeploymentAccessKey.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Security + +New-MgBetaSecurityIdentitySensorDeploymentAccessKey + +``` +This example shows how to use the New-MgBetaSecurityIdentitySensorDeploymentAccessKey Cmdlet. + diff --git a/src/Security/beta/examples/Remove-MgBetaSecurityIdentitySensor.md b/src/Security/beta/examples/Remove-MgBetaSecurityIdentitySensor.md new file mode 100644 index 00000000000..d75369dd197 --- /dev/null +++ b/src/Security/beta/examples/Remove-MgBetaSecurityIdentitySensor.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Security + +Remove-MgBetaSecurityIdentitySensor -SensorId $sensorId + +``` +This example shows how to use the Remove-MgBetaSecurityIdentitySensor Cmdlet. + diff --git a/src/Security/beta/examples/Update-MgBetaSecurityIdentitySensor.md b/src/Security/beta/examples/Update-MgBetaSecurityIdentitySensor.md new file mode 100644 index 00000000000..29d3acfb2cd --- /dev/null +++ b/src/Security/beta/examples/Update-MgBetaSecurityIdentitySensor.md @@ -0,0 +1,21 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Security + +$params = @{ + settings = @{ + description = "dc1 settings new description" + domainControllerDnsNames = @( + "DC1.domain1.test.local" + ) + isDelayedDeploymentEnabled = $false +} +} + +Update-MgBetaSecurityIdentitySensor -SensorId $sensorId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaSecurityIdentitySensor Cmdlet. + diff --git a/src/Security/v1.0/examples/Get-MgSecurityIdentityHealthIssue.md b/src/Security/v1.0/examples/Get-MgSecurityIdentityHealthIssue.md new file mode 100644 index 00000000000..dd643530ec1 --- /dev/null +++ b/src/Security/v1.0/examples/Get-MgSecurityIdentityHealthIssue.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Security + +Get-MgSecurityIdentityHealthIssue + +``` +This example shows how to use the Get-MgSecurityIdentityHealthIssue Cmdlet. + diff --git a/src/Security/v1.0/examples/Update-MgSecurityIdentityHealthIssue.md b/src/Security/v1.0/examples/Update-MgSecurityIdentityHealthIssue.md new file mode 100644 index 00000000000..e9f5977e3e7 --- /dev/null +++ b/src/Security/v1.0/examples/Update-MgSecurityIdentityHealthIssue.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Security + +$params = @{ + status = "closed" +} + +Update-MgSecurityIdentityHealthIssue -HealthIssueId $healthIssueId -BodyParameter $params + +``` +This example shows how to use the Update-MgSecurityIdentityHealthIssue Cmdlet. + diff --git a/src/Sites/beta/examples/Get-MgBetaSite.md b/src/Sites/beta/examples/Get-MgBetaSite.md index 4cd9c250e8c..eb5b687d85c 100644 --- a/src/Sites/beta/examples/Get-MgBetaSite.md +++ b/src/Sites/beta/examples/Get-MgBetaSite.md @@ -4,7 +4,18 @@ Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSite -Search '"{query}"' +Get-MgBetaSite -Property "siteCollection,webUrl" -Filter "siteCollection/root ne null" + +``` +This example shows how to use the Get-MgBetaSite Cmdlet. + +### Example 2: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Sites + +Get-MgBetaSite ``` This example shows how to use the Get-MgBetaSite Cmdlet. diff --git a/src/Teams/v1.0/examples/New-MgTeamChannelMessageReply.md b/src/Teams/v1.0/examples/New-MgTeamChannelMessageReply.md index f022d18b0e0..f436aafa66d 100644 --- a/src/Teams/v1.0/examples/New-MgTeamChannelMessageReply.md +++ b/src/Teams/v1.0/examples/New-MgTeamChannelMessageReply.md @@ -1,4 +1,4 @@ -### Example 1: Code snippet +### Example 1: Send a new reply to a chatMessage ```powershell @@ -14,5 +14,30 @@ $params = @{ New-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params ``` -This example shows how to use the New-MgTeamChannelMessageReply Cmdlet. +This example will send a new reply to a chatmessage + +### Example 2: Import messages + +```powershell + +Import-Module Microsoft.Graph.Teams + +$params = @{ + createdDateTime = [System.DateTime]::Parse("2019-02-04T19:58:15.511Z") + from = @{ + user = @{ + id = "8c0a1a67-50ce-4114-bb6c-da9c5dbcf6ca" + displayName = "John Doe" + } + } + body = @{ + contentType = "html" + content = "Hello World" + } +} + +New-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params + +``` +This example will import messages diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserCalendarPermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserCalendarPermanent.md index e69de29bb2d..4c99192ac88 100644 --- a/src/Users.Actions/beta/examples/Remove-MgBetaUserCalendarPermanent.md +++ b/src/Users.Actions/beta/examples/Remove-MgBetaUserCalendarPermanent.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Users.Actions + +Remove-MgBetaUserCalendarPermanent -UserId $userId + +``` +This example shows how to use the Remove-MgBetaUserCalendarPermanent Cmdlet. + diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserContactFolderChildFolderContactPermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserContactFolderChildFolderContactPermanent.md index e69de29bb2d..8b137891791 100644 --- a/src/Users.Actions/beta/examples/Remove-MgBetaUserContactFolderChildFolderContactPermanent.md +++ b/src/Users.Actions/beta/examples/Remove-MgBetaUserContactFolderChildFolderContactPermanent.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserContactFolderChildFolderPermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserContactFolderChildFolderPermanent.md index e69de29bb2d..8b137891791 100644 --- a/src/Users.Actions/beta/examples/Remove-MgBetaUserContactFolderChildFolderPermanent.md +++ b/src/Users.Actions/beta/examples/Remove-MgBetaUserContactFolderChildFolderPermanent.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserContactFolderContactPermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserContactFolderContactPermanent.md index e69de29bb2d..8b137891791 100644 --- a/src/Users.Actions/beta/examples/Remove-MgBetaUserContactFolderContactPermanent.md +++ b/src/Users.Actions/beta/examples/Remove-MgBetaUserContactFolderContactPermanent.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserContactFolderPermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserContactFolderPermanent.md index e69de29bb2d..85f0a3266be 100644 --- a/src/Users.Actions/beta/examples/Remove-MgBetaUserContactFolderPermanent.md +++ b/src/Users.Actions/beta/examples/Remove-MgBetaUserContactFolderPermanent.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Users.Actions + +Remove-MgBetaUserContactFolderPermanent -UserId $userId -ContactFolderId $contactFolderId + +``` +This example shows how to use the Remove-MgBetaUserContactFolderPermanent Cmdlet. + diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserContactPermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserContactPermanent.md index e69de29bb2d..b4c058879c4 100644 --- a/src/Users.Actions/beta/examples/Remove-MgBetaUserContactPermanent.md +++ b/src/Users.Actions/beta/examples/Remove-MgBetaUserContactPermanent.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Users.Actions + +Remove-MgBetaUserContactPermanent -UserId $userId -ContactId $contactId + +``` +This example shows how to use the Remove-MgBetaUserContactPermanent Cmdlet. + diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserEventInstancePermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserEventInstancePermanent.md index e69de29bb2d..8b137891791 100644 --- a/src/Users.Actions/beta/examples/Remove-MgBetaUserEventInstancePermanent.md +++ b/src/Users.Actions/beta/examples/Remove-MgBetaUserEventInstancePermanent.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserEventPermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserEventPermanent.md index e69de29bb2d..673c2549147 100644 --- a/src/Users.Actions/beta/examples/Remove-MgBetaUserEventPermanent.md +++ b/src/Users.Actions/beta/examples/Remove-MgBetaUserEventPermanent.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Users.Actions + +Remove-MgBetaUserEventPermanent -UserId $userId -EventId $eventId + +``` +This example shows how to use the Remove-MgBetaUserEventPermanent Cmdlet. + diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserMailFolderChildFolderMessagePermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserMailFolderChildFolderMessagePermanent.md index e69de29bb2d..8b137891791 100644 --- a/src/Users.Actions/beta/examples/Remove-MgBetaUserMailFolderChildFolderMessagePermanent.md +++ b/src/Users.Actions/beta/examples/Remove-MgBetaUserMailFolderChildFolderMessagePermanent.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserMailFolderChildFolderPermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserMailFolderChildFolderPermanent.md index e69de29bb2d..8b137891791 100644 --- a/src/Users.Actions/beta/examples/Remove-MgBetaUserMailFolderChildFolderPermanent.md +++ b/src/Users.Actions/beta/examples/Remove-MgBetaUserMailFolderChildFolderPermanent.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserMailFolderMessagePermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserMailFolderMessagePermanent.md index e69de29bb2d..8b137891791 100644 --- a/src/Users.Actions/beta/examples/Remove-MgBetaUserMailFolderMessagePermanent.md +++ b/src/Users.Actions/beta/examples/Remove-MgBetaUserMailFolderMessagePermanent.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserMailFolderPermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserMailFolderPermanent.md index e69de29bb2d..009a4436056 100644 --- a/src/Users.Actions/beta/examples/Remove-MgBetaUserMailFolderPermanent.md +++ b/src/Users.Actions/beta/examples/Remove-MgBetaUserMailFolderPermanent.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Users.Actions + +Remove-MgBetaUserMailFolderPermanent -UserId $userId -MailFolderId $mailFolderId + +``` +This example shows how to use the Remove-MgBetaUserMailFolderPermanent Cmdlet. + diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserMessagePermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserMessagePermanent.md index e69de29bb2d..40e7d7b184e 100644 --- a/src/Users.Actions/beta/examples/Remove-MgBetaUserMessagePermanent.md +++ b/src/Users.Actions/beta/examples/Remove-MgBetaUserMessagePermanent.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Users.Actions + +Remove-MgBetaUserMessagePermanent -UserId $userId -MessageId $messageId + +``` +This example shows how to use the Remove-MgBetaUserMessagePermanent Cmdlet. + diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskFolderPermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskFolderPermanent.md index e69de29bb2d..f63f976ef7c 100644 --- a/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskFolderPermanent.md +++ b/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskFolderPermanent.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Users.Actions + +Remove-MgBetaUserOutlookTaskFolderPermanent -UserId $userId -OutlookTaskFolderId $outlookTaskFolderId + +``` +This example shows how to use the Remove-MgBetaUserOutlookTaskFolderPermanent Cmdlet. + diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskFolderTaskPermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskFolderTaskPermanent.md index e69de29bb2d..8b137891791 100644 --- a/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskFolderTaskPermanent.md +++ b/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskFolderTaskPermanent.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskGroupTaskFolderPermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskGroupTaskFolderPermanent.md index e69de29bb2d..8b137891791 100644 --- a/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskGroupTaskFolderPermanent.md +++ b/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskGroupTaskFolderPermanent.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskGroupTaskFolderTaskPermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskGroupTaskFolderTaskPermanent.md index e69de29bb2d..8b137891791 100644 --- a/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskGroupTaskFolderTaskPermanent.md +++ b/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskGroupTaskFolderTaskPermanent.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskPermanent.md b/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskPermanent.md index e69de29bb2d..7c8e3b2406c 100644 --- a/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskPermanent.md +++ b/src/Users.Actions/beta/examples/Remove-MgBetaUserOutlookTaskPermanent.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Users.Actions + +Remove-MgBetaUserOutlookTaskPermanent -UserId $userId -OutlookTaskId $outlookTaskId + +``` +This example shows how to use the Remove-MgBetaUserOutlookTaskPermanent Cmdlet. + diff --git a/src/Users.Actions/v1.0/examples/Start-MgUserSolutionWorkingTimeScheduleWorkingTime.md b/src/Users.Actions/v1.0/examples/Start-MgUserSolutionWorkingTimeScheduleWorkingTime.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Users.Actions/v1.0/examples/Start-MgUserSolutionWorkingTimeScheduleWorkingTime.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/v1.0/examples/Stop-MgUserSolutionWorkingTimeScheduleWorkingTime.md b/src/Users.Actions/v1.0/examples/Stop-MgUserSolutionWorkingTimeScheduleWorkingTime.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Users.Actions/v1.0/examples/Stop-MgUserSolutionWorkingTimeScheduleWorkingTime.md @@ -0,0 +1 @@ + diff --git a/src/WindowsUpdates/beta/examples/Update-MgBetaWindowsUpdatesPolicyComplianceChange.md b/src/WindowsUpdates/beta/examples/Update-MgBetaWindowsUpdatesPolicyComplianceChange.md index 4d655ad5404..bbadd7d3786 100644 --- a/src/WindowsUpdates/beta/examples/Update-MgBetaWindowsUpdatesPolicyComplianceChange.md +++ b/src/WindowsUpdates/beta/examples/Update-MgBetaWindowsUpdatesPolicyComplianceChange.md @@ -5,7 +5,7 @@ Import-Module Microsoft.Graph.Beta.WindowsUpdates $params = @{ - "@odata.type" = "#microsoft.graph.windowsUpdates.complianceChange" + "@odata.type" = "#microsoft.graph.windowsUpdates.contentApproval" isRevoked = $true }