Is there any way to create a button to turn on/off the VM for every user?

Jose V 21 Reputation points
2020-07-23T19:44:26.893+00:00

I would like to provide the freedom of every person that use their VM under my account to turn it on / off when they need it. Is that posible?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,206 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,266 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ronen Ariely 15,096 Reputation points
    2020-07-23T21:30:35.563+00:00

    Hi,

    Is that posible?

    Everything is possible theoretically. The question is why you can pay for it

    For example, you can publish your username and password online in public site so everyone will be able to control your subscript. Possible? Yes! Smart solution? NO!

    Let's try to find the balance between given full control to everyone and a big of secure 🙂

    Where do you want the button? what GUI app do your users use?

    Option 1: If your users use the portal then your can use this option;

    (1) Create users in the Azure AD for each of your users.

    (2) Navigate to the Virtual Machine in the portal -> on the left menu click on "Access control (IAM)"

    (3) "Add a role assignment" to the Azure AD users and allow them to control the virtual machine

    Option 2: If you are using your own application, then you can base the solution on single user in the portal. Manage the security of using the app, and in your app you can use PowerShell command in order to turn on/off the VM

    If non of these options fit you, then please try to elaborate a bit more about how the user should control the VM and how you control the users security

    0 comments No comments