How can I run command in virtual machine from a local user?

Anonymous
2020-12-29T08:20:51.803+00:00

I want to run a command in azure virtual machine as a local user and not as a system user.
I am using ARM template and executing a command in it. but I don't see any way run command as a local user.
Is there any azure cli or rest API call from which I can define from which user the following command should execute.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,805 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,285 questions
0 comments No comments
{count} votes

Accepted answer
  1. SUNOJ KUMAR YELURU 13,961 Reputation points MVP
    2020-12-29T09:48:54.507+00:00

    anonymous user

    there is no option to define as a local user in ARM template.

    Deploy resources with ARM templates and Azure Resource Manager REST API

    Deploy resources with ARM templates and Azure CLI

    ----------

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful