Find Azure AD and MSOnline cmdlets in Microsoft Graph PowerShell

You can use this map of Azure AD PowerShell and MSOnline cmdlets to find the cmdlets that you need in the Microsoft Graph PowerShell SDK. For more information about the new cmdlets, see Get started with the Microsoft Graph PowerShell SDK.

Azure AD to Microsoft Graph PowerShell by category

The following is the categorization of the Azure AD cmdlets. Select a category to use the cmdlets

Administrative units

Azure AD cmdlets Microsoft Graph PowerShell cmdlets
Add-AzureADMSAdministrativeUnitMember New-MgDirectoryAdministrativeUnitMemberByRef
Add-AzureADMSScopedRoleMembership New-MgDirectoryRoleScopedMember
Get-AzureADMSAdministrativeUnit Get-MgDirectoryAdministrativeUnit
Get-AzureADMSAdministrativeUnitMember Get-MgDirectoryAdministrativeUnitMember
Get-AzureADMSScopedRoleMembership Get-MgUserScopedRoleMemberOf
New-AzureADMSAdministrativeUnit New-MgDirectoryAdministrativeUnit
Remove-AzureADMSAdministrativeUnit Remove-MgDirectoryAdministrativeUnit
Remove-AzureADMSAdministrativeUnitMember Remove-MgDirectoryAdministrativeUnitScopedRoleMember
Remove-AzureADMSScopedRoleMembership Remove-MgUserScopedRoleMemberOf

Application proxy application management

Azure AD cmdlets Microsoft Graph PowerShell cmdlets
Get-AzureADApplicationProxyApplication
Get-AzureADApplicationProxyApplicationConnectorGroup
New-AzureADApplicationProxyApplication
Remove-AzureADApplicationProxyApplication
Remove-AzureADApplicationProxyApplicationConnectorGroup
Set-AzureADApplicationProxyApplication
Set-AzureADApplicationProxyApplicationCustomDomainCertificate
Set-AzureADApplicationProxyApplicationSingleSignOn

Application proxy connector management

Azure AD cmdlets Microsoft Graph PowerShell cmdlets
Get-AzureADApplicationProxyConnector
Get-AzureADApplicationProxyConnectorGroup
Get-AzureADApplicationProxyConnectorGroupMember
Get-AzureADApplicationProxyConnectorMemberOf
New-AzureADApplicationProxyConnectorGroup
Remove-AzureADApplicationProxyConnectorGroup
Set-AzureADApplicationProxyApplicationConnectorGroup
Set-AzureADApplicationProxyConnector
Set-AzureADApplicationProxyConnectorGroup

Applications

Azure AD cmdlets Microsoft Graph PowerShell cmdlets
Add-AzureADApplicationOwner New-MgApplicationOwnerByRef.md
Get-AzureADApplication Get-MgApplication
Get-AzureADApplicationExtensionProperty Get-MgApplicationExtensionProperty
Get-AzureADApplicationKeyCredential
Get-AzureADApplicationLogo Get-MgApplicationLogo
Get-AzureADApplicationOwner Get-MgApplicationOwner
Get-AzureADApplicationPasswordCredential
Get-AzureADApplicationServiceEndpoint
Get-AzureADDeletedApplication Get-MgDirectoryDeletedItem
New-AzureADApplication New-MgApplication
New-AzureADApplicationExtensionProperty New-MgApplicationExtensionProperty
New-AzureADApplicationKeyCredential Add-MgApplicationKey
New-AzureADApplicationPasswordCredential Add-MgApplicationPassword
Remove-AzureADApplication Remove-MgApplication
Remove-AzureADApplicationExtensionProperty Remove-MgApplicationExtensionProperty
Remove-AzureADApplicationKeyCredential Remove-MgApplicationKey
Remove-AzureADApplicationOwner
Remove-AzureADApplicationPasswordCredential Remove-MgApplicationPassword
Set-AzureADApplication Update-MgApplication
Set-AzureADApplicationLogo Set-MgApplicationLogo

Azure AD

