Azure​AD

The Azure Active Directory version 2 PowerShell module can be downloaded and installed from the PowerShell Gallery, www.powershellgallery.com. The gallery uses the PowerShellGet module. The PowerShellGet module requires PowerShell 3.0 or newer and requires one of the following operating systems:

Windows 10 Windows 8.1 Pro Windows 8.1 Enterprise Windows 7 SP1 Windows Server 2016 TP5 Windows Server 2012 R2 Windows Server 2008 R2 SP1

PowerShellGet also requires .NET Framework 4.5 or above. You can install .NET Framework 4.5 or above from here. For more information, please refer to this link For more detailed info on installation of the AzureAD cmdlets please see: Azure Active Directory PowerShell version 2.

These are the cmdlets in the Azure Active Directory v2 PowerShell module.

Administrative Units

Set-​Azure​AD​Administrative​Unit

Updates an administrative unit.

Applications

Add-​Azure​AD​Application​Owner

Adds an owner to an application.

Get-​Azure​AD​Application

Gets an application.

Get-​Azure​AD​Application​Extension​Property

Gets application extension properties.

Get-​Azure​AD​Application​Key​Credential

Gets the key credentials for an application.

Get-​Azure​AD​Application​Logo

Retrieve the logo of an application

Get-​Azure​AD​Application​Owner

Gets the owner of an application.

Get-​Azure​AD​Application​Password​Credential

Gets the password credential for an application.

Get-​Azure​AD​Application​Service​Endpoint

Retrieve the service endpoint of an application

Get-​Azure​AD​Deleted​Application

Retrieve the deleted applications in the directory

New-​Azure​AD​Application

Creates an application.

New-​Azure​AD​Application​Extension​Property

Creates an application extension property.

New-​Azure​AD​Application​Key​Credential

Creates a key credential for an application.

New-​Azure​AD​Application​Password​Credential

Creates a password credential for an application.

Remove-​Azure​AD​Application

Delete an application by objectId.

Remove-​Azure​AD​Application​Extension​Property

Removes an application extension property.

Remove-​Azure​AD​Application​Key​Credential

Removes a key credential from an application.

Remove-​Azure​AD​Application​Owner

Removes an owner from an application.

Remove-​Azure​AD​Application​Password​Credential

Removes a password credential from an application.

Set-​Azure​AD​Application

Updates an application.

Set-​Azure​AD​Application​Logo

Sets the logo for an Application

Certificate Authorities

Get-​Azure​AD​Trusted​Certificate​Authority

Gets the trusted certificate authority.

New-​Azure​AD​Trusted​Certificate​Authority

Creates a trusted certificate authority.

Remove-​Azure​AD​Trusted​Certificate​Authority

Removes a trusted certificate authority.

Set-​Azure​AD​Trusted​Certificate​Authority

Updates a trusted certificate authority.

Connect to your directory

Connect-​Azure​AD

Connects with an authenticated account to use Active Directory cmdlet requests.

Disconnect-​Azure​AD

Disconnects the current session from an Azure Active Directory tenant.

Contacts

Get-​Azure​AD​Contact

Gets a contact from Azure Active Directory.

Get-​Azure​AD​Contact​Direct​Report

Get the direct reports for a contact.

Get-​Azure​AD​Contact​Manager

Gets the manager of a contact.

Get-​Azure​AD​Contact​Membership

Get a contact membership.

Get-​Azure​AD​Contact​Thumbnail​Photo

Retrieves the thumbnail photo of a contact

Remove-​Azure​AD​Contact

Removes a contact.

Remove-​Azure​AD​Contact​Manager

Removes a contact's manager.

Select-​Azure​AD​Group​Ids​Contact​Is​Member​Of

Get groups in which a contact is a member.

Contracts

Get-​Azure​AD​Contract

Gets a contract.

Deleted Objects

Restore-​Azure​AD​Deleted​Application

Restores a previously deleted application

Devices

Add-​Azure​AD​Device​Registered​Owner

Adds a registered owner for a device.

Add-​Azure​AD​Device​Registered​User

Adds a registered user for a device.

Get-​Azure​AD​Device

Gets a device from Active Directory.

Get-​Azure​AD​Device​Configuration

This cmdlet retrieves the device configuration object

Get-​Azure​AD​Device​Registered​Owner

Gets the registered owner of a device.

Get-​Azure​AD​Device​Registered​User

Gets a registered user.

New-​Azure​AD​Device

Creates a device.

Remove-​Azure​AD​Device

Deletes a device.

Remove-​Azure​AD​Device​Registered​Owner

Removes the registered owner of a device.

Remove-​Azure​AD​Device​Registered​User

Removes a registered user from a device.

Set-​Azure​AD​Device

Updates a device.

Directory

Get-​Azure​AD​Subscribed​Sku

Gets subscribed SKUs to Microsoft services.

Get-​Azure​AD​Tenant​Detail

