Hello @Diogo Mendonça
Currently Q&A is only supported in English languages only. Hence, i used language translator to understand your question and answering in english. Hope this works for you..
The Microsoft.LabServices/labAccounts/labs/write
action is a built-in role-based access control (RBAC) action that allows users to create, update, and delete labs within a lab account. This action is defined by Microsoft and cannot be edited or modified by users.
However, you can create a custom role that includes only the permissions that you need for your specific use case. To do this, you can clone an existing role and modify its permissions as needed. For example, you can clone the Lab Creator
role, which includes the Microsoft.LabServices/labAccounts/labs/write
action, and then remove any permissions that you do not need.
To create a custom role, you can use the Azure portal, Azure PowerShell, or Azure CLI. Here is an example of how to create a custom role using Azure PowerShell:
# Clone the Lab Creator role
In this example, the Microsoft.LabServices/labAccounts/labs/delete
action is removed from the permissions of the cloned role, resulting in a custom role that can create and manage labs but cannot delete them.
If you have any further queries, let me know by tagging me in your comments.
Please 'Accept Answer' and upvote if the above information is helpful for the benefit of the community.