Hello Vijesh,
Thank you for your question and for reaching out with your question today.
To create a user in AWS Managed Microsoft AD using the Azure portal or Azure SDK, you can follow these steps:
Using Azure Portal:
- Sign in to the Azure portal (portal.azure.com).
- Navigate to Azure Active Directory (AD).
- Go to "Users" under "Manage" section.
- Click on the "New user" button to create a new user.
- Provide the necessary details for the user, such as username, name, and other optional attributes.
- Set the user's password and configure any other required settings.
- Assign the appropriate role or group memberships to the user if needed.
- Click on the "Create" button to create the user.
Using Azure SDK:
- Install the Azure PowerShell module or Azure CLI on your local machine.
- Open a PowerShell or command prompt window.
- Sign in to your Azure account using the
Connect-AzAccount
(PowerShell) oraz login
(Azure CLI) command. - Select the appropriate Azure subscription using the
Select-AzSubscription
(PowerShell) oraz account set --subscription <subscription_id>
(Azure CLI) command. - Use the Azure AD module or Azure AD Graph API to create a user. Here's an example using PowerShell:
# Install and import the Azure AD module
Install-Module AzureAD
# Connect to Azure AD
Connect-AzureAD
# Create a new user
$displayName = "John Doe"
$userPrincipalName = "******@contoso.com"
$accountEnabled = $true
$password = "Passw0rd"
New-AzureADUser -DisplayName $displayName -UserPrincipalName $userPrincipalName -AccountEnabled $accountEnabled -Password $password
Please note that the exact steps and commands may vary depending on the version of Azure PowerShell or Azure CLI you are using. Also, ensure that you have the necessary permissions to create users in Azure AD and access to the AWS Managed Microsoft AD instance.
Keep in mind that while you can create users in Azure AD, the actual provisioning and synchronization with AWS Managed Microsoft AD may require additional steps or configurations. Make sure to consult the AWS and Azure documentation for more detailed guidance specific to your setup.
I used AI provided by ChatGPT to formulate part of this response. I have verified that the information is accurate before sharing it with you.
If the reply was helpful, please don’t forget to upvote or accept as answer.
Best regards.