Gets the details of a tenant.

Set-​Azure​AD​Tenant​Detail

Set contact details for a tenant

Directory Objects

Get-​Azure​AD​Object​By​Object​Id

Retrieves the object(s) specified by the objectIds parameter

Directory Roles

Add-​Azure​AD​Directory​Role​Member

Adds a member to a directory role.

Enable-​Azure​AD​Directory​Role

Activates an existing directory role in Azure Active Directory.

Get-​Azure​AD​Directory​Role

Gets a directory role.

Get-​Azure​AD​Directory​Role​Member

Gets members of a directory role.

Get-​Azure​AD​Directory​Role​Template

Gets directory role templates.

Remove-​Azure​AD​Directory​Role​Member

Removes a member of a directory role.

Domains

Confirm-​Azure​AD​Domain

Validate the ownership of a domain.

Get-​Azure​AD​Domain

Gets a domain.

Get-​Azure​AD​Domain​Name​Reference

This cmdlet retrieves the objects that are referenced by a given domain name

Get-​Azure​AD​Domain​Service​Configuration​Record

Gets the domain's service configuration records from the serviceConfigurationRecords navigation property.

Get-​Azure​AD​Domain​Verification​Dns​Record

Retrieve the domain verification DNS record for a domain

New-​Azure​AD​Domain

Creates a domain.

Remove-​Azure​AD​Domain

Removes a domain.

Set-​Azure​AD​Domain

Updates a domain.

Extension Properties

Get-​Azure​AD​Extension​Property

Gets extension properties registered with Azure AD.

Groups

Add-​Azure​AD​Group​Member

Adds a member to a group.

Add-​Azure​AD​Group​Owner

Adds an owner to a group.

Get-​Azure​AD​Group

Gets a group.

Get-​Azure​AD​Group​App​Role​Assignment

Gets a group application role assignment.

Get-​Azure​AD​Group​Member

Gets a member of a group.

Get-​Azure​AD​Group​Owner

Gets an owner of a group.

New-​Azure​AD​Group

Creates a group.

New-​Azure​AD​Group​App​Role​Assignment

Assign a group of users to an application role.

Remove-​Azure​AD​Group

Removes a group.

Remove-​Azure​AD​Group​App​Role​Assignment

Delete a group application role assignment.

Remove-​Azure​AD​Group​Member

Removes a member from a group.

Remove-​Azure​AD​Group​Owner

Removes an owner from a group.

Select-​Azure​AD​Group​Ids​Group​Is​Member​Of

Gets group IDs that a group is a member of.

Set-​Azure​AD​Group

Updates a specific group in Azure Active Directory

OAuth2

Get-​Azure​AD​OAuth2​Permission​Grant

Gets OAuth2PermissionGrant entities.

Remove-​Azure​AD​OAuth2​Permission​Grant

Removes an oAuth2PermissionGrant.

Others

Add-​Azure​AD​Administrative​Unit​Member

Adds an administrative unit member.

Add-​Azure​AD​Application​Policy

Adds an application policy.

Add-​Azure​AD​Scoped​Role​Membership

Adds a scoped role membership to an administrative unit.

Add-​Azure​AD​Service​Principal​Policy

Adds a service principal policy.

Get-​Azure​AD​Administrative​Unit

Gets an administrative unit.

Get-​Azure​AD​Administrative​Unit​Member

Gets a member of an administrative unit.

Get-​Azure​AD​Application​Policy

Gets an application policy.

Get-​Azure​AD​Directory​Setting

Gets a directory setting.

Get-​Azure​AD​Directory​Setting​Template

Gets a directory setting template.

Get-​Azure​AD​MS​Group

Gets information about groups in Azure AD.

Get-​Azure​AD​Object​Setting

Gets an object setting.

Get-​Azure​AD​Policy

Gets a policy.

Get-​Azure​AD​Policy​Applied​Object

Get the objects to which a policy is applied

Get-​Azure​AD​Scoped​Role​Membership

Gets a scoped role membership from an administrative unit.

Get-​Azure​AD​Service​Principal​Policy

Get the service principal policy

New-​Azure​AD​Administrative​Unit

Creates an administrative unit.

New-​Azure​AD​Directory​Setting

Creates a directory settings object.

New-​Azure​AD​MS​Group

Creates an Azure AD group.

New-​Azure​AD​Object​Setting

Creates a settings object.

New-​Azure​AD​Policy

Creates a policy.

Remove-​Azure​AD​Administrative​Unit

Removes an administrative unit.

Remove-​Azure​AD​Administrative​Unit​Member

Removes an administrative unit member.

Remove-​Azure​AD​Directory​Setting

Deletes a directory setting in Azure Active Directory.

Remove-​Azure​AD​MS​Group

Removes an Azure AD group.

Remove-​Azure​AD​Object​Setting

Deletes settings in Azure Active Directory.

