Role to manage auto-shutdown of VM

Rahul Kamble 0 Reputation points
2024-12-20T07:30:23.5066667+00:00

We are encountering an issue where a user with appropriate roles and permissions is unable to manage the auto-shutdown feature for Azure Virtual Machines (VMs). Despite assigning the built-in DevTest Labs User role and attempting several combinations of roles and permissions, we have been unable to achieve the desired functionality for managing auto-shutdown settings.

 

Although users with privileged roles can successfully manage auto-shutdown, we require a solution that allows non-privileged users to only control the auto-shutdown settings for VMs without granting broader access.

I have used Microsoft.DevTestLab/schedules/* permission, which I checked in "contributor" role. Aslo, i have tried cloning contributor role with some not actions to create role that can only manage auto-shutdown.image (1)

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,177 questions
Azure DevTest Labs
Azure DevTest Labs
An Azure service that is used for provisioning development and test environments.
280 questions
Azure Role-based access control
Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
853 questions
{count} votes

1 answer

Sort by: Most helpful
  1. akinbade abiola 21,130 Reputation points
    2024-12-20T12:05:11.9266667+00:00

    Hello.

    Thanks for your question.

    You can use the Virtual Machine Contributor' role.

    https://zcusa.951200.xyz/en-us/azure/role-based-access-control/built-in-roles/compute#virtual-machine-contributor

    You can test with that and further scale down to a custom role if needed.

    If this doesn't work, you may need to check the Azure policies on your tenant.

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola

    0 comments No comments

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.