Azure AD cmdlets Microsoft Graph PowerShell cmdlets
Add-AzureADMSApplicationOwner New-MgApplicationOwnerByRef
Add-AzureADMSServicePrincipalDelegatedPermissionClassification New-MgServicePrincipalDelegatedPermissionClassification
Get-AzureADApplicationProxyConnectorGroupMember
Get-AzureADCurrentSessionInfo Get-MgContext
Get-AzureADMSApplication Get-MgApplication
Get-AzureADMSApplicationExtensionProperty Get-MgApplicationExtensionProperty
Get-AzureADMSApplicationOwner Get-MgApplicationOwner
Get-AzureADMSConditionalAccessPolicy Get-MgIdentityConditionalAccessPolicy
Get-AzureADMSDeletedDirectoryObject Get-MgDirectoryDeletedItem
Get-AzureADMSDeletedGroup Get-MgDirectoryDeletedItem
Get-AzureADMSIdentityProvider Get-MgIdentityProvider
Get-AzureADMSNamedLocationPolicy Get-MgIdentityConditionalAccessNamedLocation
Get-AzureADMSPermissionGrantConditionSet 1 Get-MgPolicyPermissionGrantPolicyInclude
Get-AzureADMSPermissionGrantConditionSet 1 Get-MgPolicyPermissionGrantPolicyExclude
Get-AzureADMSPermissionGrantPolicy Get-MgPolicyPermissionGrantPolicy
Get-AzureADMSServicePrincipalDelegatedPermissionClassification Get-MgServicePrincipalDelegatedPermissionClassification
Get-CrossCloudVerificationCode
New-AzureADMSApplication New-MgApplication
New-AzureADMSApplicationExtensionProperty New-MgApplicationExtensionProperty
New-AzureADMSApplicationKey Add-MgApplicationKey
New-AzureADMSApplicationPassword Add-MgApplicationPassword
New-AzureADMSConditionalAccessPolicy New-MgIdentityConditionalAccessPolicy
New-AzureADMSIdentityProvider New-MgIdentityProvider
New-AzureADMSNamedLocationPolicy New-MgIdentityConditionalAccessNamedLocation
New-AzureADMSPermissionGrantConditionSet1 New-MgPolicyPermissionGrantPolicyInclude
New-AzureADMSPermissionGrantConditionSet1 New-MgPolicyPermissionGrantPolicyExclude
New-AzureADMSPermissionGrantPolicy New-MgPolicyPermissionGrantPolicy
Remove-AzureADDeletedApplication Remove-MgDirectoryDeletedItem
Remove-AzureADMSApplication Remove-MgApplication
Remove-AzureADMSApplicationExtensionProperty Remove-MgApplicationExtensionProperty
Remove-AzureADMSApplicationKey Remove-MgApplicationKey
Remove-AzureADMSApplicationOwner
Remove-AzureADMSApplicationPassword Remove-MgApplicationPassword
Remove-AzureADMSApplicationVerifiedPublisher
Remove-AzureADMSConditionalAccessPolicy Remove-MgIdentityConditionalAccessPolicy
Remove-AzureADMSDeletedDirectoryObject Remove-MgDirectoryObject
Remove-AzureADMSIdentityProvider Remove-MgIdentityProvider
Remove-AzureADMSNamedLocationPolicy Remove-MgIdentityConditionalAccessNamedLocation
Remove-AzureADMSPermissionGrantConditionSet1 Remove-MgPolicyPermissionGrantPolicyInclude
Remove-AzureADMSPermissionGrantConditionSet1 Remove-MgPolicyPermissionGrantPolicyExclude
Remove-AzureADMSPermissionGrantPolicy Remove-MgPolicyPermissionGrantPolicy
Remove-AzureADMSServicePrincipalDelegatedPermissionClassification Remove-MgServicePrincipalDelegatedPermissionClassification
Restore-AzureADMSDeletedDirectoryObject Restore-MgDirectoryObject
Set-AzureADMSAdministrativeUnit Update-MgDirectoryAdministrativeUnit
Set-AzureADMSApplication Update-MgApplication
Set-AzureADMSApplicationLogo Set-MgApplicationLogo
Set-AzureADMSApplicationVerifiedPublisher
Set-AzureADMSConditionalAccessPolicy Update-MgIdentityConditionalAccessPolicy
Set-AzureADMSIdentityProvider Update-MgIdentityProvider
Set-AzureADMSNamedLocationPolicy Update-MgIdentityConditionalAccessNamedLocation
Set-AzureADMSPermissionGrantConditionSet1 Update-MgPolicyPermissionGrantPolicyInclude
Set-AzureADMSPermissionGrantConditionSet1 Update-MgPolicyPermissionGrantPolicyExclude
Set-AzureADMSPermissionGrantPolicy Update-MgPolicyPermissionGrantPolicy

