Hi @Jesus Chao
Welcome to Microsoft Q&A! Thanks for posting the question.
I understand that you are trying to migrate your Azure Automation Runbooks from Azure AD Graph to Microsoft Graph. Based on the doc here, Microsoft Graph is similar to the earlier Azure Active Directory (Azure AD) Graph. In many cases, simply change the endpoint service name and version in your code, and everything should continue to work. You may also refer to FAQ here for additional details: Azure AD Graph to Microsoft Graph migration FAQ.
---
Update 04/20
As part of this migration, users of AzureAD
PowerShell module needs to migrate to Microsoft Graph PowerShell
. Based on the migration guide, Azure AD PowerShell will continue to function after June 2022 to allow users more time to migrate to Microsoft Graph PowerShell. Please refer to the migration guide for PowerShell here: Azure AD PowerShell to Microsoft Graph PowerShell migration FAQ.
Also, please refer to this GitHub issue for using Microsoft Graph PowerShell SDK with Managed Identity.
Feel free to reach out to us in case you have any questions.
---
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.