Remove-​Azure​AD​Policy

Removes a policy.

Remove-​Azure​AD​Scoped​Role​Membership

Removes a scoped role membership.

Set-​Azure​AD​Directory​Setting

Updates a directory setting in Azure Active Directory.

Set-​Azure​AD​MS​Group

Changes attribute values on an Azure AD group.

Set-​Azure​AD​Object​Setting

Updates object settings.

Set-​Azure​AD​Policy

Updates a policy.

Service Principals

Add-​Azure​AD​Service​Principal​Owner

Adds an owner to a service principal.

Get-​Azure​AD​Service​App​Role​Assignment

Gets a service principal application role assignment.

Get-​Azure​AD​Service​Principal

Gets a service principal.

Get-​Azure​AD​Service​Principal​Created​Object

Get objects created by a service principal.

Get-​Azure​AD​Service​Principal​Key​Credential

Get key credentials for a service principal.

Get-​Azure​AD​Service​Principal​Membership

Get a service principal membership.

Get-​Azure​AD​Service​Principal​OAuth2​Permission​Grant

Gets an oAuth2PermissionGrant for a service principal.

Get-​Azure​AD​Service​Principal​Owned​Object

Gets an object owned by a service principal.

Get-​Azure​AD​Service​Principal​Owner

Get the owner of a service principal.

Get-​Azure​AD​Service​Principal​Password​Credential

Get credentials for a service principal.

New-​Azure​AD​Service​App​Role​Assignment

Assigns a service principal to an application role.

New-​Azure​AD​Service​Principal

Creates a service principal.

New-​Azure​AD​Service​Principal​Key​Credential

Create a new key credential for a service principal

New-​Azure​AD​Service​Principal​Password​Credential

Creates a password credential for a service principal.

Remove-​Azure​AD​Service​App​Role​Assignment

Removes a service principal application role assignment.

Remove-​Azure​AD​Service​Principal

Removes a service principal.

Remove-​Azure​AD​Service​Principal​Key​Credential

Removes a key credential from a service principal.

Remove-​Azure​AD​Service​Principal​Owner

Removes an owner from a service principal.

Remove-​Azure​AD​Service​Principal​Password​Credential

Removes a password credential from a service principal.

Select-​Azure​AD​Group​Ids​Service​Principal​Is​Member​Of

Selects the groups in which a service principal is a member.

Set-​Azure​AD​Service​Principal

Updates a service principal.

Users

Get-​Azure​AD​User

Gets a user.

Get-​Azure​AD​User​App​Role​Assignment

Get a user application role assignment.

Get-​Azure​AD​User​Created​Object

Get objects created by the user.

Get-​Azure​AD​User​Direct​Report

Get the user's direct reports.

Get-​Azure​AD​User​Extension

Gets a user extension.

Get-​Azure​AD​User​License​Detail

Retrieves license details for a user

Get-​Azure​AD​User​Manager

Gets the manager of a user.

Get-​Azure​AD​User​Membership

Get user memberships.

Get-​Azure​AD​User​OAuth2​Permission​Grant

Gets an oAuth2PermissionGrant object for a user

Get-​Azure​AD​User​Owned​Device

Get registered devices owned by a user.

Get-​Azure​AD​User​Owned​Object

Get objects owned by a user.

Get-​Azure​AD​User​Registered​Device

Get devices registered by a user.

Get-​Azure​AD​User​Thumbnail​Photo

Retrieve the thumbnail photo of a user

New-​Azure​AD​MS​Invitation

This cmdlet is used to invite a new external user to your directory

New-​Azure​AD​User

Creates an AD user.

New-​Azure​AD​User​App​Role​Assignment

Assigns a user to an application role.

Remove-​Azure​AD​User

Removes a user.

Remove-​Azure​AD​User​App​Role​Assignment

Removes a user application role assignment.

Remove-​Azure​AD​User​Extension

Removes a user extension.

Remove-​Azure​AD​User​Manager

Removes a user's manager.

Revoke-​Azure​AD​Signed​In​User​All​Refresh​Token

Invalidates the refresh tokens issued to applications for the current user.

Revoke-​Azure​AD​User​All​Refresh​Token

Invalidates the refresh tokens issued to applications for a user.

Select-​Azure​AD​Group​Ids​User​Is​Member​Of

Selects the groups that a user is a member of.

Set-​Azure​AD​User

Updates a user.

Set-​Azure​AD​User​Extension

Sets a user extension.

Set-​Azure​AD​User​License

Adds or removes licenses for a Microsoft online service to the list of assigned licenses for a user.

Set-​Azure​AD​User​Manager

Updates a user's manager.

Set-​Azure​AD​User​Password

Sets the password of a user.

Set-​Azure​AD​User​Thumbnail​Photo

Set the thumbnail photo for a user

Update-​Azure​AD​Signed​In​User​Password

Updates the password for the signed-in user.