Certificate Authorities

Azure AD cmdlets Microsoft Graph PowerShell cmdlets
Get-AzureADTrustedCertificateAuthority
New-AzureADTrustedCertificateAuthority
Remove-AzureADTrustedCertificateAuthority
Set-AzureADTrustedCertificateAuthority

Connect to your directory

Azure AD cmdlets Microsoft Graph PowerShell cmdlets
Connect-AzureAD Connect-MgGraph
Disconnect-AzureAD Disconnect-MgGraph

Contacts

Azure AD cmdlets Microsoft Graph PowerShell cmdlets
Get-AzureADContact Get-MgContact
Get-AzureADContactDirectReport Get-MgContactDirectReport
Get-AzureADContactManager Get-MgContactManager
Get-AzureADContactMembership Get-MgContactMemberOf
Get-AzureADContactThumbnailPhoto
Remove-AzureADContact Remove-MgContact
Remove-AzureADContactManager Remove-MgContactManagerByRef
Select-AzureADGroupIdsContactIsMemberOf Get-MgContactMemberOf

Contracts

Azure AD cmdlets Microsoft Graph PowerShell cmdlets
Get-AzureADContract Get-MgContract

Deleted objects

Azure AD cmdlets Microsoft Graph PowerShell cmdlets
Restore-AzureADDeletedApplication Restore-MgApplication

Devices

Azure AD cmdlets Microsoft Graph PowerShell cmdlets
Add-AzureADDeviceRegisteredOwner New-MgDeviceRegisteredOwnerByRef
Add-AzureADDeviceRegisteredUser New-MgDeviceRegisteredUserByRef
Get-AzureADDevice Get-MgDevice
Get-AzureADDeviceConfiguration Get-MgDeviceManagementDeviceConfiguration
Get-AzureADDeviceRegisteredOwner Get-MgDeviceRegisteredOwner
Get-AzureADDeviceRegisteredUser Get-MgDeviceRegisteredUser
New-AzureADDevice New-MgDevice
Remove-AzureADDevice Remove-MgDevice
Remove-AzureADDeviceRegisteredOwner
Remove-AzureADDeviceRegisteredUser
Set-AzureADDevice Update-MgDevice

Directory

Azure AD cmdlets Microsoft Graph PowerShell cmdlets
Get-AzureADSubscribedSku Get-MgSubscribedSku
Get-AzureADTenantDetail Get-MgOrganization
Set-AzureADTenantDetail Update-MgOrganization

Directory Objects

Azure AD cmdlets Microsoft Graph PowerShell cmdlets
Get-AzureADObjectByObjectId Get-MgDirectoryObjectById

Directory roles

Azure AD cmdlets Microsoft Graph PowerShell cmdlets
Add-AzureADDirectoryRoleMember New-MgDirectoryRoleMemberByRef
Enable-AzureADDirectoryRole New-MgDirectoryRoleTemplate
Get-AzureADDirectoryRole Get-MgDirectoryRole
Get-AzureADDirectoryRoleMember Get-MgDirectoryRoleMember
Get-AzureADDirectoryRoleTemplate Get-MgDirectoryRoleTemplate
Remove-AzureADDirectoryRoleMember Remove-MgDirectoryRoleScopedMember

Domains

