@Paricha, Avijit (WIPRO), Thanks for posting in Q&A. Based on my checking, starting on April 1, 2024, due to updated authentication methods in the Graph SDK-based PowerShell module, the Microsoft Intune PowerShell (d1ddf0e4-d672-4dae-b554-9d5bdfd93547) is being removed. If you are using the Intune PowerShell application ID (d1ddf0e4-d672-4dae-b554-9d5bdfd93547), you will need to create a new application under App registrations. And then update your scripts with a Microsoft Entra ID registered application ID with the registered application you created to prevent your scripts from breaking.
Here is one I created in my environment for your reference.
1.Go to Identity > Applications > App registrations and select "New registration".
2.Set the application name, select "Accounts in this organizational directory only (Contoso only - Single tenant)", Redirect URl: urn:ietf:wg:oauth:2.0:oob
3.Click Register to register the application.
4.Then go to API permissions to add the following permission and "Grant admin consent for Contoso".
DeviceManagementApps.ReadWrite.All
DeviceManagementConfiguration.ReadWrite.All
DeviceManagementManagedDevices.PrivilegedOperations.All
DeviceManagementManagedDevices.ReadWrite.All
DeviceManagementRBAC.ReadWrite.All
DeviceManagementServiceConfig.ReadWrite.All
Directory.Read.All
Group.ReadWrite.All
openid
5.After the Application is created, find the application and replace the one in script with this one.
Hope the above information can help.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.