From ce5c1f72bed9b6d89e75aa622dfd9653be48ce57 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Fri, 1 Nov 2024 05:02:33 +0000 Subject: [PATCH] Updating examples --- ...ServicePrincipalSynchronizationTemplate.md | 11 +++++++ ...ServicePrincipalSynchronizationTemplate.md | 11 +++++++ ...w-MgBetaVirtualEventWebinarRegistration.md | 8 +++++ ...BetaSolutionBusinessScenarioPlannerTask.md | 3 +- ...e-MgBetaEducationClassAssignmentSetting.md | 33 ------------------- .../New-MgBetaPolicyAppManagementPolicy.md | 2 +- ...BetaSecurityCaseEdiscoveryCaseLegalHold.md | 15 +-------- ...tyCaseEdiscoveryCaseCustodianUserSource.md | 2 +- 8 files changed, 35 insertions(+), 50 deletions(-) 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/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-MgBetaVirtualEventWebinarRegistration.md b/src/Bookings/beta/examples/New-MgBetaVirtualEventWebinarRegistration.md index de4ec7ba036..7b166d2c07d 100644 --- a/src/Bookings/beta/examples/New-MgBetaVirtualEventWebinarRegistration.md +++ b/src/Bookings/beta/examples/New-MgBetaVirtualEventWebinarRegistration.md @@ -5,6 +5,10 @@ Import-Module Microsoft.Graph.Beta.Bookings $params = @{ + externalRegistrationInformation = @{ + referrer = "Facebook" + registrationId = "myExternalRegistrationId" + } preferredTimezone = "Pacific Standard Time" preferredLanguage = "en-us" registrationQuestionAnswers = @( @@ -51,6 +55,10 @@ $params = @{ firstName = "Diane" lastName = "Demoss" email = "DianeDemoss@contoso.com" + externalRegistrationInformation = @{ + referrer = "Facebook" + registrationId = "myExternalRegistrationId" + } preferredTimezone = "Pacific Standard Time" preferredLanguage = "en-us" registrationQuestionAnswers = @( diff --git a/src/BusinessScenario/beta/examples/Remove-MgBetaSolutionBusinessScenarioPlannerTask.md b/src/BusinessScenario/beta/examples/Remove-MgBetaSolutionBusinessScenarioPlannerTask.md index 41696ee97af..4197b567ae0 100644 --- a/src/BusinessScenario/beta/examples/Remove-MgBetaSolutionBusinessScenarioPlannerTask.md +++ b/src/BusinessScenario/beta/examples/Remove-MgBetaSolutionBusinessScenarioPlannerTask.md @@ -4,7 +4,8 @@ Import-Module Microsoft.Graph.Beta.BusinessScenario -Remove-MgBetaSolutionBusinessScenarioPlannerTask -BusinessScenarioId $businessScenarioId -BusinessScenarioTaskId $businessScenarioTaskId +Remove-MgBetaSolutionBusinessScenarioPlannerTask -BusinessScenarioId $businessScenarioId -BusinessScenarioTaskId $businessScenarioTaskId -IfMatch W/'"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc="' + ``` This example shows how to use the Remove-MgBetaSolutionBusinessScenarioPlannerTask Cmdlet. diff --git a/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentSetting.md b/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentSetting.md index f3a09a94768..e03c3356066 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentSetting.md +++ b/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentSetting.md @@ -41,36 +41,3 @@ 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/Identity.SignIns/beta/examples/New-MgBetaPolicyAppManagementPolicy.md b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyAppManagementPolicy.md index c24dd54bda9..806bbb0fdda 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyAppManagementPolicy.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyAppManagementPolicy.md @@ -50,7 +50,7 @@ $params = @{ applicationRestrictions = @{ identifierUris = @{ nonDefaultUriAddition = @{ - restrictForAppsCreatedAfterDateTime = "2024-01-01T10:37:00Z" + restrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2024-01-01T10:37:00Z") excludeAppsReceivingV2Tokens = $true excludeSaml = $true } diff --git a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseLegalHold.md b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseLegalHold.md index a67690729a6..ad8df9588bd 100644 --- a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseLegalHold.md +++ b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseLegalHold.md @@ -7,20 +7,7 @@ Import-Module Microsoft.Graph.Beta.Security $params = @{ displayName = "My legalHold with sources" description = "Created from Graph API" - "userSources@odata.bind" = @( - @{ - "@odata.type" = "microsoft.graph.security.userSource" - email = "SalesTeam@contoso.com" - } - ) - "siteSources@odata.bind" = @( - @{ - "@odata.type" = "microsoft.graph.security.siteSource" - site = @{ - webUrl = "https://m365x809305.sharepoint.com/sites/Design-topsecret" - } - } - ) + contentQuery = "KQL content query" } New-MgBetaSecurityCaseEdiscoveryCaseLegalHold -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params diff --git a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodianUserSource.md b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodianUserSource.md index 6141e0f630a..909ae797058 100644 --- a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodianUserSource.md +++ b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodianUserSource.md @@ -6,7 +6,7 @@ Import-Module Microsoft.Graph.Security $params = @{ email = "admin@contoso.com" - includedSources = "mailbox, site" + includedSources = "mailbox" } New-MgSecurityCaseEdiscoveryCaseCustodianUserSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -BodyParameter $params