Azure AD cmdlets Microsoft Graph PowerShell cmdlets
Confirm-AzureADDomain Confirm-MgDomain
Get-AzureADDomain Get-MgDomain
Get-AzureADDomainNameReference Get-MgDomainNameerenceByRef
Get-AzureADDomainServiceConfigurationRecord Get-MgDomainServiceConfigurationRecord
Get-AzureADDomainVerificationDnsRecord Get-MgDomainVerificationDnsRecord
New-AzureADDomain New-MgDomain
Remove-AzureADDomain Remove-MgDomain
Set-AzureADDomain Update-MgDomain

Extension properties

Azure AD cmdlets Microsoft Graph PowerShell cmdlets
Get-AzureADExtensionProperty Get-MgDirectoryObjectAvailableExtensionProperty

Groups

Azure AD cmdlets Microsoft Graph PowerShell cmdlets
Add-AzureADGroupMember New-MgGroupMember
Add-AzureADGroupOwner New-MgGroupOwnerByRef
Add-AzureADMSLifecyclePolicyGroup New-MgGroupLifecyclePolicy
Get-AzureADGroup Get-MgGroup
Get-AzureADGroupAppRoleAssignment Get-MgGroupAppRoleAssignment
Get-AzureADGroupMember Get-MgGroupMember
Get-AzureADGroupOwner Get-MgGroupOwner
Get-AzureADMSGroup Get-MgGroup
Get-AzureADMSGroupLifecyclePolicy Get-MgGroupLifecyclePolicy
Get-AzureADMSLifecyclePolicyGroup
New-AzureADGroup New-MgGroup
New-AzureADGroupAppRoleAssignment New-MgGroupAppRoleAssignment
New-AzureADMSGroup New-MgGroup
New-AzureADMSGroupLifecyclePolicy New-MgGroupLifecyclePolicy
Remove-AzureADGroup Remove-MgGroup
Remove-AzureADGroupAppRoleAssignment Remove-MgGroupAppRoleAssignment
Remove-AzureADGroupMember
Remove-AzureADGroupOwner
Remove-AzureADMSGroup Remove-MgGroup
Remove-AzureADMSGroupLifecyclePolicy Remove-MgGroupLifecyclePolicy
Remove-AzureADMSLifecyclePolicyGroup Remove-MgGroupFromLifecyclePolicy
Reset-AzureADMSLifeCycleGroup Invoke-MgRenewGroup
Select-AzureADGroupIdsGroupIsMemberOf Get-MgGroupMemberOf
Set-AzureADGroup Update-MgGroup
Set-AzureADMSGroup Update-MgGroup
Set-AzureADMSGroupLifecyclePolicy Update-MgGroupLifecyclePolicy

Oauth2

Azure AD cmdlets Microsoft Graph PowerShell cmdlets
Get-AzureADOAuth2PermissionGrant Get-MgOauth2PermissionGrant
Remove-AzureADOAuth2PermissionGrant Remove-MgOauth2PermissionGrant

Service principals

Azure AD cmdlets Microsoft Graph PowerShell cmdlets
Add-AzureADServicePrincipalOwner New-MgServicePrincipalOwnerByRef
Get-AzureADServiceAppRoleAssignedTo Get-MgServicePrincipalAppRoleAssignedTo
Get-AzureADServiceAppRoleAssignment Get-MgServicePrincipalAppRoleAssignment
Get-AzureADServicePrincipal Get-MgServicePrincipal
Get-AzureADServicePrincipalCreatedObject Get-MgServicePrincipalCreatedObject
Get-AzureADServicePrincipalKeyCredential
Get-AzureADServicePrincipalMembership Get-MgServicePrincipalTransitiveMemberOf
Get-AzureADServicePrincipalOAuth2PermissionGrant Get-MgServicePrincipalOauth2PermissionGrant
Get-AzureADServicePrincipalOwnedObject Get-MgServicePrincipalOwnedObject
Get-AzureADServicePrincipalOwner Get-MgServicePrincipalOwner
Get-AzureADServicePrincipalPasswordCredential
New-AzureADServiceAppRoleAssignment New-MgServicePrincipalAppRoleAssignment
New-AzureADServicePrincipal New-MgServicePrincipal
New-AzureADServicePrincipalKeyCredential1 Add-MgServicePrincipalKey
New-AzureADServicePrincipalKeyCredential1 Update-MgServicePrincipal
New-AzureADServicePrincipalPasswordCredential Add-MgServicePrincipalPassword
Remove-AzureADServiceAppRoleAssignment Remove-MgServicePrincipalAppRoleAssignment
Remove-AzureADServicePrincipal Remove-MgServicePrincipal
Remove-AzureADServicePrincipalKeyCredential Remove-MgServicePrincipalKey
Remove-AzureADServicePrincipalOwner
Remove-AzureADServicePrincipalPasswordCredential Remove-MgServicePrincipalPassword
Select-AzureADGroupIdsServicePrincipalIsMemberOf Get-MgServicePrincipalMemberOf
Set-AzureADServicePrincipal Update-MgServicePrincipal

