how to add local users to multiple VMs at one go

M, RAKESH 111 Reputation points

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

    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:
    For Linx VMs:


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

    Andreas Baumgarten

    0 comments No comments

0 additional answers

Sort by: Most helpful