diff --git a/src/Applications/v1.0/examples/New-MgApplicationExtensionProperty.md b/src/Applications/v1.0/examples/New-MgApplicationExtensionProperty.md index f7a68dd2c69..8060a699084 100644 --- a/src/Applications/v1.0/examples/New-MgApplicationExtensionProperty.md +++ b/src/Applications/v1.0/examples/New-MgApplicationExtensionProperty.md @@ -9,8 +9,8 @@ $params = @{ dataType = "String" isMultiValued = $true targetObjects = @( - "User" - ) + "User" +) } New-MgApplicationExtensionProperty -ApplicationId $applicationId -BodyParameter $params diff --git a/src/Applications/v1.0/examples/New-MgApplicationFederatedIdentityCredential.md b/src/Applications/v1.0/examples/New-MgApplicationFederatedIdentityCredential.md index ed6185b251c..bafd3269642 100644 --- a/src/Applications/v1.0/examples/New-MgApplicationFederatedIdentityCredential.md +++ b/src/Applications/v1.0/examples/New-MgApplicationFederatedIdentityCredential.md @@ -9,8 +9,8 @@ $params = @{ issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0" subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a" audiences = @( - "api://AzureADTokenExchange" - ) + "api://AzureADTokenExchange" +) } New-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -BodyParameter $params diff --git a/src/Bookings/beta/examples/Get-MgBetaBookingBusinessStaffAvailability.md b/src/Bookings/beta/examples/Get-MgBetaBookingBusinessStaffAvailability.md index a1910fb0b55..b0c2df41e37 100644 --- a/src/Bookings/beta/examples/Get-MgBetaBookingBusinessStaffAvailability.md +++ b/src/Bookings/beta/examples/Get-MgBetaBookingBusinessStaffAvailability.md @@ -6,16 +6,16 @@ Import-Module Microsoft.Graph.Beta.Bookings $params = @{ staffIds = @( - "311a5454-08b2-4560-ba1c-f715e938cb79" - ) - startDateTime = @{ - dateTime = "2022-01-25T00:00:00" - timeZone = "India Standard Time" - } - endDateTime = @{ - dateTime = "2022-01-26T17:00:00" - timeZone = "Pacific Standard Time" - } + "311a5454-08b2-4560-ba1c-f715e938cb79" +) +startDateTime = @{ + dateTime = "2022-01-25T00:00:00" + timeZone = "India Standard Time" +} +endDateTime = @{ + dateTime = "2022-01-26T17:00:00" + timeZone = "Pacific Standard Time" +} } Get-MgBetaBookingBusinessStaffAvailability -BookingBusinessId $bookingBusinessId -BodyParameter $params diff --git a/src/Bookings/v1.0/examples/Get-MgBookingBusinessStaffAvailability.md b/src/Bookings/v1.0/examples/Get-MgBookingBusinessStaffAvailability.md index b12b5dc888d..9eb06f92c7b 100644 --- a/src/Bookings/v1.0/examples/Get-MgBookingBusinessStaffAvailability.md +++ b/src/Bookings/v1.0/examples/Get-MgBookingBusinessStaffAvailability.md @@ -6,16 +6,16 @@ Import-Module Microsoft.Graph.Bookings $params = @{ staffIds = @( - "311a5454-08b2-4560-ba1c-f715e938cb79" - ) - startDateTime = @{ - dateTime = "2022-01-25T00:00:00" - timeZone = "India Standard Time" - } - endDateTime = @{ - dateTime = "2022-01-26T17:00:00" - timeZone = "Pacific Standard Time" - } + "311a5454-08b2-4560-ba1c-f715e938cb79" +) +startDateTime = @{ + dateTime = "2022-01-25T00:00:00" + timeZone = "India Standard Time" +} +endDateTime = @{ + dateTime = "2022-01-26T17:00:00" + timeZone = "Pacific Standard Time" +} } Get-MgBookingBusinessStaffAvailability -BookingBusinessId $bookingBusinessId -BodyParameter $params diff --git a/src/Bookings/v1.0/examples/New-MgBookingBusinessCustomer.md b/src/Bookings/v1.0/examples/New-MgBookingBusinessCustomer.md index ab5903c962f..a26fb888c3a 100644 --- a/src/Bookings/v1.0/examples/New-MgBookingBusinessCustomer.md +++ b/src/Bookings/v1.0/examples/New-MgBookingBusinessCustomer.md @@ -9,8 +9,34 @@ $params = @{ displayName = "Joni Sherman" emailAddress = "jonis@relecloud.com" addresses = @( + @{ + postOfficeBox = "" + street = "4567 Main Street" + city = "Buffalo" + state = "NY" + countryOrRegion = "USA" + postalCode = "98052" + type = "home" + } + @{ + postOfficeBox = "" + street = "4570 Main Street" + city = "Buffalo" + state = "NY" + countryOrRegion = "USA" + postalCode = "98054" + type = "business" + } ) phones = @( + @{ + number = "206-555-0100" + type = "home" + } + @{ + number = "206-555-0200" + type = "business" + } ) } diff --git a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationPresenceByUserId.md b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationPresenceByUserId.md index 7847d2759fd..f280c511edf 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationPresenceByUserId.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationPresenceByUserId.md @@ -6,9 +6,9 @@ Import-Module Microsoft.Graph.CloudCommunications $params = @{ ids = @( - "fa8bf3dc-eca7-46b7-bad1-db199b62afc3" - "66825e03-7ef5-42da-9069-724602c31f6b" - ) + "fa8bf3dc-eca7-46b7-bad1-db199b62afc3" +"66825e03-7ef5-42da-9069-724602c31f6b" +) } Get-MgCommunicationPresenceByUserId -BodyParameter $params diff --git a/src/CloudCommunications/v1.0/examples/Invoke-MgRecordCommunicationCallResponse.md b/src/CloudCommunications/v1.0/examples/Invoke-MgRecordCommunicationCallResponse.md index 673a6560282..9179cfd880d 100644 --- a/src/CloudCommunications/v1.0/examples/Invoke-MgRecordCommunicationCallResponse.md +++ b/src/CloudCommunications/v1.0/examples/Invoke-MgRecordCommunicationCallResponse.md @@ -10,6 +10,10 @@ $params = @{ prompts = @( @{ "@odata.type" = "#microsoft.graph.mediaPrompt" + mediaInfo = @{ + uri = "https://cdn.contoso.com/beep.wav" + resourceId = "1D6DE2D4-CD51-4309-8DAA-70768651088E" + } } ) maxRecordDurationInSeconds = 10 @@ -17,10 +21,10 @@ $params = @{ maxSilenceTimeoutInSeconds = 2 playBeep = $true stopTones = @( - "#" - "1" - "*" - ) + "#" +"1" +"*" +) } Invoke-MgRecordCommunicationCallResponse -CallId $callId -BodyParameter $params diff --git a/src/CloudCommunications/v1.0/examples/New-MgCommunicationCallAudioRoutingGroup.md b/src/CloudCommunications/v1.0/examples/New-MgCommunicationCallAudioRoutingGroup.md index b4b8c2b06fb..fcee99be8cb 100644 --- a/src/CloudCommunications/v1.0/examples/New-MgCommunicationCallAudioRoutingGroup.md +++ b/src/CloudCommunications/v1.0/examples/New-MgCommunicationCallAudioRoutingGroup.md @@ -8,11 +8,11 @@ $params = @{ id = "oneToOne" routingMode = "oneToOne" sources = @( - "632899f8-2ea1-4604-8413-27bd2892079f" - ) - receivers = @( - "550fae72-d251-43ec-868c-373732c2704f" - ) + "632899f8-2ea1-4604-8413-27bd2892079f" +) +receivers = @( +"550fae72-d251-43ec-868c-373732c2704f" +) } New-MgCommunicationCallAudioRoutingGroup -CallId $callId -BodyParameter $params diff --git a/src/CloudCommunications/v1.0/examples/Update-MgCommunicationCallAudioRoutingGroup.md b/src/CloudCommunications/v1.0/examples/Update-MgCommunicationCallAudioRoutingGroup.md index bc6ee94f8d4..d21d898a64e 100644 --- a/src/CloudCommunications/v1.0/examples/Update-MgCommunicationCallAudioRoutingGroup.md +++ b/src/CloudCommunications/v1.0/examples/Update-MgCommunicationCallAudioRoutingGroup.md @@ -8,12 +8,12 @@ $params = @{ id = "oneToOne" routingMode = "oneToOne" sources = @( - "632899f8-2ea1-4604-8413-27bd2892079f" - ) - receivers = @( - "550fae72-d251-43ec-868c-373732c2704f" - "72f988bf-86f1-41af-91ab-2d7cd011db47" - ) + "632899f8-2ea1-4604-8413-27bd2892079f" +) +receivers = @( +"550fae72-d251-43ec-868c-373732c2704f" +"72f988bf-86f1-41af-91ab-2d7cd011db47" +) } Update-MgCommunicationCallAudioRoutingGroup -CallId $callId -AudioRoutingGroupId $audioRoutingGroupId -BodyParameter $params diff --git a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportCachedReport.md b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportCachedReport.md index a61abe5ac1d..d3ac9ade77f 100644 --- a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportCachedReport.md +++ b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportCachedReport.md @@ -7,17 +7,17 @@ Import-Module Microsoft.Graph.DeviceManagement.Actions $params = @{ id = "Id value" select = @( - "Select value" - ) - search = "Search value" - groupBy = @( - "Group By value" - ) - orderBy = @( - "Order By value" - ) - skip = 4 - top = 3 + "Select value" +) +search = "Search value" +groupBy = @( +"Group By value" +) +orderBy = @( +"Order By value" +) +skip = 4 +top = 3 } Get-MgDeviceManagementReportCachedReport -BodyParameter $params diff --git a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportCompliancePolicyNonComplianceReport.md b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportCompliancePolicyNonComplianceReport.md index 9bab53dffb9..ad9e8378260 100644 --- a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportCompliancePolicyNonComplianceReport.md +++ b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportCompliancePolicyNonComplianceReport.md @@ -7,19 +7,19 @@ Import-Module Microsoft.Graph.DeviceManagement.Actions $params = @{ name = "Name value" select = @( - "Select value" - ) - search = "Search value" - groupBy = @( - "Group By value" - ) - orderBy = @( - "Order By value" - ) - skip = 4 - top = 3 - sessionId = "Session Id value" - filter = "Filter value" + "Select value" +) +search = "Search value" +groupBy = @( +"Group By value" +) +orderBy = @( +"Order By value" +) +skip = 4 +top = 3 +sessionId = "Session Id value" +filter = "Filter value" } Get-MgDeviceManagementReportCompliancePolicyNonComplianceReport -BodyParameter $params diff --git a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportCompliancePolicyNonComplianceSummaryReport.md b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportCompliancePolicyNonComplianceSummaryReport.md index 694675653e7..cfde6297518 100644 --- a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportCompliancePolicyNonComplianceSummaryReport.md +++ b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportCompliancePolicyNonComplianceSummaryReport.md @@ -7,19 +7,19 @@ Import-Module Microsoft.Graph.DeviceManagement.Actions $params = @{ name = "Name value" select = @( - "Select value" - ) - search = "Search value" - groupBy = @( - "Group By value" - ) - orderBy = @( - "Order By value" - ) - skip = 4 - top = 3 - sessionId = "Session Id value" - filter = "Filter value" + "Select value" +) +search = "Search value" +groupBy = @( +"Group By value" +) +orderBy = @( +"Order By value" +) +skip = 4 +top = 3 +sessionId = "Session Id value" +filter = "Filter value" } Get-MgDeviceManagementReportCompliancePolicyNonComplianceSummaryReport -BodyParameter $params diff --git a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportComplianceSettingNonComplianceReport.md b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportComplianceSettingNonComplianceReport.md index 8210c9b1455..eb90446d0fc 100644 --- a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportComplianceSettingNonComplianceReport.md +++ b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportComplianceSettingNonComplianceReport.md @@ -7,19 +7,19 @@ Import-Module Microsoft.Graph.DeviceManagement.Actions $params = @{ name = "Name value" select = @( - "Select value" - ) - search = "Search value" - groupBy = @( - "Group By value" - ) - orderBy = @( - "Order By value" - ) - skip = 4 - top = 3 - sessionId = "Session Id value" - filter = "Filter value" + "Select value" +) +search = "Search value" +groupBy = @( +"Group By value" +) +orderBy = @( +"Order By value" +) +skip = 4 +top = 3 +sessionId = "Session Id value" +filter = "Filter value" } Get-MgDeviceManagementReportComplianceSettingNonComplianceReport -BodyParameter $params diff --git a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportConfigurationPolicyNonComplianceReport.md b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportConfigurationPolicyNonComplianceReport.md index c772e43ec00..b3a38df4d9d 100644 --- a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportConfigurationPolicyNonComplianceReport.md +++ b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportConfigurationPolicyNonComplianceReport.md @@ -7,19 +7,19 @@ Import-Module Microsoft.Graph.DeviceManagement.Actions $params = @{ name = "Name value" select = @( - "Select value" - ) - search = "Search value" - groupBy = @( - "Group By value" - ) - orderBy = @( - "Order By value" - ) - skip = 4 - top = 3 - sessionId = "Session Id value" - filter = "Filter value" + "Select value" +) +search = "Search value" +groupBy = @( +"Group By value" +) +orderBy = @( +"Order By value" +) +skip = 4 +top = 3 +sessionId = "Session Id value" +filter = "Filter value" } Get-MgDeviceManagementReportConfigurationPolicyNonComplianceReport -BodyParameter $params diff --git a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportConfigurationPolicyNonComplianceSummaryReport.md b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportConfigurationPolicyNonComplianceSummaryReport.md index 0e8232e668a..de2e45d5b04 100644 --- a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportConfigurationPolicyNonComplianceSummaryReport.md +++ b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportConfigurationPolicyNonComplianceSummaryReport.md @@ -7,19 +7,19 @@ Import-Module Microsoft.Graph.DeviceManagement.Actions $params = @{ name = "Name value" select = @( - "Select value" - ) - search = "Search value" - groupBy = @( - "Group By value" - ) - orderBy = @( - "Order By value" - ) - skip = 4 - top = 3 - sessionId = "Session Id value" - filter = "Filter value" + "Select value" +) +search = "Search value" +groupBy = @( +"Group By value" +) +orderBy = @( +"Order By value" +) +skip = 4 +top = 3 +sessionId = "Session Id value" +filter = "Filter value" } Get-MgDeviceManagementReportConfigurationPolicyNonComplianceSummaryReport -BodyParameter $params diff --git a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportConfigurationSettingNonComplianceReport.md b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportConfigurationSettingNonComplianceReport.md index 0b326ff9eb0..6e9a39da561 100644 --- a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportConfigurationSettingNonComplianceReport.md +++ b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportConfigurationSettingNonComplianceReport.md @@ -7,19 +7,19 @@ Import-Module Microsoft.Graph.DeviceManagement.Actions $params = @{ name = "Name value" select = @( - "Select value" - ) - search = "Search value" - groupBy = @( - "Group By value" - ) - orderBy = @( - "Order By value" - ) - skip = 4 - top = 3 - sessionId = "Session Id value" - filter = "Filter value" + "Select value" +) +search = "Search value" +groupBy = @( +"Group By value" +) +orderBy = @( +"Order By value" +) +skip = 4 +top = 3 +sessionId = "Session Id value" +filter = "Filter value" } Get-MgDeviceManagementReportConfigurationSettingNonComplianceReport -BodyParameter $params diff --git a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportDeviceManagementIntentPerSettingContributingProfile.md b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportDeviceManagementIntentPerSettingContributingProfile.md index daf9c89e33d..d62c2f7c76e 100644 --- a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportDeviceManagementIntentPerSettingContributingProfile.md +++ b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportDeviceManagementIntentPerSettingContributingProfile.md @@ -7,19 +7,19 @@ Import-Module Microsoft.Graph.DeviceManagement.Actions $params = @{ name = "Name value" select = @( - "Select value" - ) - search = "Search value" - groupBy = @( - "Group By value" - ) - orderBy = @( - "Order By value" - ) - skip = 4 - top = 3 - sessionId = "Session Id value" - filter = "Filter value" + "Select value" +) +search = "Search value" +groupBy = @( +"Group By value" +) +orderBy = @( +"Order By value" +) +skip = 4 +top = 3 +sessionId = "Session Id value" +filter = "Filter value" } Get-MgDeviceManagementReportDeviceManagementIntentPerSettingContributingProfile -BodyParameter $params diff --git a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportDeviceManagementIntentSettingReport.md b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportDeviceManagementIntentSettingReport.md index e858219052a..9a8ee71bca5 100644 --- a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportDeviceManagementIntentSettingReport.md +++ b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportDeviceManagementIntentSettingReport.md @@ -7,19 +7,19 @@ Import-Module Microsoft.Graph.DeviceManagement.Actions $params = @{ name = "Name value" select = @( - "Select value" - ) - search = "Search value" - groupBy = @( - "Group By value" - ) - orderBy = @( - "Order By value" - ) - skip = 4 - top = 3 - sessionId = "Session Id value" - filter = "Filter value" + "Select value" +) +search = "Search value" +groupBy = @( +"Group By value" +) +orderBy = @( +"Order By value" +) +skip = 4 +top = 3 +sessionId = "Session Id value" +filter = "Filter value" } Get-MgDeviceManagementReportDeviceManagementIntentSettingReport -BodyParameter $params diff --git a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportDeviceNonComplianceReport.md b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportDeviceNonComplianceReport.md index 6bb6415ad2a..64bc136792a 100644 --- a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportDeviceNonComplianceReport.md +++ b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportDeviceNonComplianceReport.md @@ -7,19 +7,19 @@ Import-Module Microsoft.Graph.DeviceManagement.Actions $params = @{ name = "Name value" select = @( - "Select value" - ) - search = "Search value" - groupBy = @( - "Group By value" - ) - orderBy = @( - "Order By value" - ) - skip = 4 - top = 3 - sessionId = "Session Id value" - filter = "Filter value" + "Select value" +) +search = "Search value" +groupBy = @( +"Group By value" +) +orderBy = @( +"Order By value" +) +skip = 4 +top = 3 +sessionId = "Session Id value" +filter = "Filter value" } Get-MgDeviceManagementReportDeviceNonComplianceReport -BodyParameter $params diff --git a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportFilter.md b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportFilter.md index a72b8c120f7..9fc2f48d9de 100644 --- a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportFilter.md +++ b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportFilter.md @@ -7,19 +7,19 @@ Import-Module Microsoft.Graph.DeviceManagement.Actions $params = @{ name = "Name value" select = @( - "Select value" - ) - search = "Search value" - groupBy = @( - "Group By value" - ) - orderBy = @( - "Order By value" - ) - skip = 4 - top = 3 - sessionId = "Session Id value" - filter = "Filter value" + "Select value" +) +search = "Search value" +groupBy = @( +"Group By value" +) +orderBy = @( +"Order By value" +) +skip = 4 +top = 3 +sessionId = "Session Id value" +filter = "Filter value" } Get-MgDeviceManagementReportFilter -BodyParameter $params diff --git a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportHistoricalReport.md b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportHistoricalReport.md index 6adb6fccd8f..0450d097e25 100644 --- a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportHistoricalReport.md +++ b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportHistoricalReport.md @@ -7,18 +7,18 @@ Import-Module Microsoft.Graph.DeviceManagement.Actions $params = @{ name = "Name value" select = @( - "Select value" - ) - search = "Search value" - groupBy = @( - "Group By value" - ) - orderBy = @( - "Order By value" - ) - skip = 4 - top = 3 - filter = "Filter value" + "Select value" +) +search = "Search value" +groupBy = @( +"Group By value" +) +orderBy = @( +"Order By value" +) +skip = 4 +top = 3 +filter = "Filter value" } Get-MgDeviceManagementReportHistoricalReport -BodyParameter $params diff --git a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportNoncompliantDeviceAndSettingReport.md b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportNoncompliantDeviceAndSettingReport.md index 3999bb7f4db..7e5696e1603 100644 --- a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportNoncompliantDeviceAndSettingReport.md +++ b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportNoncompliantDeviceAndSettingReport.md @@ -7,19 +7,19 @@ Import-Module Microsoft.Graph.DeviceManagement.Actions $params = @{ name = "Name value" select = @( - "Select value" - ) - search = "Search value" - groupBy = @( - "Group By value" - ) - orderBy = @( - "Order By value" - ) - skip = 4 - top = 3 - sessionId = "Session Id value" - filter = "Filter value" + "Select value" +) +search = "Search value" +groupBy = @( +"Group By value" +) +orderBy = @( +"Order By value" +) +skip = 4 +top = 3 +sessionId = "Session Id value" +filter = "Filter value" } Get-MgDeviceManagementReportNoncompliantDeviceAndSettingReport -BodyParameter $params diff --git a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportPolicyNonComplianceMetadata.md b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportPolicyNonComplianceMetadata.md index a8feda732e7..f5fb2e58683 100644 --- a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportPolicyNonComplianceMetadata.md +++ b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportPolicyNonComplianceMetadata.md @@ -7,19 +7,19 @@ Import-Module Microsoft.Graph.DeviceManagement.Actions $params = @{ name = "Name value" select = @( - "Select value" - ) - search = "Search value" - groupBy = @( - "Group By value" - ) - orderBy = @( - "Order By value" - ) - skip = 4 - top = 3 - sessionId = "Session Id value" - filter = "Filter value" + "Select value" +) +search = "Search value" +groupBy = @( +"Group By value" +) +orderBy = @( +"Order By value" +) +skip = 4 +top = 3 +sessionId = "Session Id value" +filter = "Filter value" } Get-MgDeviceManagementReportPolicyNonComplianceMetadata -BodyParameter $params diff --git a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportPolicyNonComplianceReport.md b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportPolicyNonComplianceReport.md index 62297234a7b..acc89540d84 100644 --- a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportPolicyNonComplianceReport.md +++ b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportPolicyNonComplianceReport.md @@ -7,19 +7,19 @@ Import-Module Microsoft.Graph.DeviceManagement.Actions $params = @{ name = "Name value" select = @( - "Select value" - ) - search = "Search value" - groupBy = @( - "Group By value" - ) - orderBy = @( - "Order By value" - ) - skip = 4 - top = 3 - sessionId = "Session Id value" - filter = "Filter value" + "Select value" +) +search = "Search value" +groupBy = @( +"Group By value" +) +orderBy = @( +"Order By value" +) +skip = 4 +top = 3 +sessionId = "Session Id value" +filter = "Filter value" } Get-MgDeviceManagementReportPolicyNonComplianceReport -BodyParameter $params diff --git a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportPolicyNonComplianceSummaryReport.md b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportPolicyNonComplianceSummaryReport.md index b0f01dc0c2a..37b34a4bc97 100644 --- a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportPolicyNonComplianceSummaryReport.md +++ b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportPolicyNonComplianceSummaryReport.md @@ -7,19 +7,19 @@ Import-Module Microsoft.Graph.DeviceManagement.Actions $params = @{ name = "Name value" select = @( - "Select value" - ) - search = "Search value" - groupBy = @( - "Group By value" - ) - orderBy = @( - "Order By value" - ) - skip = 4 - top = 3 - sessionId = "Session Id value" - filter = "Filter value" + "Select value" +) +search = "Search value" +groupBy = @( +"Group By value" +) +orderBy = @( +"Order By value" +) +skip = 4 +top = 3 +sessionId = "Session Id value" +filter = "Filter value" } Get-MgDeviceManagementReportPolicyNonComplianceSummaryReport -BodyParameter $params diff --git a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportSettingNonComplianceReport.md b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportSettingNonComplianceReport.md index 6de9af5ec41..1b232d2cbc8 100644 --- a/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportSettingNonComplianceReport.md +++ b/src/DeviceManagement.Actions/v1.0/examples/Get-MgDeviceManagementReportSettingNonComplianceReport.md @@ -7,19 +7,19 @@ Import-Module Microsoft.Graph.DeviceManagement.Actions $params = @{ name = "Name value" select = @( - "Select value" - ) - search = "Search value" - groupBy = @( - "Group By value" - ) - orderBy = @( - "Order By value" - ) - skip = 4 - top = 3 - sessionId = "Session Id value" - filter = "Filter value" + "Select value" +) +search = "Search value" +groupBy = @( +"Group By value" +) +orderBy = @( +"Order By value" +) +skip = 4 +top = 3 +sessionId = "Session Id value" +filter = "Filter value" } Get-MgDeviceManagementReportSettingNonComplianceReport -BodyParameter $params diff --git a/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaArchiveServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaArchiveServiceAnnouncementMessage.md index 2fa81dae66c..8612e4269c7 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaArchiveServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaArchiveServiceAnnouncementMessage.md @@ -6,9 +6,9 @@ Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement $params = @{ messageIds = @( - "MC172851" - "MC167983" - ) + "MC172851" +"MC167983" +) } Invoke-MgBetaArchiveServiceAnnouncementMessage -BodyParameter $params diff --git a/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaFavoriteServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaFavoriteServiceAnnouncementMessage.md index 2bb96828d01..5110fbed0dc 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaFavoriteServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaFavoriteServiceAnnouncementMessage.md @@ -6,9 +6,9 @@ Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement $params = @{ messageIds = @( - "MC172851" - "MC167983" - ) + "MC172851" +"MC167983" +) } Invoke-MgBetaFavoriteServiceAnnouncementMessage -BodyParameter $params diff --git a/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaMarkServiceAnnouncementMessageRead.md b/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaMarkServiceAnnouncementMessageRead.md index 1bdbf854f55..bd291f89ce5 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaMarkServiceAnnouncementMessageRead.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaMarkServiceAnnouncementMessageRead.md @@ -6,9 +6,9 @@ Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement $params = @{ messageIds = @( - "MC172851" - "MC167983" - ) + "MC172851" +"MC167983" +) } Invoke-MgBetaMarkServiceAnnouncementMessageRead -BodyParameter $params diff --git a/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaMarkServiceAnnouncementMessageUnread.md b/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaMarkServiceAnnouncementMessageUnread.md index 50f335ff829..f0269d1d47a 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaMarkServiceAnnouncementMessageUnread.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaMarkServiceAnnouncementMessageUnread.md @@ -6,9 +6,9 @@ Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement $params = @{ messageIds = @( - "MC172851" - "MC167983" - ) + "MC172851" +"MC167983" +) } Invoke-MgBetaMarkServiceAnnouncementMessageUnread -BodyParameter $params diff --git a/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaUnarchiveServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaUnarchiveServiceAnnouncementMessage.md index 522fc73be45..44a49cec7e9 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaUnarchiveServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaUnarchiveServiceAnnouncementMessage.md @@ -6,9 +6,9 @@ Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement $params = @{ messageIds = @( - "MC172851" - "MC167983" - ) + "MC172851" +"MC167983" +) } Invoke-MgBetaUnarchiveServiceAnnouncementMessage -BodyParameter $params diff --git a/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaUnfavoriteServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaUnfavoriteServiceAnnouncementMessage.md index 3834f0eaaa5..c7cead37690 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaUnfavoriteServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaUnfavoriteServiceAnnouncementMessage.md @@ -6,9 +6,9 @@ Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement $params = @{ messageIds = @( - "MC172851" - "MC167983" - ) + "MC172851" +"MC167983" +) } Invoke-MgBetaUnfavoriteServiceAnnouncementMessage -BodyParameter $params diff --git a/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgArchiveServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgArchiveServiceAnnouncementMessage.md index a06b60ca226..c8a1250c751 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgArchiveServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgArchiveServiceAnnouncementMessage.md @@ -6,9 +6,9 @@ Import-Module Microsoft.Graph.Devices.ServiceAnnouncement $params = @{ messageIds = @( - "MC172851" - "MC167983" - ) + "MC172851" +"MC167983" +) } Invoke-MgArchiveServiceAnnouncementMessage -BodyParameter $params diff --git a/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgFavoriteServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgFavoriteServiceAnnouncementMessage.md index fef79683f67..622c416c630 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgFavoriteServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgFavoriteServiceAnnouncementMessage.md @@ -6,9 +6,9 @@ Import-Module Microsoft.Graph.Devices.ServiceAnnouncement $params = @{ messageIds = @( - "MC172851" - "MC167983" - ) + "MC172851" +"MC167983" +) } Invoke-MgFavoriteServiceAnnouncementMessage -BodyParameter $params diff --git a/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgMarkServiceAnnouncementMessageRead.md b/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgMarkServiceAnnouncementMessageRead.md index a34cbaa196f..2e7a9d14ccc 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgMarkServiceAnnouncementMessageRead.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgMarkServiceAnnouncementMessageRead.md @@ -6,9 +6,9 @@ Import-Module Microsoft.Graph.Devices.ServiceAnnouncement $params = @{ messageIds = @( - "MC172851" - "MC167983" - ) + "MC172851" +"MC167983" +) } Invoke-MgMarkServiceAnnouncementMessageRead -BodyParameter $params diff --git a/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgMarkServiceAnnouncementMessageUnread.md b/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgMarkServiceAnnouncementMessageUnread.md index 4afd35faf9e..b09c997ea38 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgMarkServiceAnnouncementMessageUnread.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgMarkServiceAnnouncementMessageUnread.md @@ -6,9 +6,9 @@ Import-Module Microsoft.Graph.Devices.ServiceAnnouncement $params = @{ messageIds = @( - "MC172851" - "MC167983" - ) + "MC172851" +"MC167983" +) } Invoke-MgMarkServiceAnnouncementMessageUnread -BodyParameter $params diff --git a/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgUnarchiveServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgUnarchiveServiceAnnouncementMessage.md index 43609950b6e..5d7b215cb1e 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgUnarchiveServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgUnarchiveServiceAnnouncementMessage.md @@ -6,9 +6,9 @@ Import-Module Microsoft.Graph.Devices.ServiceAnnouncement $params = @{ messageIds = @( - "MC172851" - "MC167983" - ) + "MC172851" +"MC167983" +) } Invoke-MgUnarchiveServiceAnnouncementMessage -BodyParameter $params diff --git a/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgUnfavoriteServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgUnfavoriteServiceAnnouncementMessage.md index 7b994d5f8d2..ca115ea4ae8 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgUnfavoriteServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgUnfavoriteServiceAnnouncementMessage.md @@ -6,9 +6,9 @@ Import-Module Microsoft.Graph.Devices.ServiceAnnouncement $params = @{ messageIds = @( - "MC172851" - "MC167983" - ) + "MC172851" +"MC167983" +) } Invoke-MgUnfavoriteServiceAnnouncementMessage -BodyParameter $params diff --git a/src/DirectoryObjects/beta/examples/Get-MgBetaDirectoryObjectById.md b/src/DirectoryObjects/beta/examples/Get-MgBetaDirectoryObjectById.md index ba9acbc7c3d..005772a1309 100644 --- a/src/DirectoryObjects/beta/examples/Get-MgBetaDirectoryObjectById.md +++ b/src/DirectoryObjects/beta/examples/Get-MgBetaDirectoryObjectById.md @@ -6,16 +6,16 @@ Import-Module Microsoft.Graph.Beta.DirectoryObjects $params = @{ ids = @( - "84b80893-8749-40a3-97b7-68513b600544" - "5d6059b6-368d-45f8-91e1-8e07d485f1d0" - "0b944de3-e0fc-4774-a49a-b135213725ef" - "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" - ) - types = @( - "user" - "group" - "device" - ) + "84b80893-8749-40a3-97b7-68513b600544" +"5d6059b6-368d-45f8-91e1-8e07d485f1d0" +"0b944de3-e0fc-4774-a49a-b135213725ef" +"b75a5ab2-fe55-4463-bd31-d21ad555c6e0" +) +types = @( +"user" +"group" +"device" +) } Get-MgBetaDirectoryObjectById -BodyParameter $params diff --git a/src/DirectoryObjects/v1.0/examples/Get-MgDirectoryObjectById.md b/src/DirectoryObjects/v1.0/examples/Get-MgDirectoryObjectById.md index 9074f91fd44..b9c046d75de 100644 --- a/src/DirectoryObjects/v1.0/examples/Get-MgDirectoryObjectById.md +++ b/src/DirectoryObjects/v1.0/examples/Get-MgDirectoryObjectById.md @@ -6,16 +6,16 @@ Import-Module Microsoft.Graph.DirectoryObjects $params = @{ ids = @( - "84b80893-8749-40a3-97b7-68513b600544" - "5d6059b6-368d-45f8-91e1-8e07d485f1d0" - "0b944de3-e0fc-4774-a49a-b135213725ef" - "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" - ) - types = @( - "user" - "group" - "device" - ) + "84b80893-8749-40a3-97b7-68513b600544" +"5d6059b6-368d-45f8-91e1-8e07d485f1d0" +"0b944de3-e0fc-4774-a49a-b135213725ef" +"b75a5ab2-fe55-4463-bd31-d21ad555c6e0" +) +types = @( +"user" +"group" +"device" +) } Get-MgDirectoryObjectById -BodyParameter $params 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/Education/v1.0/examples/New-MgEducationUser.md b/src/Education/v1.0/examples/New-MgEducationUser.md index bbbe579a8a8..65eb23f7eb0 100644 --- a/src/Education/v1.0/examples/New-MgEducationUser.md +++ b/src/Education/v1.0/examples/New-MgEducationUser.md @@ -37,34 +37,34 @@ $params = @{ } ) businessPhones = @( - "String" - ) - department = "String" - displayName = "String" - givenName = "String" - mail = "String" - mailNickname = "String" - mobilePhone = "String" - passwordPolicies = "String" - passwordProfile = @{ - "@odata.type" = "microsoft.graph.passwordProfile" - } - officeLocation = "String" - preferredLanguage = "String" - provisionedPlans = @( - @{ - "@odata.type" = "microsoft.graph.provisionedPlan" - } - ) - refreshTokensValidFromDateTime = [System.DateTime]::Parse("String (timestamp)") - showInAddressList = "Boolean" - surname = "String" - usageLocation = "String" - userPrincipalName = "String" - userType = "String" - onPremisesInfo = @{ - "@odata.type" = "microsoft.graph.educationOnPremisesInfo" + "String" +) +department = "String" +displayName = "String" +givenName = "String" +mail = "String" +mailNickname = "String" +mobilePhone = "String" +passwordPolicies = "String" +passwordProfile = @{ + "@odata.type" = "microsoft.graph.passwordProfile" +} +officeLocation = "String" +preferredLanguage = "String" +provisionedPlans = @( + @{ + "@odata.type" = "microsoft.graph.provisionedPlan" } +) +refreshTokensValidFromDateTime = [System.DateTime]::Parse("String (timestamp)") +showInAddressList = "Boolean" +surname = "String" +usageLocation = "String" +userPrincipalName = "String" +userType = "String" +onPremisesInfo = @{ + "@odata.type" = "microsoft.graph.educationOnPremisesInfo" +} } New-MgEducationUser -BodyParameter $params diff --git a/src/Education/v1.0/examples/Update-MgEducationClassAssignmentSetting.md b/src/Education/v1.0/examples/Update-MgEducationClassAssignmentSetting.md index 0b5ebcf39cf..4103587312f 100644 --- a/src/Education/v1.0/examples/Update-MgEducationClassAssignmentSetting.md +++ b/src/Education/v1.0/examples/Update-MgEducationClassAssignmentSetting.md @@ -1,4 +1,4 @@ -### Example 1: Code snippet +### Example 1: Update submissionAnimationDisabled ```powershell @@ -11,9 +11,9 @@ $params = @{ Update-MgEducationClassAssignmentSetting -EducationClassId $educationClassId -BodyParameter $params ``` -This example shows how to use the Update-MgEducationClassAssignmentSetting Cmdlet. +This example will update submissionanimationdisabled -### Example 2: Code snippet +### Example 2: Create grading categories ```powershell @@ -39,5 +39,5 @@ $params = @{ Update-MgEducationClassAssignmentSetting -EducationClassId $educationClassId -BodyParameter $params ``` -This example shows how to use the Update-MgEducationClassAssignmentSetting Cmdlet. +This example will create grading categories diff --git a/src/Groups/beta/examples/Add-MgBetaGroupSite.md b/src/Groups/beta/examples/Add-MgBetaGroupSite.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Groups/beta/examples/Add-MgBetaGroupSite.md +++ b/src/Groups/beta/examples/Add-MgBetaGroupSite.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Groups/v1.0/examples/Add-MgGroupSite.md b/src/Groups/v1.0/examples/Add-MgGroupSite.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Groups/v1.0/examples/Add-MgGroupSite.md +++ b/src/Groups/v1.0/examples/Add-MgGroupSite.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageApplicablePolicyRequirement.md b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageApplicablePolicyRequirement.md index 0d1b3c7512c..d0d0ad44a49 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageApplicablePolicyRequirement.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageApplicablePolicyRequirement.md @@ -16,6 +16,9 @@ This example shows how to use the Get-MgBetaEntitlementManagementAccessPackageAp Import-Module Microsoft.Graph.Beta.Identity.Governance $params = @{ + subject = @{ + objectId = "5acd375c-8acb-45de-a958-fa0dd89259ad" + } } Get-MgBetaEntitlementManagementAccessPackageApplicablePolicyRequirement -AccessPackageId $accessPackageId -BodyParameter $params diff --git a/src/Identity.SignIns/beta/examples/Confirm-MgBetaRiskyServicePrincipalCompromised.md b/src/Identity.SignIns/beta/examples/Confirm-MgBetaRiskyServicePrincipalCompromised.md index 53233b20418..4cc512d92b7 100644 --- a/src/Identity.SignIns/beta/examples/Confirm-MgBetaRiskyServicePrincipalCompromised.md +++ b/src/Identity.SignIns/beta/examples/Confirm-MgBetaRiskyServicePrincipalCompromised.md @@ -6,8 +6,8 @@ Import-Module Microsoft.Graph.Beta.Identity.SignIns $params = @{ servicePrincipalIds = @( - "9089a539-a539-9089-39a5-899039a58990" - ) + "9089a539-a539-9089-39a5-899039a58990" +) } Confirm-MgBetaRiskyServicePrincipalCompromised -BodyParameter $params diff --git a/src/Identity.SignIns/v1.0/examples/Confirm-MgRiskyUserCompromised.md b/src/Identity.SignIns/v1.0/examples/Confirm-MgRiskyUserCompromised.md index 5f882513a13..f4a0de28d30 100644 --- a/src/Identity.SignIns/v1.0/examples/Confirm-MgRiskyUserCompromised.md +++ b/src/Identity.SignIns/v1.0/examples/Confirm-MgRiskyUserCompromised.md @@ -6,9 +6,9 @@ Import-Module Microsoft.Graph.Identity.SignIns $params = @{ userIds = @( - "29f270bb-4d23-4f68-8a57-dc73dc0d4caf" - "20f91ec9-d140-4d90-9cd9-f618587a1471" - ) + "29f270bb-4d23-4f68-8a57-dc73dc0d4caf" +"20f91ec9-d140-4d90-9cd9-f618587a1471" +) } Confirm-MgRiskyUserCompromised -BodyParameter $params diff --git a/src/SchemaExtensions/beta/examples/New-MgBetaSchemaExtension.md b/src/SchemaExtensions/beta/examples/New-MgBetaSchemaExtension.md index 8f54361a56a..e47e5f87ccc 100644 --- a/src/SchemaExtensions/beta/examples/New-MgBetaSchemaExtension.md +++ b/src/SchemaExtensions/beta/examples/New-MgBetaSchemaExtension.md @@ -8,22 +8,22 @@ $params = @{ id = "graphlearn_courses" description = "Graph Learn training courses extensions" targetTypes = @( - "Group" - ) - properties = @( - @{ - name = "courseId" - type = "Integer" - } - @{ - name = "courseName" - type = "String" - } - @{ - name = "courseType" - type = "String" - } - ) + "Group" +) +properties = @( + @{ + name = "courseId" + type = "Integer" + } + @{ + name = "courseName" + type = "String" + } + @{ + name = "courseType" + type = "String" + } +) } New-MgBetaSchemaExtension -BodyParameter $params @@ -41,22 +41,22 @@ $params = @{ id = "courses" description = "Graph Learn training courses extensions" targetTypes = @( - "Group" - ) - properties = @( - @{ - name = "courseId" - type = "Integer" - } - @{ - name = "courseName" - type = "String" - } - @{ - name = "courseType" - type = "String" - } - ) + "Group" +) +properties = @( + @{ + name = "courseId" + type = "Integer" + } + @{ + name = "courseName" + type = "String" + } + @{ + name = "courseType" + type = "String" + } +) } New-MgBetaSchemaExtension -BodyParameter $params @@ -74,23 +74,23 @@ $params = @{ id = "courses" description = "Graph Learn training courses extensions" targetTypes = @( - "Group" - ) - owner = "50897f70-a455-4adf-87bc-4cf17091d5ac" - properties = @( - @{ - name = "courseId" - type = "Integer" - } - @{ - name = "courseName" - type = "String" - } - @{ - name = "courseType" - type = "String" - } - ) + "Group" +) +owner = "50897f70-a455-4adf-87bc-4cf17091d5ac" +properties = @( + @{ + name = "courseId" + type = "Integer" + } + @{ + name = "courseName" + type = "String" + } + @{ + name = "courseType" + type = "String" + } +) } New-MgBetaSchemaExtension -BodyParameter $params diff --git a/src/SchemaExtensions/v1.0/examples/New-MgSchemaExtension.md b/src/SchemaExtensions/v1.0/examples/New-MgSchemaExtension.md index d29f243adc9..b7fa456c077 100644 --- a/src/SchemaExtensions/v1.0/examples/New-MgSchemaExtension.md +++ b/src/SchemaExtensions/v1.0/examples/New-MgSchemaExtension.md @@ -8,22 +8,22 @@ $params = @{ id = "graphlearn_courses" description = "Graph Learn training courses extensions" targetTypes = @( - "Group" - ) - properties = @( - @{ - name = "courseId" - type = "Integer" - } - @{ - name = "courseName" - type = "String" - } - @{ - name = "courseType" - type = "String" - } - ) + "Group" +) +properties = @( + @{ + name = "courseId" + type = "Integer" + } + @{ + name = "courseName" + type = "String" + } + @{ + name = "courseType" + type = "String" + } +) } New-MgSchemaExtension -BodyParameter $params @@ -41,22 +41,22 @@ $params = @{ id = "courses" description = "Graph Learn training courses extensions" targetTypes = @( - "Group" - ) - properties = @( - @{ - name = "courseId" - type = "Integer" - } - @{ - name = "courseName" - type = "String" - } - @{ - name = "courseType" - type = "String" - } - ) + "Group" +) +properties = @( + @{ + name = "courseId" + type = "Integer" + } + @{ + name = "courseName" + type = "String" + } + @{ + name = "courseType" + type = "String" + } +) } New-MgSchemaExtension -BodyParameter $params @@ -74,23 +74,23 @@ $params = @{ id = "courses" description = "Graph Learn training courses extensions" targetTypes = @( - "Group" - ) - owner = "50897f70-a455-4adf-87bc-4cf17091d5ac" - properties = @( - @{ - name = "courseId" - type = "Integer" - } - @{ - name = "courseName" - type = "String" - } - @{ - name = "courseType" - type = "String" - } - ) + "Group" +) +owner = "50897f70-a455-4adf-87bc-4cf17091d5ac" +properties = @( + @{ + name = "courseId" + type = "Integer" + } + @{ + name = "courseName" + type = "String" + } + @{ + name = "courseType" + type = "String" + } +) } New-MgSchemaExtension -BodyParameter $params diff --git a/src/Search/beta/examples/Invoke-MgBetaQuerySearch.md b/src/Search/beta/examples/Invoke-MgBetaQuerySearch.md index addee808e22..c460f0b283b 100644 --- a/src/Search/beta/examples/Invoke-MgBetaQuerySearch.md +++ b/src/Search/beta/examples/Invoke-MgBetaQuerySearch.md @@ -8,23 +8,23 @@ $params = @{ requests = @( @{ entityTypes = @( - "externalItem" - ) - contentSources = @( - "/external/connections/connectionfriendlyname" - ) - region = "US" - query = @{ - queryString = "contoso product" - } - from = 0 - size = 25 - fields = @( - "title" - "description" - ) - } + "externalItem" + ) + contentSources = @( + "/external/connections/connectionfriendlyname" ) + region = "US" + query = @{ + queryString = "contoso product" + } + from = 0 + size = 25 + fields = @( + "title" +"description" +) +} +) } Invoke-MgBetaQuerySearch -BodyParameter $params diff --git a/src/Security/beta/examples/New-MgBetaSecurityAttackSimulation.md b/src/Security/beta/examples/New-MgBetaSecurityAttackSimulation.md index 395958584c3..4f0e0ec5042 100644 --- a/src/Security/beta/examples/New-MgBetaSecurityAttackSimulation.md +++ b/src/Security/beta/examples/New-MgBetaSecurityAttackSimulation.md @@ -19,22 +19,27 @@ $params = @{ "@odata.type" = "#microsoft.graph.addressBookAccountTargetContent" type = "addressBook" accountTargetEmails = @( - "john@contoso.com" - ) - } - trainingSetting = @{ - settingType = "noTraining" + "john@contoso.com" + ) +} +trainingSetting = @{ + settingType = "noTraining" +} +endUserNotificationSetting = @{ + notificationPreference = "microsoft" + settingType = "noTraining" + positiveReinforcement = @{ + deliveryPreference = "deliverAfterCampaignEnd" + endUserNotification = "https://graph.microsoft.com/beta/security/attacksimulation/endUserNotifications/1ewer3678-9abc-def0-123456789a" + defaultLanguage = "en" } - endUserNotificationSetting = @{ - notificationPreference = "microsoft" - settingType = "noTraining" - positiveReinforcement = @{ - deliveryPreference = "deliverAfterCampaignEnd" - endUserNotification = "https://graph.microsoft.com/beta/security/attacksimulation/endUserNotifications/1ewer3678-9abc-def0-123456789a" - defaultLanguage = "en" - } + simulationNotification = @{ + targettedUserType = "compromised" + "endUserNotification@odata.bind" = "https://graph.microsoft.com/beta/security/attacksimulation/endUserNotifications/12wer3678-9abc-def0-123456789a" + defaultLanguage = "en" } } +} New-MgBetaSecurityAttackSimulation -BodyParameter $params diff --git a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseNoncustodialDataSource.md b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseNoncustodialDataSource.md index e9683fdc41c..a24af8e4189 100644 --- a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseNoncustodialDataSource.md +++ b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseNoncustodialDataSource.md @@ -7,6 +7,9 @@ Import-Module Microsoft.Graph.Beta.Security $params = @{ dataSource = @{ "@odata.type" = "microsoft.graph.security.siteSource" + site = @{ + webUrl = "https://m365x809305.sharepoint.com/sites/Design-topsecret" + } } } diff --git a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseSearch.md b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseSearch.md index 38b19c047c5..32fc119c38a 100644 --- a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseSearch.md +++ b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseSearch.md @@ -9,13 +9,13 @@ $params = @{ description = "My first search" contentQuery = "(Author="edison")" "custodianSources@odata.bind" = @( - "https://graph.microsoft.com/beta/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/custodians/0053a61a3b6c42738f7606791716a22a/userSources/43434642-3137-3138-3432-374142313639" - "https://graph.microsoft.com/beta/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/custodians/0053a61a3b6c42738f7606791716a22a/siteSources/169718e3-a8df-449d-bef4-ee09fe1ddc5d" - "https://graph.microsoft.com/beta/security/cases/ediscoveryCases('b0073e4e-4184-41c6-9eb7-8c8cc3e2288b')/custodians('0053a61a3b6c42738f7606791716a22a')/unifiedGroupSources('32e14fa4-3106-4bd2-a245-34bf0c718a7e')" - ) - "noncustodialSources@odata.bind" = @( - "https://graph.microsoft.com/beta/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/noncustodialdatasources/35393639323133394345384344303043" - ) + "https://graph.microsoft.com/beta/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/custodians/0053a61a3b6c42738f7606791716a22a/userSources/43434642-3137-3138-3432-374142313639" +"https://graph.microsoft.com/beta/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/custodians/0053a61a3b6c42738f7606791716a22a/siteSources/169718e3-a8df-449d-bef4-ee09fe1ddc5d" +"https://graph.microsoft.com/beta/security/cases/ediscoveryCases('b0073e4e-4184-41c6-9eb7-8c8cc3e2288b')/custodians('0053a61a3b6c42738f7606791716a22a')/unifiedGroupSources('32e14fa4-3106-4bd2-a245-34bf0c718a7e')" +) +"noncustodialSources@odata.bind" = @( +"https://graph.microsoft.com/beta/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/noncustodialdatasources/35393639323133394345384344303043" +) } New-MgBetaSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params diff --git a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseSearchAdditionalSource.md b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseSearchAdditionalSource.md index e4777a740c6..67885e9a2da 100644 --- a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseSearchAdditionalSource.md +++ b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseSearchAdditionalSource.md @@ -6,6 +6,9 @@ Import-Module Microsoft.Graph.Beta.Security $params = @{ "@odata.type" = "microsoft.graph.security.siteSource" + site = @{ + webUrl = "https://m365x809305.sharepoint.com/sites/Design-topsecret" + } } New-MgBetaSecurityCaseEdiscoveryCaseSearchAdditionalSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -BodyParameter $params diff --git a/src/Security/beta/examples/Update-MgBetaSecurityIncident.md b/src/Security/beta/examples/Update-MgBetaSecurityIncident.md index c29c1a13248..f0f750a580c 100644 --- a/src/Security/beta/examples/Update-MgBetaSecurityIncident.md +++ b/src/Security/beta/examples/Update-MgBetaSecurityIncident.md @@ -8,8 +8,8 @@ $params = @{ classification = "TruePositive" determination = "MultiStagedAttack" customTags = @( - "Demo" - ) + "Demo" +) } Update-MgBetaSecurityIncident -IncidentId $incidentId -BodyParameter $params diff --git a/src/Security/v1.0/examples/New-MgSecurityAttackSimulation.md b/src/Security/v1.0/examples/New-MgSecurityAttackSimulation.md index df270926b93..0deb4b15d09 100644 --- a/src/Security/v1.0/examples/New-MgSecurityAttackSimulation.md +++ b/src/Security/v1.0/examples/New-MgSecurityAttackSimulation.md @@ -19,22 +19,27 @@ $params = @{ "@odata.type" = "#microsoft.graph.addressBookAccountTargetContent" type = "addressBook" accountTargetEmails = @( - "john@contoso.com" - ) - } - trainingSetting = @{ - settingType = "noTraining" + "john@contoso.com" + ) +} +trainingSetting = @{ + settingType = "noTraining" +} +endUserNotificationSetting = @{ + notificationPreference = "microsoft" + settingType = "noTraining" + positiveReinforcement = @{ + deliveryPreference = "deliverAfterCampaignEnd" + endUserNotification = "https://graph.microsoft.com/v1.0/security/attacksimulation/endUserNotifications/1ewer3678-9abc-def0-123456789a" + defaultLanguage = "en" } - endUserNotificationSetting = @{ - notificationPreference = "microsoft" - settingType = "noTraining" - positiveReinforcement = @{ - deliveryPreference = "deliverAfterCampaignEnd" - endUserNotification = "https://graph.microsoft.com/v1.0/security/attacksimulation/endUserNotifications/1ewer3678-9abc-def0-123456789a" - defaultLanguage = "en" - } + simulationNotification = @{ + targettedUserType = "compromised" + "endUserNotification@odata.bind" = "https://graph.microsoft.com/v1.0/security/attacksimulation/endUserNotifications/12wer3678-9abc-def0-123456789a" + defaultLanguage = "en" } } +} New-MgSecurityAttackSimulation -BodyParameter $params diff --git a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md index ba9fb2ef252..be3134f00fc 100644 --- a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md +++ b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md @@ -7,6 +7,9 @@ Import-Module Microsoft.Graph.Security $params = @{ dataSource = @{ "@odata.type" = "microsoft.graph.security.siteSource" + site = @{ + webUrl = "https://m365x809305.sharepoint.com/sites/Design-topsecret" + } } } diff --git a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseSearch.md b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseSearch.md index 87f8cbc753b..a0dfee52053 100644 --- a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseSearch.md +++ b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseSearch.md @@ -9,13 +9,13 @@ $params = @{ description = "My first search" contentQuery = "(Author="edison")" "custodianSources@odata.bind" = @( - "https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/custodians/0053a61a3b6c42738f7606791716a22a/userSources/43434642-3137-3138-3432-374142313639" - "https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/custodians/0053a61a3b6c42738f7606791716a22a/siteSources/169718e3-a8df-449d-bef4-ee09fe1ddc5d" - "https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases('b0073e4e-4184-41c6-9eb7-8c8cc3e2288b')/custodians('0053a61a3b6c42738f7606791716a22a')/unifiedGroupSources('32e14fa4-3106-4bd2-a245-34bf0c718a7e')" - ) - "noncustodialSources@odata.bind" = @( - "https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/noncustodialdatasources/35393639323133394345384344303043" - ) + "https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/custodians/0053a61a3b6c42738f7606791716a22a/userSources/43434642-3137-3138-3432-374142313639" +"https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/custodians/0053a61a3b6c42738f7606791716a22a/siteSources/169718e3-a8df-449d-bef4-ee09fe1ddc5d" +"https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases('b0073e4e-4184-41c6-9eb7-8c8cc3e2288b')/custodians('0053a61a3b6c42738f7606791716a22a')/unifiedGroupSources('32e14fa4-3106-4bd2-a245-34bf0c718a7e')" +) +"noncustodialSources@odata.bind" = @( +"https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/noncustodialdatasources/35393639323133394345384344303043" +) } New-MgSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params diff --git a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource.md b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource.md index 60329ff004f..cd080d2e098 100644 --- a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource.md +++ b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource.md @@ -6,6 +6,9 @@ Import-Module Microsoft.Graph.Security $params = @{ "@odata.type" = "microsoft.graph.security.siteSource" + site = @{ + webUrl = "https://contoso.sharepoint.com/sites/SecretSite" + } } New-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -BodyParameter $params