Text Classification Sample - Authorization Permission Mismatch in Lanugage Studio

Dean Goddette 6 Reputation points
2021-11-17T19:21:29.027+00:00

In the custom text classification, you upload the test data files into a storage blob.

I have followed the documentation for providing the roles on the storage blob for the language studio service but I continue to get the following error:

<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthorizationPermissionMismatch</Code><Message>This request is not authorized to perform this operation using this permission. RequestId:011518c5-101e-0053-34e6-db48fc000000 Time:2021-11-17T19:06:58.8246891Z</Message></Error>

I'm not sure how else to proceed to figure out why this is not working. Clearly it's the permissions or roles but we seem to have set them as described in the documentation.

Dean

Azure AI Language
Azure AI Language
An Azure service that provides natural language capabilities including sentiment analysis, entity extraction, and automated question answering.
406 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,795 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. YutongTie-MSFT 50,866 Reputation points
    2021-11-18T16:22:33.327+00:00

    Hello

    I have seen error and the error for me is the CORS setting of my storage account is not correct. I add a new rule for my storage account .

    Configure cross-domain resource sharing (CORS) on the Azure Storage blob Enable CORS on your storage account. Select your storage account in the Azure portal and then choose the CORS tab on the left pane. On the bottom line, fill in the following values. Select Save at the top.

    Allowed origins =
    Allowed methods = [select all]
    Allowed headers =
    Exposed headers = *
    Max age = 200 (here I am using 1800, but 200 should be enough)

    139943-12345.png

    Then everything works fine for me. Besides that, please make sure your storage account is under Standard performance and your container is Public access level to Container (anonymous read access for containers and blobs).

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

  2. Tarjei Romtveit 0 Reputation points
    2024-09-13T10:57:03.5533333+00:00

    I had the same problem. I contacted support but got a bit vague answer, that indicates that default settings when setting up the Language Service and the storage service is wrong.

    I got it solved by adding Storage Blob Data Contributor to My user or the user that experience the issue in the Language Studio.

    1. Go to the Access Control (IAM)
    2. Press Add
    3. Find Storage Blob Data Contributor
    4. Locate the User (The user you login to the Language studio)
    5. Review + assign

    Then signout of all sessions and login again to refresh tokens

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.