Prevent DevTest Lab user from creating new Disks

Mas023 10 Reputation points
2024-05-17T12:17:24.45+00:00

Hello,

Is there a way, (other than those suggested by ChatGPT), to prevent/disable the "attach new" disk option in lab virtual machine settings?

Edited: I modified the built-in DevTest Lab User role and added the lines below to the "notActions" but still the user can add new disk.

"Microsoft.DevTestLab/labs/virtualMachines/AddDataDisk/action" "Microsoft.DevTestLab/labs/users/disks/Attach/action"

Screenshot 2024-05-17 at 15.13.13

Azure DevTest Labs
Azure DevTest Labs
An Azure service that is used for provisioning development and test environments.
259 questions
{count} votes