[Azure] Add multiple admins in a subscription in ARM

8:00 am in Azure, Microsoft, PowerShell by Florent

https://aiscaler.com/wp-content/uploads/2014/07/microsoft-azure-logo.jpg

I had the request to add some users from Azure AD as Owner of the Azure subscription, in ARM. Being feigning and not wanting to add 10 users manually, I decided to create a PowerShell script (if we ask me to do the same another time). This script is available on Technet:

https://gallery.technet.microsoft.com/Add-multiple-admins-in-an-07c7cf59

To use it, create a CSV file on the same location as your script, with 3 columns:

  • Email
  • FirstName
  • Lastname

http://microsofttouch.fr/cfs-file/__key/communityserver-blogs-components-weblogfiles/00-00-00-00-69/4314.pastedimage1486543883325v2.png

On my 4 users, I only have one as Owner. The script will add 3 others:

http://microsofttouch.fr/cfs-file/__key/communityserver-blogs-components-weblogfiles/00-00-00-00-69/8206.pastedimage1486543914274v3.png

Choose your Azure subscription:

http://microsofttouch.fr/cfs-file/__key/communityserver-blogs-components-weblogfiles/00-00-00-00-69/8206.pastedimage1486543930479v4.png
If a problem appears during the adding, you’ll have an error message:

http://microsofttouch.fr/cfs-file/__key/communityserver-blogs-components-weblogfiles/00-00-00-00-69/6014.pastedimage1486543952572v5.png

And if the adding is ok, you’ll have informational message:

http://microsofttouch.fr/cfs-file/__key/communityserver-blogs-components-weblogfiles/00-00-00-00-69/6014.pastedimage1486543974692v6.png

And on my Azure view:

http://microsofttouch.fr/cfs-file/__key/communityserver-blogs-components-weblogfiles/00-00-00-00-69/0638.pastedimage1486543983903v7.png

If you have any questions, remarks or suggestions, don’t hesitate to contact me :)