This pull request primarily involves changes in the AppConfigurationPolicy PowerShell scripts, specifically AppConfigurationPolicy_Export.ps1 and AppConfigurationPolicy_ImportFromJSON.ps1. The changes are centered around moving from the Microsoft.Graph.Devices.CorporateManagement module to the Microsoft.Graph.Beta.Devices.CorporateManagement module. This shift is reflected in the import statements and the function calls within the scripts.
This pull request primarily involves changes in the
AppConfigurationPolicy
PowerShell scripts, specificallyAppConfigurationPolicy_Export.ps1
andAppConfigurationPolicy_ImportFromJSON.ps1
. The changes are centered around moving from theMicrosoft.Graph.Devices.CorporateManagement
module to theMicrosoft.Graph.Beta.Devices.CorporateManagement
module. This shift is reflected in the import statements and the function calls within the scripts.Module Import Changes:
AppConfigurationPolicy/AppConfigurationPolicy_Export.ps1
: Changed import fromMicrosoft.Graph.Devices.CorporateManagement
toMicrosoft.Graph.Beta.Devices.CorporateManagement
.AppConfigurationPolicy/AppConfigurationPolicy_ImportFromJSON.ps1
: Similar change in import statement as in the export script.Function Call Changes:
AppConfigurationPolicy/AppConfigurationPolicy_Export.ps1
: Updated function callsGet-MgDeviceAppManagementMobileAppConfiguration
andGet-MgDeviceAppManagementTargetedManagedAppConfiguration
to their beta counterparts.AppConfigurationPolicy/AppConfigurationPolicy_ImportFromJSON.ps1
: Updated function callsNew-MgDeviceAppManagementTargetedManagedAppConfiguration
andNew-MgDeviceAppManagementMobileAppConfiguration
to their beta counterparts. [1] [2]This should address an issue where Android Managed Device app config policies were not being found.