Users

Azure AD cmdlets Microsoft Graph PowerShell cmdlets
Get-AzureADUser Get-MgUser
Get-AzureADUserAppRoleAssignment Get-MgUserAppRoleAssignment
Get-AzureADUserCreatedObject Get-MgUserCreatedObject
Get-AzureADUserDirectReport Get-MgUserDirectReport
Get-AzureADUserExtension Get-MgUserExtension
Get-AzureADUserLicenseDetail Get-MgUserLicenseDetail
Get-AzureADUserManager Get-MgUserManager
Get-AzureADUserMembership Get-MgUserMemberOf
Get-AzureADUserOAuth2PermissionGrant Get-MgUserOauth2PermissionGrant
Get-AzureADUserOwnedDevice Get-MgUserOwnedDevice
Get-AzureADUserOwnedObject Get-MgUserOwnedObject
Get-AzureADUserRegisteredDevice Get-MgUserRegisteredDevice
Get-AzureADUserThumbnailPhoto Get-MgUserPhoto
New-AzureADMSInvitation New-MgInvitation
New-AzureADUser New-MgUser
New-AzureADUserAppRoleAssignment New-MgUserAppRoleAssignment
Remove-AzureADUser Remove-MgUser
Remove-AzureADUserAppRoleAssignment Remove-MgUserAppRoleAssignment
Remove-AzureADUserExtension Remove-MgUserExtension
Remove-AzureADUserManager Remove-MgUserManagerByRef
Revoke-AzureADSignedInUserAllRefreshToken
Revoke-AzureADUserAllRefreshToken Invoke-MgInvalidateUserRefreshTokenByRef
Select-AzureADGroupIdsUserIsMemberOf Get-MgUserMemberOf
Set-AzureADUser Update-MgUser
Set-AzureADUserExtension Update-MgUserExtension
Set-AzureADUserLicense Set-MgUserLicense
Set-AzureADUserManager Set-MgUserManagerByRef
Set-AzureADUserPassword Reset-MgUserPassword
Set-AzureADUserThumbnailPhoto Set-MgUserPhotoContent
Update-AzureADSignedInUserPassword Update-MgUserPassword

1 This cmdlet has more than one cmdlet mapping in Microsoft Graph PowerShell.

MSOnline to Microsoft Graph PowerShell

