Can't create custom filter

Privileged - Maria L Gullickson 20 Reputation points
2025-06-12T17:47:34.9566667+00:00

I'm trying to create a custom filter in content safety. I keep getting "Access to the given blob is either denied or the specified blob does not exist." I set up the content safety instance with RBAC permissions to read the blob container. I even tried making the blob container public, and get the same error.

I tried generating a SAS URL for the blob, but that gives me "[sampleBlobUrl] only supports jsonl extension.". Note that the URL prior to the SAS query parameters does end in .jsonl, but apparently it's just looking at the final characters of the whole url, including query parameters.

Azure AI Content Safety
Azure AI Content Safety
An Azure service that enables users to identify content that is potentially offensive, risky, or otherwise undesirable. Previously known as Azure Content Moderator.
48 questions
{count} votes

Accepted answer
  1. Manas Mohanty 5,620 Reputation points Microsoft External Staff Moderator
    2025-06-12T18:33:34.17+00:00

    Hi Privileged - Maria L Gullickson

    I think you are trying to custom filter in content safety from Azure OpenAI resource and facing

    "Access to the given blob is either denied or the specified blob does not exist."

    It seems your storage account is secured with virtual network as you mentioned

    . I even tried making the blob container public and get the same error.

    Could you do the confirm

    1. You have minimal virtual network roles to communicate over virtual network - Cognitive Services Contributor for Azure OpenAI resource.

    Ref- https://learn.microsoft.com/en-us/azure/ai-services/cognitive-services-virtual-networks?tabs=portal

    1. You have whitelisted Azure Content safety resource or Azure OpenAI as trusted instance from storage firewall Ref- https://learn.microsoft.com/en-us/azure/storage/common/storage-network-security?tabs=azure-portal#grant-access-from-azure-resource-instances
    2. You have provided Azure Content safety or Azure OpenAI Storage blob reader and contributor roles

    Ref - https://learn.microsoft.com/en-us/azure/storage/common/storage-network-security?tabs=azure-portal#grant-access-from-azure-resource-instances

    If above pointers help fix your issue, please let us know

    Thank you.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.