Editar a ação Microsoft.LabServices/labAccounts/labs/write

Diogo Mendonça 30 Reputation points
2023-05-19T19:08:17.1466667+00:00

Prezados

Desejo a alterar a ação Microsoft.LabServices/labAccounts/labs/write. Essa ação é responsável por liberar ou não qualquer alteração dentro do laboratório e preciso criar uma função que realize apenas algumas dessas alterações.

É possível editar os parâmetros dessa ação de modo a definir o que ela faz ou não. Ou então clonar ela e redefinir os parâmetros ?

Azure Lab Services
Azure Lab Services
An Azure service that is used to set up labs for classrooms, trials, development and testing, and other scenarios.
287 questions
{count} votes

Accepted answer
  1. Prrudram-MSFT 22,941 Reputation points
    2023-05-20T19:19:02.2866667+00:00

    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.


0 additional answers

Sort by: Most helpful