exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 7 question 24 discussion

Actual exam question from Microsoft's AZ-400
Question #: 24
Topic #: 7
[All AZ-400 Questions]

SIMULATION -
You plan to deploy a runbook that will create Azure AD user accounts.
You need to ensure that runbooks can run the Azure PowerShell cmdlets for Azure Active Directory.
To complete this task, sign in to the Microsoft Azure portal.

Show Suggested Answer Hide Answer
Suggested Answer: See explanation below.
Azure Automation now ships with the Azure PowerShell module of version 0.8.6, which introduced the ability to non-interactively authenticate to Azure using OrgId
(Azure Active Directory user) credential-based authentication. Using the steps below, you can set up Azure Automation to talk to Azure using this authentication type.
Step 1: Find the Azure Active Directory associated with the Azure subscription to manage:
1. Log in to the Azure portal as the service administrator for the Azure subscription you want to manage using Azure Automation. You can find this user by logging in to the Azure portal as any user with access to this Azure subscription, then clicking Settings, then Administrators.

2. Note the name of the directory associated with the Azure subscription you want to manage. You can find this directory by clicking Settings, then Subscriptions.

Step 2: Create an Azure Active Directory user in the directory associated with the Azure subscription to manage:
You can skip this step if you already have an Azure Active Directory user in this directory. and plan to use this OrgId to manage Azure.
1. In the Azure portal click on Active Directory service.

2. Click the directory name that is associated with this Azure subscription.
3. Click on the Users tab and then click the Add User button.
4. For type of user, select ג€New user in your organization.ג€ Enter a username for the user to create.
5. Fill out the user's profile. For role, pick ג€User.ג€ Don't enable multi-factor authentication. Multi-factor accounts cannot be used with Azure Automation.
6. Click Create.
7. Jot down the full username (including part after @ symbol) and temporary password.
Step 3: Allow this Azure Active Directory user to manage this Azure subscription.
1. Click on Settings (bottom Azure tab under StorSimple)

2. Click Administrators
3. Click the Add button. Type the full user name (including part after @ symbol) of the Azure Active Directory user you want to set up to manage Azure. For subscriptions, choose the Azure subscriptions you want this user to be able to manage. Click the check mark.
Step 4: Configure Azure Automation to use this Azure Active Directory user to manage this Azure subscription
Create an Azure Automation credential asset containing the username and password of the Azure Active Directory user that you have just created. You can create a credential asset in Azure Automation by clicking into an Automation Account and then clicking the Assets tab, then the Add Setting button.

Note: Once you have set up the Azure Active Directory credential in Azure and Azure Automation, you can now manage Azure from Azure Automation runbooks using this credential.
Reference:
https://azure.microsoft.com/sv-se/blog/azure-automation-authenticating-to-azure-using-azure-active-directory/

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
poplovic
Highly Voted 3 years, 1 month ago
The ask is to install AzureAD powershell module for the automation runbooks. 1. select the Automation account with the runbook 2. select Modules, the "browse gallery" 3. search "AzureAD" and install it
upvoted 23 times
Gabsyfire
8 months, 3 weeks ago
Just checked now, and that is the perfect answer
upvoted 1 times
...
rdemontis
2 years, 6 months ago
agree with you
upvoted 1 times
...
...
rints
Highly Voted 2 years, 8 months ago
Took exam today. 8 lab questions were there, so better to practise all simulation questions as well.
upvoted 11 times
...
Optimist_Indian
Most Recent 2 years, 8 months ago
No simulation question in Feb-2022 exam.
upvoted 10 times
eliisiita1
1 year, 11 months ago
did you take the exam at home?
upvoted 3 times
...
...
itworxx
3 years, 4 months ago
You need to ensure that runbooks can run the Azure PowerShell cmdlets for Azure Active Directory. Add the AzureAD PowerShell Module to the modules section in the automation account. Done. Credential Object is not a requirement based on the task required.
upvoted 8 times
...
Sylph
3 years, 6 months ago
https://docs.microsoft.com/en-us/azure/automation/automation-use-azure-ad
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago