Under certain circumstances the error will still happen if you have particular Deny
permissions setup on your subscription. To manually approve this through the azure cli, you can do the following.
az provider register -n Microsoft.CognitiveServices
... wait for the resource provider to register ...
az feature register --name LegalTerms.TextAnalytics.TAForPIIRAITermsAccepted --namespace Microsoft.CognitiveServices
... wait for the feature to register ...
Use this to validate the feature is ready:
az feature show --name LegalTerms.TextAnalytics.TAForPIIRAITermsAccepted --namespace Microsoft.CognitiveServices
Run this again ...
az provider register -n Microsoft.CognitiveServices
This should be the commands needed to accept the 'Responsible AI' terms without using the user interface. It may take some time for the resource provider and feature to fully register / update before you can create the resource in the portal.