Any better docs to share or I'm the only one who gets the issue?
$policy = Get-OwaMailboxPolicy OwaMailboxPolicy-Default
$blockedFileTypes = $policy.BlockedFileTypes
$blockedFileTypes.Remove(".mag")
Set-OwaMailboxPolicy $policy -BlockedFileTypes $blockedFileTypes
Cannot process argument transformation on parameter 'Identity'. Cannot convert the "OwaMailboxPolicy-Default" value of
type "Deserialized.Microsoft.Exchange.Data.Directory.SystemConfiguration.OwaMailboxPolicy" to type
"Microsoft.Exchange.Configuration.Tasks.MailboxPolicyIdParameter".
+ CategoryInfo : InvalidData: (:) [Set-OwaMailboxPolicy], ParameterBindin...mationException
+ FullyQualifiedErrorId : ParameterArgumentTransformationError,Set-OwaMailboxPolicy
+ PSComputerName : outlook.office365.com