Unable to create language in cognitive services. Fails to validate user when I checkbox the 'Responsible AI notice'. How to resolve this issue?

Nishanth Rajkumar 71 Reputation points
2022-06-05T13:21:08.443+00:00

This is my first attempt at creating a cognitive service resource. When I tried to create a language(text analytics) service, There is a mandatory checkbox to be checked for acknowledging the 'Responsible AI notice'. But as soon as I check that box it gives an error message stating the following:

"Failed to validate user's role. Please ensure user has the Cognitive Services Contributor role on current subscription and deny assignment is not set for registering a feature."

I am the service administrator. There should be no permission issue with the user role. I also added the Cognitive Services Contributor role to my user role just to be sure, but the same issue persists.

208439-screenshot-from-2022-06-05-18-48-31.png

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,354 questions
{count} votes

Accepted answer
  1. Travis Sharp 76 Reputation points Microsoft Employee
    2022-11-24T00:59:53.377+00:00

    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.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Nishanth Rajkumar 71 Reputation points
    2022-06-07T08:00:54.27+00:00

    UPDATE!

    The issue is Resolved. I had to first set up the 'Cognitive services multi-service account'.
    After that, I was able to create the Language service resource.

    When creating the 'Cognitive services multi-service account' the 'Responsible AI notice' checkbox shows up but does not give the user role validation error.

    The Cognitive services multi-service account resource:
    208850-screenshot-from-2022-06-07-13-23-45.png

    'Responsible AI notice' checkbox when creating the multi-service account resource:
    209001-screenshot-from-2022-06-07-13-26-12.png

    3 people found this answer helpful.