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,860 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,541 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Ronen Ariely 15,191 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

  2. Morsi 30 Reputation points
    2024-10-01T15:26:45.2+00:00

    I have the same issue !

    i dont want user access portal to start or stop VM for security reasons, and also because my users are not familiar with IT.

    i want to create an interface / form / link ... to persons who can start or stop VM on demand.

    Example scenario:

    Person A want to use a dedicated VM for demo purpose, so he must be able to start/stop his dedicated VM (without accessing Azure Portal, may be sending an email ?)

    Person B is able to start/stop Person B's dedicated VM. etc

    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.