microsoftgraph / msgraph-sdk-powershell

Powershell SDK for Microsoft Graph
https://www.powershellgallery.com/packages/Microsoft.Graph
Other
696 stars 168 forks source link

Get-MgDeviceManagementAuditEvent Function not available in Microsoft.Graph.DeviceManagement.Administration module #1093

Closed eajihoon closed 2 years ago

eajihoon commented 2 years ago

Hi Team,

I can't see Get-MgDeviceManagementAuditEvent function in Microsoft.Graph.DeviceManagement.Administration module. Please see below:

PS C:\Windows\system32> get-command -Module Microsoft.Graph.DeviceManagement.Administration | select -ExpandProperty name | where {$_ -like "get*"} | Sort-Object Get-MgDeviceManagementApplePushNotificationCertificate Get-MgDeviceManagementComplianceManagementPartner Get-MgDeviceManagementExchangeConnector Get-MgDeviceManagementIoUpdateStatuses Get-MgDeviceManagementMobileThreatDefenseConnector Get-MgDeviceManagementPartner Get-MgDeviceManagementRemoteAssistancePartner Get-MgDeviceManagementResourceOperation Get-MgDeviceManagementRoleAssignment Get-MgDeviceManagementRoleDefinition Get-MgDeviceManagementRoleDefinitionRoleAssignment Get-MgDeviceManagementRoleDefinitionRoleAssignmentRoleDefinition Get-MgDeviceManagementRoleDefinitionRoleAssignmentRoleDefinitionByRef Get-MgDeviceManagementTelecomExpenseManagementPartner Get-MgDeviceManagementTermAndCondition Get-MgDeviceManagementTermAndConditionAcceptanceStatuses Get-MgDeviceManagementTermAndConditionAcceptanceStatusesTermAndCondition Get-MgDeviceManagementTermAndConditionAcceptanceStatusesTermAndConditionByRef Get-MgDeviceManagementTermAndConditionAssignment

We are on version 1.9.2.

PS C:\Windows\system32> get-module Microsoft.Graph.DeviceManagement.Administration

ModuleType Version Name ExportedCommands


Script 1.9.2 Microsoft.Graph.DeviceManagement... {Get-MgDeviceManagementApplePushNotificationCertificate, Get-MgDeviceManagementComplianceManagementPartner, Get-MgDeviceManagementExc...

eajihoon commented 2 years ago

My bad, this is resolved by selecting Beta profile.

Select-MgProfile -Name "beta"