|
| 1 | +--- |
| 2 | +external help file: Microsoft.Exchange.WebClient-Help.xml |
| 3 | +online version: https://docs.microsoft.com/powershell/module/exchange/new-m365dataatrestencryptionpolicy |
| 4 | +applicable: Exchange Online |
| 5 | +title: New-M365DataAtRestEncryptionPolicy |
| 6 | +schema: 2.0.0 |
| 7 | +author: chrisda |
| 8 | +ms.author: chrisda |
| 9 | +ms.reviewer: |
| 10 | +--- |
| 11 | + |
| 12 | +# New-M365DataAtRestEncryptionPolicy |
| 13 | + |
| 14 | +## SYNOPSIS |
| 15 | +This cmdlet is available only in the cloud-based service. |
| 16 | + |
| 17 | +Use the New-M365DataAtRestEncryptionPolicy cmdlet to |
| 18 | + |
| 19 | +**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](https://docs.microsoft.com/powershell/exchange/connect-to-exchange-online-powershell). |
| 20 | + |
| 21 | +For information about the parameter sets in the Syntax section below, see [Exchange cmdlet syntax](https://docs.microsoft.com/powershell/exchange/exchange-cmdlet-syntax). |
| 22 | + |
| 23 | +## SYNTAX |
| 24 | + |
| 25 | +``` |
| 26 | +New-M365DataAtRestEncryptionPolicy [-Name] <String> -AzureKeyIDs <MultiValuedProperty> |
| 27 | + [-Confirm] |
| 28 | + [-Description <String>] |
| 29 | + [-DomainController <Fqdn>] |
| 30 | + [-Enabled <Boolean>] |
| 31 | + [-WhatIf] |
| 32 | + [<CommonParameters>] |
| 33 | +``` |
| 34 | + |
| 35 | +## DESCRIPTION |
| 36 | +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](https://docs.microsoft.com/powershell/exchange/find-exchange-cmdlet-permissions). |
| 37 | + |
| 38 | +## EXAMPLES |
| 39 | + |
| 40 | +### Example 1 |
| 41 | +```powershell |
| 42 | +New-M365DataAtRestEncryptionPolicy -Name "US Mailboxes" -AzureKeyIDs "https://contoso.vault.azure.net/keys/key1/",https://contoso.vault.azure.net/keys/key2/" -Description "Root key for mailboxes located in US territories" |
| 43 | +``` |
| 44 | + |
| 45 | +This example creates a data at rest encryption policy named US Mailboxes with the specified Azure Key Vault keys and description. |
| 46 | + |
| 47 | +## PARAMETERS |
| 48 | + |
| 49 | +### -Name |
| 50 | +The Name parameter specifies a unique name for the data at rest encryption policy. If the value contains spaces, enclose the value in quotation marks ("). |
| 51 | + |
| 52 | +```yaml |
| 53 | +Type: String |
| 54 | +Parameter Sets: (All) |
| 55 | +Aliases: |
| 56 | +Applicable: Exchange Online |
| 57 | + |
| 58 | +Required: True |
| 59 | +Position: 0 |
| 60 | +Default value: None |
| 61 | +Accept pipeline input: False |
| 62 | +Accept wildcard characters: False |
| 63 | +``` |
| 64 | +
|
| 65 | +### -AzureKeyIDs |
| 66 | +The AzureKeyIDs parameter specifies the URL of the encryption key in the Azure Key Vault that's used for encryption. For example, `https://contoso.vault.azure.net/keys/key1/`. |
| 67 | + |
| 68 | +You can specify multiple values separated by commas using the following syntax: `"AzureKeyID1","AzureKeyID2",..."AzureKeyIDN"`. |
| 69 | + |
| 70 | +```yaml |
| 71 | +Type: MultiValuedProperty |
| 72 | +Parameter Sets: (All) |
| 73 | +Aliases: |
| 74 | +Applicable: Exchange Online |
| 75 | +
|
| 76 | +Required: True |
| 77 | +Position: Named |
| 78 | +Default value: None |
| 79 | +Accept pipeline input: False |
| 80 | +Accept wildcard characters: False |
| 81 | +``` |
| 82 | + |
| 83 | +### -Confirm |
| 84 | +The Confirm switch specifies whether to show or hide the confirmation prompt. How this switch affects the cmdlet depends on if the cmdlet requires confirmation before proceeding. |
| 85 | + |
| 86 | +- Destructive cmdlets (for example, Remove-\* cmdlets) have a built-in pause that forces you to acknowledge the command before proceeding. For these cmdlets, you can skip the confirmation prompt by using this exact syntax: `-Confirm:$false`. |
| 87 | +- Most other cmdlets (for example, New-\* and Set-\* cmdlets) don't have a built-in pause. For these cmdlets, specifying the Confirm switch without a value introduces a pause that forces you acknowledge the command before proceeding. |
| 88 | + |
| 89 | +```yaml |
| 90 | +Type: SwitchParameter |
| 91 | +Parameter Sets: (All) |
| 92 | +Aliases: cf |
| 93 | +Applicable: Exchange Online |
| 94 | +
|
| 95 | +Required: False |
| 96 | +Position: Named |
| 97 | +Default value: None |
| 98 | +Accept pipeline input: False |
| 99 | +Accept wildcard characters: False |
| 100 | +``` |
| 101 | + |
| 102 | +### -Description |
| 103 | +The Description parameter specifies an optional description for the policy. |
| 104 | + |
| 105 | +```yaml |
| 106 | +Type: String |
| 107 | +Parameter Sets: (All) |
| 108 | +Aliases: |
| 109 | +Applicable: Exchange Online |
| 110 | +
|
| 111 | +Required: False |
| 112 | +Position: Named |
| 113 | +Default value: None |
| 114 | +Accept pipeline input: False |
| 115 | +Accept wildcard characters: False |
| 116 | +``` |
| 117 | + |
| 118 | +### -DomainController |
| 119 | +This parameter is reserved for internal Microsoft use. |
| 120 | + |
| 121 | +```yaml |
| 122 | +Type: Fqdn |
| 123 | +Parameter Sets: (All) |
| 124 | +Aliases: |
| 125 | +Applicable: Exchange Online |
| 126 | +
|
| 127 | +Required: False |
| 128 | +Position: Named |
| 129 | +Default value: None |
| 130 | +Accept pipeline input: False |
| 131 | +Accept wildcard characters: False |
| 132 | +``` |
| 133 | + |
| 134 | +### -Enabled |
| 135 | +The Enabled parameter specifies whether the policy is enabled or disabled. Valid values are: |
| 136 | + |
| 137 | +- $true: The policy is enabled. This is the default value. |
| 138 | +- $false: The policy is disabled. |
| 139 | + |
| 140 | +```yaml |
| 141 | +Type: Boolean |
| 142 | +Parameter Sets: (All) |
| 143 | +Aliases: |
| 144 | +Applicable: Exchange Online |
| 145 | +
|
| 146 | +Required: False |
| 147 | +Position: Named |
| 148 | +Default value: None |
| 149 | +Accept pipeline input: False |
| 150 | +Accept wildcard characters: False |
| 151 | +``` |
| 152 | + |
| 153 | +### -WhatIf |
| 154 | +The WhatIf switch simulates the actions of the command. You can use this switch to view the changes that would occur without actually applying those changes. You don't need to specify a value with this switch. |
| 155 | + |
| 156 | +```yaml |
| 157 | +Type: SwitchParameter |
| 158 | +Parameter Sets: (All) |
| 159 | +Aliases: wi |
| 160 | +Applicable: Exchange Online |
| 161 | +
|
| 162 | +Required: False |
| 163 | +Position: Named |
| 164 | +Default value: None |
| 165 | +Accept pipeline input: False |
| 166 | +Accept wildcard characters: False |
| 167 | +``` |
| 168 | + |
| 169 | +### CommonParameters |
| 170 | +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/p/?LinkID=113216). |
| 171 | + |
| 172 | +## INPUTS |
| 173 | + |
| 174 | +### |
| 175 | + |
| 176 | +## OUTPUTS |
| 177 | + |
| 178 | +### |
| 179 | + |
| 180 | +## NOTES |
| 181 | + |
| 182 | +## RELATED LINKS |
0 commit comments