how to add local users to multiple VMs at one go

M, RAKESH 111 Reputation points
2021-12-02T04:01:53.55+00:00

We have around 100 VMs in different subscription and different flavours(Windows and Linux). I need to add few list of local users to these VMs at one go. Is there any way to do so?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
6,783 questions
{count} votes

Accepted answer
  1. Andreas Baumgarten 91,211 Reputation points MVP
    2021-12-02T06:02:29.423+00:00

    Hi @M, RAKESH ,

    using the script extension of Azure VMs might be an option to create the local users after VM is deployed:
    For Windows VMs: https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/custom-script-windows
    For Linx VMs: https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/custom-script-linux

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    0 comments No comments

0 additional answers

Sort by: Most helpful