Sep 05 2017
12:47 AM
- last edited on
Feb 07 2023
07:12 PM
by
TechCommunityAP
Sep 05 2017
12:47 AM
- last edited on
Feb 07 2023
07:12 PM
by
TechCommunityAP
I got one question, so far i heard that it was not possible to manage domain specific tasks using powershell in azure, but maybe it's possible now. I would like to have a script that:
1. Log into Azure with my admin account.
2. Create a new subdomain
3. Verify the subdomain (as it's a subdomain it should just skip the steps/DNS issues etc., so that domain gets status "Setup Complete")
4. Create new user in the subdomain, auto pw and send mail to admin
5. Create a Security Group with the Subdomain name
6. Assign user to that Security Group
Done
Sep 05 2017 11:12 AM
Adding a subdomain is now possible with the AzureAD PowerShell cmdlets. Some of the operations however can only be performed via the old, MSOnline PowerShell module (for example, adding federated subdomain).
If you are using managed auth, you should be able to do all the above with Azure AD PowerShell.
Sep 05 2017 10:52 PM