Hi Trina Singha Roy,
Thanks for reaching out to Microsoft Q&A.
The error message regarding the failure to add you as a Storage Blob Data Owner indicates that there is an issue related to authorization. Specifically, the client has an Attribute-Based Access Control (ABAC) condition that is not met for the action Microsoft.Authorization/roleAssignments/write
at the specified scope. ABAC is an authorization mechanism that extends Role-Based Access Control (RBAC) by adding conditions based on attributes of the resource, user, or environment. This could be due to several reasons:
- ABAC Conditions Not Met: The ABAC conditions set for the client may not align with the requirements for the role assignment. Review the conditions defined in the policy to ensure they are fulfilled.
- Invalid Scope: The scope specified for the role assignment might be incorrect or invalid. Ensure that the resource ID and hierarchy are correctly specified.
- Recent Access Changes: If access permissions were recently modified, it may take some time for those changes to propagate. Refreshing credentials may help in this case.
To resolve this issue, consider the following steps:
- Verify the ABAC conditions for your id and ensure they are aligned with the role assignment requirements.
- Double-check the scope of the role assignment to confirm it is valid.
- If changes were made recently, refresh the credentials and attempt the role assignment again.
- az account clear
- az login
Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.