Hi @Marie-Lou P
Welcome to Microsoft Q&A, thanks for posting your query.
No, it is not possible to set a private blob in a public container
In Azure Blob Storage, access policies are applied at the container level, not at the individual blob level. When a container is configured as "public," all blobs in the container inherit that access policy and are publicly accessible without authentication.
Once the blob is set to public access you cannot directly remove public access using the basic URL. To prevent access without a SAS token, you must change the access level of the container or blob to private or restricted.
If you want to make specific blobs private while keeping the rest of the container public, you will need to move those blobs to a separate private container. This way, the private blobs can only be accessed using a SAS token, while the public container remains accessible without restrictions for other blobs.
Please feel free to contact if the issue persists, we will be glad to assist you closely. Please do consider clicking on "Accept Answer"
and "Up-vote"
on the post that helps you, as it can be beneficial to other community members.