diff --git a/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md b/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md index 3f1ed3342cb..e69de29bb2d 100644 --- a/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md +++ b/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md @@ -1,11 +0,0 @@ -### 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-MgApplicationFederatedIdentityCredentialByName.md b/src/Applications/v1.0/examples/Get-MgApplicationFederatedIdentityCredentialByName.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Applications/v1.0/examples/Get-MgApplicationFederatedIdentityCredentialByName.md @@ -0,0 +1 @@ + diff --git a/src/Applications/v1.0/examples/Get-MgApplicationTokenIssuancePolicyByRef.md b/src/Applications/v1.0/examples/Get-MgApplicationTokenIssuancePolicyByRef.md index e69de29bb2d..8b137891791 100644 --- a/src/Applications/v1.0/examples/Get-MgApplicationTokenIssuancePolicyByRef.md +++ b/src/Applications/v1.0/examples/Get-MgApplicationTokenIssuancePolicyByRef.md @@ -0,0 +1 @@ + diff --git a/src/Applications/v1.0/examples/Get-MgApplicationTokenLifetimePolicyByRef.md b/src/Applications/v1.0/examples/Get-MgApplicationTokenLifetimePolicyByRef.md index e69de29bb2d..8b137891791 100644 --- a/src/Applications/v1.0/examples/Get-MgApplicationTokenLifetimePolicyByRef.md +++ b/src/Applications/v1.0/examples/Get-MgApplicationTokenLifetimePolicyByRef.md @@ -0,0 +1 @@ + diff --git a/src/DeviceManagement.Functions/beta/examples/Get-MgBetaDeviceManagementVirtualEndpointCloudPcRemoteActionResult.md b/src/DeviceManagement.Functions/beta/examples/Get-MgBetaDeviceManagementVirtualEndpointCloudPcRemoteActionResult.md new file mode 100644 index 00000000000..f92aff959ef --- /dev/null +++ b/src/DeviceManagement.Functions/beta/examples/Get-MgBetaDeviceManagementVirtualEndpointCloudPcRemoteActionResult.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.DeviceManagement.Functions + +Get-MgBetaDeviceManagementVirtualEndpointCloudPcRemoteActionResult -CloudPCId $cloudPCId + +``` +This example shows how to use the Get-MgBetaDeviceManagementVirtualEndpointCloudPcRemoteActionResult Cmdlet. + diff --git a/src/Groups/beta/examples/Add-MgBetaGroupSiteContentModelGetByNameToDrive.md b/src/Groups/beta/examples/Add-MgBetaGroupSiteContentModelGetByNameToDrive.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Groups/beta/examples/Add-MgBetaGroupSiteContentModelGetByNameToDrive.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Add-MgBetaGroupSiteContentModelToDrive.md b/src/Groups/beta/examples/Add-MgBetaGroupSiteContentModelToDrive.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Groups/beta/examples/Add-MgBetaGroupSiteContentModelToDrive.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Get-MgBetaGroupSiteContentModelAppliedDrive.md b/src/Groups/beta/examples/Get-MgBetaGroupSiteContentModelAppliedDrive.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Groups/beta/examples/Get-MgBetaGroupSiteContentModelAppliedDrive.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Get-MgBetaGroupSiteContentModelByName.md b/src/Groups/beta/examples/Get-MgBetaGroupSiteContentModelByName.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Groups/beta/examples/Get-MgBetaGroupSiteContentModelGetByNameAppliedDrive.md b/src/Groups/beta/examples/Get-MgBetaGroupSiteContentModelGetByNameAppliedDrive.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Groups/beta/examples/Get-MgBetaGroupSiteContentModelGetByNameAppliedDrive.md @@ -0,0 +1 @@ + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaAdminPeople.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaAdminPeople.md new file mode 100644 index 00000000000..39ab1fc15b4 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaAdminPeople.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaAdminPeople + +``` +This example shows how to use the Get-MgBetaAdminPeople Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaAdminPeopleItemInsight.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaAdminPeopleItemInsight.md new file mode 100644 index 00000000000..5fdb3125a20 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaAdminPeopleItemInsight.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaAdminPeopleItemInsight + +``` +This example shows how to use the Get-MgBetaAdminPeopleItemInsight Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaAdminPeopleProfileCardProperty.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaAdminPeopleProfileCardProperty.md new file mode 100644 index 00000000000..58895cded19 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaAdminPeopleProfileCardProperty.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaAdminPeopleProfileCardProperty + +``` +This example shows how to use the Get-MgBetaAdminPeopleProfileCardProperty Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaAdminPeoplePronoun.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaAdminPeoplePronoun.md new file mode 100644 index 00000000000..c54764fa004 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaAdminPeoplePronoun.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaAdminPeoplePronoun + +``` +This example shows how to use the Get-MgBetaAdminPeoplePronoun Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaAdministrativeUnitScopedRoleMember.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaAdministrativeUnitScopedRoleMember.md index abc8e9c7ce8..b6996fb2281 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaAdministrativeUnitScopedRoleMember.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaAdministrativeUnitScopedRoleMember.md @@ -1,14 +1,11 @@ -### Example 1: Using the Get-MgBetaAdministrativeUnitScopedRoleMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Get-MgBetaAdministrativeUnitScopedRoleMember -AdministrativeUnitId $administrativeUnitId -ScopedRoleMembershipId $scopedRoleMembershipId -``` -This example shows how to use the Get-MgBetaAdministrativeUnitScopedRoleMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaAdministrativeUnitScopedRoleMember Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + Get-MgBetaAdministrativeUnitScopedRoleMember -AdministrativeUnitId $administrativeUnitId + ``` This example shows how to use the Get-MgBetaAdministrativeUnitScopedRoleMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactTransitiveMemberOf.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactTransitiveMemberOf.md index 4262e2abbd1..4e027f8fcf3 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactTransitiveMemberOf.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactTransitiveMemberOf.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement Get-MgBetaContactTransitiveMemberOf -OrgContactId $orgContactId + ``` This example shows how to use the Get-MgBetaContactTransitiveMemberOf Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactTransitiveReport.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactTransitiveReport.md index e69de29bb2d..8b137891791 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactTransitiveReport.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactTransitiveReport.md @@ -0,0 +1 @@ + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDeviceMemberOfAsGroup.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDeviceMemberOfAsGroup.md new file mode 100644 index 00000000000..a1288927fb8 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDeviceMemberOfAsGroup.md @@ -0,0 +1,12 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaDeviceMemberOfAsGroup -DeviceId $deviceId -CountVariable CountVar -Sort "displayName" -Filter "startswith(displayName, 'A')" -ConsistencyLevel eventual + + +``` +This example shows how to use the Get-MgBetaDeviceMemberOfAsGroup Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDeviceRegisteredOwnerByRef.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDeviceRegisteredOwnerByRef.md index e69de29bb2d..8b137891791 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDeviceRegisteredOwnerByRef.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDeviceRegisteredOwnerByRef.md @@ -0,0 +1 @@ + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDeviceRegisteredUserByRef.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDeviceRegisteredUserByRef.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDeviceRegisteredUserByRef.md @@ -0,0 +1 @@ + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDeviceTransitiveMemberOfAsGroup.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDeviceTransitiveMemberOfAsGroup.md new file mode 100644 index 00000000000..822508fa7a9 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDeviceTransitiveMemberOfAsGroup.md @@ -0,0 +1,12 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaDeviceTransitiveMemberOfAsGroup -DeviceId $deviceId -CountVariable CountVar -Sort "displayName" -Filter "startswith(displayName, 'a')" -ConsistencyLevel eventual + + +``` +This example shows how to use the Get-MgBetaDeviceTransitiveMemberOfAsGroup Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDeviceUsageRights.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDeviceUsageRights.md index d8720468498..b5e23994b0c 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDeviceUsageRights.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDeviceUsageRights.md @@ -1,14 +1,22 @@ -### Example 1: Using the Get-MgBetaDeviceUsageRights Cmdlet +### Example 1: Get all usage rights for a device + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + Get-MgBetaDeviceUsageRights -DeviceId $deviceId + ``` -This example shows how to use the Get-MgBetaDeviceUsageRights Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaDeviceUsageRights Cmdlet +This example will get all usage rights for a device + +### Example 2: Get usage rights for a device with specific service identifiers and states + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + Get-MgBetaDeviceUsageRights -DeviceId $deviceId -Filter "state in ('active', 'suspended') and serviceIdentifier in ('ABCD')" + ``` -This example shows how to use the Get-MgBetaDeviceUsageRights Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +This example will get usage rights for a device with specific service identifiers and states + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfiguration.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfiguration.md new file mode 100644 index 00000000000..39ac4c28082 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfiguration.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfiguration + +``` +This example shows how to use the Get-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfiguration Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfigurationTrustedCertificateAuthority.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfigurationTrustedCertificateAuthority.md new file mode 100644 index 00000000000..824989f3a1c --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfigurationTrustedCertificateAuthority.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfigurationTrustedCertificateAuthority -CertificateBasedApplicationConfigurationId $certificateBasedApplicationConfigurationId + +``` +This example shows how to use the Get-MgBetaDirectoryCertificateAuthorityCertificateBasedApplicationConfigurationTrustedCertificateAuthority Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryDeletedItemAsGroup.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryDeletedItemAsGroup.md new file mode 100644 index 00000000000..9b653098252 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryDeletedItemAsGroup.md @@ -0,0 +1,22 @@ +### Example 1: Retrieve deleted groups + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaDirectoryDeletedItemAsGroup + +``` +This example will retrieve deleted groups + +### Example 2: Retrieve the count of deleted user objects and order the results by the deletedDateTime property + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaDirectoryDeletedItemAsGroup -CountVariable CountVar -Sort "deletedDateTime asc" -Property "id,displayName,deletedDateTime" + +``` +This example will retrieve the count of deleted user objects and order the results by the deleteddatetime property + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryDeviceLocalCredential.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryDeviceLocalCredential.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryExternalUserProfile.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryExternalUserProfile.md new file mode 100644 index 00000000000..e36ec1bb698 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryExternalUserProfile.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaDirectoryExternalUserProfile + +``` +This example shows how to use the Get-MgBetaDirectoryExternalUserProfile Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryInboundSharedUserProfile.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryInboundSharedUserProfile.md index e69de29bb2d..c1454e6ff77 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryInboundSharedUserProfile.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryInboundSharedUserProfile.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaDirectoryInboundSharedUserProfile + +``` +This example shows how to use the Get-MgBetaDirectoryInboundSharedUserProfile Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryOnPremiseSynchronization.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryOnPremiseSynchronization.md new file mode 100644 index 00000000000..9fa2402746a --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryOnPremiseSynchronization.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaDirectoryOnPremiseSynchronization -OnPremisesDirectorySynchronizationId $onPremisesDirectorySynchronizationId + +``` +This example shows how to use the Get-MgBetaDirectoryOnPremiseSynchronization Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryOutboundSharedUserProfile.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryOutboundSharedUserProfile.md index e69de29bb2d..6bdbb385daf 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryOutboundSharedUserProfile.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryOutboundSharedUserProfile.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaDirectoryOutboundSharedUserProfile + +``` +This example shows how to use the Get-MgBetaDirectoryOutboundSharedUserProfile Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryOutboundSharedUserProfileTenant.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryOutboundSharedUserProfileTenant.md index e69de29bb2d..6e4f6bac9b0 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryOutboundSharedUserProfileTenant.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryOutboundSharedUserProfileTenant.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaDirectoryOutboundSharedUserProfileTenant -OutboundSharedUserProfileUserId $outboundSharedUserProfileUserId + +``` +This example shows how to use the Get-MgBetaDirectoryOutboundSharedUserProfileTenant Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryPendingExternalUserProfile.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryPendingExternalUserProfile.md new file mode 100644 index 00000000000..005097a00a7 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryPendingExternalUserProfile.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaDirectoryPendingExternalUserProfile + +``` +This example shows how to use the Get-MgBetaDirectoryPendingExternalUserProfile Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryRecommendation.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryRecommendation.md index e69de29bb2d..aa76d72d696 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryRecommendation.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryRecommendation.md @@ -0,0 +1,33 @@ +### Example 1: Get the list of recommendations + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaDirectoryRecommendation + +``` +This example will get the list of recommendations + +### Example 2: Get a recommendation object without its associated resources by the recommendationType + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaDirectoryRecommendation -Filter "recommendationType eq 'turnOffPerUserMFA'" + +``` +This example will get a recommendation object without its associated resources by the recommendationtype + +### Example 3: Get a recommendation object with its associated impacted resources + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaDirectoryRecommendation -Filter "id eq '0cb31920-84b9-471f-a6fb-468c1a847088_Microsoft.Identity.IAM.Insights.TurnOffPerUserMFA'" -ExpandProperty "impactedResources" + +``` +This example will get a recommendation object with its associated impacted resources + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryRecommendationImpactedResource.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryRecommendationImpactedResource.md index e69de29bb2d..9fad9c5eb6f 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryRecommendationImpactedResource.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryRecommendationImpactedResource.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaDirectoryRecommendationImpactedResource -RecommendationId $recommendationId + +``` +This example shows how to use the Get-MgBetaDirectoryRecommendationImpactedResource Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryRoleMemberByRef.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryRoleMemberByRef.md index e69de29bb2d..8b137891791 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryRoleMemberByRef.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryRoleMemberByRef.md @@ -0,0 +1 @@ + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectorySubscription.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectorySubscription.md new file mode 100644 index 00000000000..24a47409bd7 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectorySubscription.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaDirectorySubscription + +``` +This example shows how to use the Get-MgBetaDirectorySubscription Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectorySubscriptionByCommerceSubscriptionId.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectorySubscriptionByCommerceSubscriptionId.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectorySubscriptionByCommerceSubscriptionId.md @@ -0,0 +1 @@ + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectorySubscriptionByOcpSubscriptionId.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectorySubscriptionByOcpSubscriptionId.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectorySubscriptionByOcpSubscriptionId.md @@ -0,0 +1 @@ + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDomainRootDomain.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDomainRootDomain.md new file mode 100644 index 00000000000..4f920c2934a --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDomainRootDomain.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaDomainRootDomain -DomainId $domainId + +``` +This example shows how to use the Get-MgBetaDomainRootDomain Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationSettingContactInsight.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationSettingContactInsight.md index 8f3170aa9c9..df67f295375 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationSettingContactInsight.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationSettingContactInsight.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaOrganizationSettingContactInsight Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + Get-MgBetaOrganizationSettingContactInsight -OrganizationId $organizationId + ``` This example shows how to use the Get-MgBetaOrganizationSettingContactInsight Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationSettingItemInsight.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationSettingItemInsight.md index 93354a380af..f3d733c0e16 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationSettingItemInsight.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationSettingItemInsight.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaOrganizationSettingItemInsight Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + Get-MgBetaOrganizationSettingItemInsight -OrganizationId $organizationId + ``` This example shows how to use the Get-MgBetaOrganizationSettingItemInsight Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationSettingMicrosoftApplicationDataAccess.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationSettingMicrosoftApplicationDataAccess.md index f4373fbb92f..cb7ef0ccc0a 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationSettingMicrosoftApplicationDataAccess.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationSettingMicrosoftApplicationDataAccess.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaOrganizationSettingMicrosoftApplicationDataAccess Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + Get-MgBetaOrganizationSettingMicrosoftApplicationDataAccess -OrganizationId $organizationId + ``` This example shows how to use the Get-MgBetaOrganizationSettingMicrosoftApplicationDataAccess Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationSettingPersonInsight.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationSettingPersonInsight.md index cf70a613298..61eae2da04e 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationSettingPersonInsight.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationSettingPersonInsight.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaOrganizationSettingPersonInsight Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + Get-MgBetaOrganizationSettingPersonInsight -OrganizationId $organizationId + ``` This example shows how to use the Get-MgBetaOrganizationSettingPersonInsight Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessConnectivityBranch.md b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessConnectivityBranch.md new file mode 100644 index 00000000000..801b6e946e2 --- /dev/null +++ b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessConnectivityBranch.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Get-MgBetaNetworkAccessConnectivityBranch + +``` +This example shows how to use the Get-MgBetaNetworkAccessConnectivityBranch Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessConnectivityBranchConnectivityConfiguration.md b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessConnectivityBranchConnectivityConfiguration.md new file mode 100644 index 00000000000..018236e5720 --- /dev/null +++ b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessConnectivityBranchConnectivityConfiguration.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Get-MgBetaNetworkAccessConnectivityBranchConnectivityConfiguration -BranchSiteId $branchSiteId + +``` +This example shows how to use the Get-MgBetaNetworkAccessConnectivityBranchConnectivityConfiguration Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessConnectivityBranchDeviceLink.md b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessConnectivityBranchDeviceLink.md new file mode 100644 index 00000000000..f510c00a125 --- /dev/null +++ b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessConnectivityBranchDeviceLink.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Get-MgBetaNetworkAccessConnectivityBranchDeviceLink -BranchSiteId $branchSiteId + +``` +This example shows how to use the Get-MgBetaNetworkAccessConnectivityBranchDeviceLink Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessConnectivityBranchForwardingProfile.md b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessConnectivityBranchForwardingProfile.md new file mode 100644 index 00000000000..04f0cd1dc00 --- /dev/null +++ b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessConnectivityBranchForwardingProfile.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Get-MgBetaNetworkAccessConnectivityBranchForwardingProfile -BranchSiteId $branchSiteId + +``` +This example shows how to use the Get-MgBetaNetworkAccessConnectivityBranchForwardingProfile Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessConnectivityRemoteNetworkDeviceLink.md b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessConnectivityRemoteNetworkDeviceLink.md new file mode 100644 index 00000000000..08390ce93c8 --- /dev/null +++ b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessConnectivityRemoteNetworkDeviceLink.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Get-MgBetaNetworkAccessConnectivityRemoteNetworkDeviceLink -RemoteNetworkId $remoteNetworkId -DeviceLinkId $deviceLinkId + +``` +This example shows how to use the Get-MgBetaNetworkAccessConnectivityRemoteNetworkDeviceLink Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessFilteringPolicy.md b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessFilteringPolicy.md new file mode 100644 index 00000000000..f33f0abcdf4 --- /dev/null +++ b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessFilteringPolicy.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Get-MgBetaNetworkAccessFilteringPolicy + +``` +This example shows how to use the Get-MgBetaNetworkAccessFilteringPolicy Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessFilteringProfile.md b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessFilteringProfile.md new file mode 100644 index 00000000000..e0bb7a70000 --- /dev/null +++ b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessFilteringProfile.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Get-MgBetaNetworkAccessFilteringProfile + +``` +This example shows how to use the Get-MgBetaNetworkAccessFilteringProfile Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessForwardingPolicy.md b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessForwardingPolicy.md new file mode 100644 index 00000000000..00c5a741408 --- /dev/null +++ b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessForwardingPolicy.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Get-MgBetaNetworkAccessForwardingPolicy -ForwardingPolicyId $forwardingPolicyId + +``` +This example shows how to use the Get-MgBetaNetworkAccessForwardingPolicy Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessForwardingProfile.md b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessForwardingProfile.md new file mode 100644 index 00000000000..e549ace91f9 --- /dev/null +++ b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessForwardingProfile.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Get-MgBetaNetworkAccessForwardingProfile + +``` +This example shows how to use the Get-MgBetaNetworkAccessForwardingProfile Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessForwardingProfilePolicy.md b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessForwardingProfilePolicy.md new file mode 100644 index 00000000000..6fe0decfaf4 --- /dev/null +++ b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessForwardingProfilePolicy.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Get-MgBetaNetworkAccessForwardingProfilePolicy -ForwardingProfileId $forwardingProfileId + +``` +This example shows how to use the Get-MgBetaNetworkAccessForwardingProfilePolicy Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessLogTraffic.md b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessLogTraffic.md new file mode 100644 index 00000000000..92f73a0e21b --- /dev/null +++ b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessLogTraffic.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Get-MgBetaNetworkAccessLogTraffic + +``` +This example shows how to use the Get-MgBetaNetworkAccessLogTraffic Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessSettingConditionalAccess.md b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessSettingConditionalAccess.md new file mode 100644 index 00000000000..322fbb482d3 --- /dev/null +++ b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessSettingConditionalAccess.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Get-MgBetaNetworkAccessSettingConditionalAccess + +``` +This example shows how to use the Get-MgBetaNetworkAccessSettingConditionalAccess Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessSettingCrossTenantAccess.md b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessSettingCrossTenantAccess.md new file mode 100644 index 00000000000..c88b4f93e71 --- /dev/null +++ b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessSettingCrossTenantAccess.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Get-MgBetaNetworkAccessSettingCrossTenantAccess + +``` +This example shows how to use the Get-MgBetaNetworkAccessSettingCrossTenantAccess Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessSettingForwardingOption.md b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessSettingForwardingOption.md new file mode 100644 index 00000000000..3c3bbf529be --- /dev/null +++ b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessSettingForwardingOption.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Get-MgBetaNetworkAccessSettingForwardingOption + +``` +This example shows how to use the Get-MgBetaNetworkAccessSettingForwardingOption Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessTenantStatus.md b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessTenantStatus.md new file mode 100644 index 00000000000..951dbcf18fc --- /dev/null +++ b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessTenantStatus.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Get-MgBetaNetworkAccessTenantStatus + +``` +This example shows how to use the Get-MgBetaNetworkAccessTenantStatus Cmdlet. + diff --git a/src/Sites/beta/examples/Add-MgBetaSiteContentModelGetByNameToDrive.md b/src/Sites/beta/examples/Add-MgBetaSiteContentModelGetByNameToDrive.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Sites/beta/examples/Add-MgBetaSiteContentModelGetByNameToDrive.md @@ -0,0 +1 @@ + diff --git a/src/Sites/beta/examples/Add-MgBetaSiteContentModelToDrive.md b/src/Sites/beta/examples/Add-MgBetaSiteContentModelToDrive.md new file mode 100644 index 00000000000..be1e34653ec --- /dev/null +++ b/src/Sites/beta/examples/Add-MgBetaSiteContentModelToDrive.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Sites + +$params = @{ + driveId = "b!HEq8Q8ZfAkuMECqSaQFnJVwNMbAGLHhHnXMz1C32pozpolsoEg-MT47fBTiYcbnd" +} + +Add-MgBetaSiteContentModelToDrive -SiteId $siteId -ContentModelId $contentModelId -BodyParameter $params + +``` +This example shows how to use the Add-MgBetaSiteContentModelToDrive Cmdlet. +