Text Classification Sample - Authorization Permission Mismatch in Lanugage Studio

Dean Goddette 1 Reputation point
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.
388 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,627 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 48,501 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