Get-M365DataAtRestEncryptionPolicyAssignment

This cmdlet is available only in the cloud-based service.

Use the Get-M365DataAtRestEncryptionPolicyAssignment cmdlet to view the currently assigned Microsoft 365 data-at-rest encryption policy.

Note: We recommend that you use the Exchange Online PowerShell V2 module to connect to Exchange Online PowerShell. For instructions, see Connect to Exchange Online PowerShell.

For information about the parameter sets in the Syntax section below, see Exchange cmdlet syntax.

Syntax

Get-M365DataAtRestEncryptionPolicyAssignment []

Description

This cmdlet lists the Microsoft 365 data-at-rest encryption policy that's currently assigned to the tenant.

You need to be assigned permissions before you can run this cmdlet. Although this topic lists all parameters for the cmdlet, you may not have access to some parameters if they're not included in the permissions assigned to you. To find the permissions required to run any cmdlet or parameter in your organization, see Find the permissions required to run any Exchange cmdlet.

Examples

Example 1

Get-M365DataAtRestEncryptionPolicyAssignment

This example returns a summary list of all Microsoft 365 data-at-rest encryption policy assignments.

Example 2

Get-M365DataAtRestEncryptionPolicyAssignment | Format-List

This example returns detailed information for all Microsoft 365 data-at-rest encryption policy assignments.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

Outputs