MSOnline cmdlets Microsoft Graph PowerShell cmdlets
Add-MsolAdministrativeUnitMember New-MgDirectoryAdministrativeUnitMemberByRef
Add-MsolForeignGroupToRole
Add-MsolGroupMember New-MgGroupMember
Add-MsolRoleMember New-MgDirectoryRoleMemberByRef
Add-MsolScopedRoleMember New-MgDirectoryRoleScopedMember
Confirm-MsolDomain Confirm-MgDomain
Confirm-MsolEmailVerifiedDomain
Connect-MsolService Connect-MgGraph
Convert-MsolDomainToFederated
Convert-MsolDomainToStandard
Convert-MsolFederatedUser
Disable-MsolDevice
Enable-MsolDevice
Get-MsolAccountSku Get-MgSubscribedSku
Get-MsolAdministrativeUnit Get-MgDirectoryAdministrativeUnit
Get-MsolAdministrativeUnitMember Get-MgDirectoryAdministrativeUnitMember
Get-MsolCompanyAllowedDataLocation
Get-MsolCompanyInformation Get-MgOrganization
Get-MsolContact Get-MgContract
Get-MsolDevice Get-MgDevice
Get-MsolDeviceRegistrationServicePolicy
Get-MsolDirSyncConfiguration
Get-MsolDirSyncFeatures
Get-MsolDirSyncProvisioningError
Get-MsolDomain Get-MgDomain
Get-MsolDomainFederationSettings
Get-MsolDomainVerificationDns Get-MgDomainVerificationDnsRecord
Get-MsolFederationProperty
Get-MsolGroup Get-MgGroup
Get-MsolGroupMember Get-MgGroupMember
Get-MsolHasObjectsWithDirSyncProvisioningErrors
Get-MsolPartnerContract
Get-MsolPartnerInformation
Get-MsolPasswordPolicy
Get-MsolRole Get-MgDirectoryRole
Get-MsolRoleMember Get-MgDirectoryRoleMember
Get-MsolScopedRoleMember Get-MgDirectoryRoleScopedMember
Get-MsolServicePrincipal Get-MgServicePrincipal
Get-MsolServicePrincipalCredential
Get-MsolSubscription Get-MgSubscription
Get-MsolUser Get-MgUser
Get-MsolUserByStrongAuthentication
Get-MsolUserRole Get-MgUserMemberOf
MSOnline
New-MsolAdministrativeUnit New-MgDirectoryAdministrativeUnit
New-MsolDomain New-MgDomain
New-MsolFederatedDomain
New-MsolGroup New-MgGroup
New-MsolLicenseOptions
New-MsolServicePrincipal New-MgServicePrincipal
New-MsolServicePrincipalAddresses
New-MsolServicePrincipalCredential
New-MsolUser New-MgUser
New-MsolWellKnownGroup
Redo-MsolProvisionContact
Redo-MsolProvisionGroup
Redo-MsolProvisionUser
Remove-MsolAdministrativeUnit Remove-MgDirectoryAdministrativeUnit
Remove-MsolAdministrativeUnitMember Remove-MgDirectoryAdministrativeUnitScopedRoleMember
Remove-MsolApplicationPassword Remove-MgApplicationPassword
Remove-MsolContact Remove-MgContact
Remove-MsolDevice Remove-MgDevice
Remove-MsolDomain Remove-MgDomain
Remove-MsolFederatedDomain
Remove-MsolForeignGroupFromRole
Remove-MsolGroup Remove-MgGroup
Remove-MsolGroupMember
Remove-MsolRoleMember
Remove-MsolScopedRoleMember Remove-MgDirectoryRoleScopedMember
Remove-MsolServicePrincipal Remove-MgServicePrincipal
Remove-MsolServicePrincipalCredential
Remove-MsolUser Remove-MgUser
Reset-MsolStrongAuthenticationMethodByUpn
Restore-MsolUser Restore-MgUser
Set-MsolADFSContext
Set-MsolAdministrativeUnit Update-MgDirectoryAdministrativeUnit
Set-MsolCompanyAllowedDataLocation
Set-MsolCompanyContactInformation Update-MgOrganization
Set-MsolCompanyMultiNationalEnabled
Set-MsolCompanySecurityComplianceContactInformation Update-MgOrganization
Set-MsolCompanySettings Update-MgOrganization
Set-MsolDeviceRegistrationServicePolicy
Set-MsolDirSyncConfiguration
Set-MsolDirSyncEnabled
Set-MsolDirSyncFeature
Set-MsolDomain Update-MgDomain
Set-MsolDomainAuthentication
Set-MsolDomainFederationSettings
Set-MsolGroup Update-MgGroup
Set-MsolPartnerInformation
Set-MsolPasswordPolicy
Set-MsolServicePrincipal Update-MgServicePrincipal
Set-MsolUser Update-MgUser
Set-MsolUserLicense Set-MgUserLicense
Set-MsolUserPassword Reset-MgUserAuthenticationMethodPassword
Set-MsolUserPrincipalName Update-MgUser
Update-MsolFederatedDomain