This cmdlet is deprecated. The Trusted Publishing Domain (TPD) for your organization is managed in Microsoft Azure Rights Management
When running the below command to Import RMS Trusted Publishing Domain,
Import-RMSTrustedPublishingDomain -FileData $([byte[]](Get-Content -Encoding byte -Path “C:\AIP_Migration.xml” -ReadCount 0)) -Name “Windowstechpro TPD” -ExtranetLicensingUrl https://adrms.domain.com/_wmcs/licensing -IntranetLicensingUrl https://adrms.domain.com/_wmcs/licensing
Getting the below Error,
This cmdlet is deprecated. The Trusted Publishing Domain (TPD) for your organization is managed in Microsoft Azure
Rights Management. For more information, see http://go.microsoft.com/fwlink/p/?LinkId=789272.
+ CategoryInfo : InvalidOperation: (:) [Import-RMSTrustedPublishingDomain], LocalizedException
+ FullyQualifiedErrorId : [Server=DB6P191MB0119,RequestId=5e0f870b-ebbf-41d2-9201-b181c0768ba4,TimeStamp=26-06-201
9 12:37:03] [FailureCategory=Cmdlet-LocalizedException] 6E26149F,Microsoft.Exchange.Management.RightsManagement.Im
portRmsTrustedPublishingDomain
+ PSComputerName : outlook.office365.com
Solution:
If run the below commands before you setting the Publishing the Domains
Set-IRMConfiguration -InternalLicensingEnabled $false
Set-IRMConfiguration -AzureRMSLicensingEnabled $false
Once both commands successfully executed, Set the Publishing domain once again and post publishing domain enabled. Enable InternalLicensing and AzureRMSLicensing once again using the below commands,
Set-IRMConfiguration -InternalLicensingEnabled $True
Set-IRMConfiguration -AzureRMSLicensingEnabled $True