Update-SPODataEncryptionPolicy

Updates customer encryption status for a geo tenant.

Syntax

Update-SPODataEncryptionPolicy
      [-KeyVaultName] <String>
      [-KeyName] <String>
      [-KeyVersion] <Guid>
      [-KeyType] <CustomerKeyVaultKeyType>
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

Use the Update-SPODataEncryptionPolicy cmdlet to update customer encryption status for your geo tenant. For more information, see Controlling your data in Office 365 using Customer Key

Examples

Example 1

Update-SPODataEncryptionPolicy -KeyVaultName <ReplacementKeyVaultName> -KeyName <ReplacementKeyName> -KeyVersion <ReplacementKeyVersion> -KeyType Primary

This example updates the DEP used with SharePoint Online and OneDrive for Business to start using the new key

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-KeyName

The name of the key

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-KeyType

The type of the key, possible values are

  • Primary
  • Secondary
Type:CustomerKeyVaultKeyType
Accepted values:Primary, Secondary
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-KeyVaultName

The name of the Azure Key Vault Name

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-KeyVersion

The version of the key

Type:Guid
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind

Outputs

System.Object